on 03-24-2015 1:38 PM
Hi Experts,
I have got a scenario where i need to select data in the second column of the list based on the value selected on the first column of the same row.
I have two OVPs associated with two columns. How do i achieve this? . The problem is my process event method does not get called on click of Ovs help.
Regards
correction, its OVS..not OVP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you cannot have an event before the OVS phases start. But don't worry: I would recommend to do it like this: Just implement the OVS interface in the same class that implements if_fpm_guibb_list, i. e. the feeder class. Next step: Be sure each row selection will cause an FPM event (go to the configuration, general settings, "selection event type"). That means whenever the user selects a row, then a FPM event will be trigger. Now in the feeder class, just store the latest information about selection in some kind of member attribute. Then whenever a OVS phase starts (i. e. method IF_FPM_GUIBB_OVS~HANDLE_PHASE_0() is getting caled) you can conveniently access you member attribute to access the information about current selection.
I see, you would like to have the information about the content of cells of the row where the OVS popup is raised? Ok, that is quite a bit a special request, but there is hope: You can try this: In OVS method IF_FPM_GUIBB_OVS~HANDLE_PHASE_0(), there is the parameter io_ovs_callback and it has the attribute: context_element. So e. g. there is a column with the ID NAME, then you could make a call like this:
data: ls_name type string.
io_ovs_callback->context_element->get_attribute( exporting
name = 'NAME'
importing
value = ls_name ).
great ... I do not attend to spoil it but ... there might be a catch with that approach: Has that list uibb active personlization? I. e. in the toolbar is there a personalization popup? If so, is there sorting possible? Because if the user does sorting then suddenly the order of the rows will of course change. To be more precize: After the sorting there is a order of the data as seen on the screen (frontend) and a order of the rows as seen by the feeder class in method get_data, parameter ct_data (backend). So the backend and the frontend order will differ then. The method context_element->get_index will give you the index by the frontend order but you do not know what would be the index according to the backend order.
Hi Rupesh,
it is possible to have a FPM event raised after a OVS value help popup is closed. Generally when implementing OVS value help you need to implement this interface: IF_FPM_GUIBB_OVS. In method HANDLE_PHASE_3, there is the parameter EO_FPM_EVENT. If you populate this parameter with your own FPM event object, then the result will be that FPM List ATS UIBB will raise it right after the value help popup is closed.
Look for this application configuration ID: FPM_TEST_LIST_ATS_F4_AC. There you will find an example implementation.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ulrich ,
Thanks for the prompt reply. My requirement is the event should get trigger before the OVS is pops up, so that i capture the lead index and get to know what data is there in the first Column.
i need to know what data is there in the first column , so that i filter my second OVs based on first columns data.
thanks
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.