on 09-16-2015 1:02 PM
Hi all,
I have a FPM Application that shows a list of customers (UIBB LIST) and a pie with the status of their sales order (UIBB CHART) splitted by status.
At FPM_START event, I would like to show the whole list of customer and the whole list of sales order, like if "All customers" were selected.
I can extract from my backend all data I need, but I don't know how to show the slices of pie all selected. By default, the slices of pie are all deselected.
Any help?
Thank you,
Francesca
Hello Francesca,
you should have a look at Test application FPM_TEST_CHART_SELECTION (especially at feeder class CL_FPM_TEST_CHART_SELECTION method GET_DATA):
DATA(lo_selection) = io_chart_selection->get_table_model( ).
This gives you access to an IF_FPM_CHART_TABLE_SELECTION object, which provides a method
IF_FPM_CHART_TABLE_SELECTION->SET_SELECTION_BY_INDICES
allowing you to define the indices of the lines from your data table which should be selected.
Best regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
thank you so much for your response.
Now, I have another problem : when the user clicks on a slice of pie, my record shows that in GET_DATA method the lo_selection object doesn't contain selection criteria... selection/deselection criteria are all empty.
Any ideas?
Thank you,
Francesca
I mean:
in GET_DATA method of feeder class:
IF io_event->mv_event_id = cl_fpm_event=>gc_event_chart_select .
CALL METHOD io_event->mo_event_data->get_value
EXPORTING
iv_key = if_fpm_constants=>gc_event_param-chart_selection
IMPORTING
ev_value = lo_selection.
ENDIF.
but lo_selection->mt_criteria is empty.
Hi Christian,
sorry... I have just another problem: the lo_Selection->mt_criteria table doesn't contain values for IS_DESELECTION field. IS_DESELECTION field is always blank.
For example, in my chart the user select values A,B,C and deselect D.
The lo_selection->mt_criteria table contains the values below:
ROW IS_DESELECTION CRITERIA
1 [Standard Table 1x2(72)] --> contains A
2 [Standard Table 1x2(72)] --> contains B
3 [Standard Table 1x2(72)] --> contains D !!!!!!!!!
Thank you so much,
Francesca
Hello Francesca,
you must not access MT_CRITERIA as this is only for internal use. When developing a feeder for the chart UIBB you should access the table model only via the public interfaces
IF_FPM_CHART_TABLE_DATA
IF_FPM_CHART_TABLE_MODEL and
IF_FPM_CHART_TABLE_SELECTION!
IF_FPM_CHART_TABLE_SELECTION offers methods which will give you the selection state (GET_SELECTION / GET_SELECTED_DATA) as well as the changes within the last roundtrip (GET_CURRENT_SELECTION, GET_CURRENT_DESLECTION, ...)
Normally GET_SELECTION and/or GET_SELECTED_DATA should be sufficient for nearly all use-cases!
Best regards,
Christian
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.