on 02-02-2015 10:49 AM
Hi,
i am implementing a list based on FPM_LIST_UIBB_ATS.
Filter and sort work just fine, but i would like to set the filter from my feeder class or via some other interface.
Do you know if this is possibile?
I yes how?
Thanks in advance and best regards
Wolf
Hi Wolf,
Yes you can set filter and sorting using Feeder class as follows:
In IF_FPM_GUIBB_LIST~GET_DEFINITION method of your Feeder class there is one Parameter with name ET_FIELD_DESCRIPTION which contains attributes for Sorting, Readonly, filter.
*--> setting table properties ex readonly, dropdown values etc
LOOP AT srch_list_attr ASSIGNING <fs_list>. "all field names from config table
APPEND INITIAL LINE TO et_field_description ASSIGNING <fs_field_description>. "Setting table properties
<fs_field_description>-read_only = abap_true.
<fs_field_description>-allow_filter = abap_true.
<fs_field_description>-allow_sort = abap_true.
EndLoop.
In Order to work this setting for Sorting and Searching you need to disable the Grouping on this List, that can be done as follows:
You can set this in IF_FPM_GUIBB_LIST~GET_DEFAULT_CONFIG method of your Feeder Class.
*--> Settings height and disabeling Grouping in grid
io_layout_config->set_settings(
EXPORTING
iv_height_mode_ats = if_fpm_list_types=>cs_height_mode_ats-automatic "Setting Height of List
iv_allow_grouping = '02' "Disabled (Sorting and Searching does't work without this)
).
Hope this will help.
Thanks-
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
Thank you for your answer. No that's not what i mean.
I already have the filter and sort enabled the way you correctly describe in my list.
Now i want for example to set the filter value to Range 'A*-M*' for my column 'NAME' in my feeder class or via some interface without user intervention.
Hope this clarifies my question.
thanks
Regards
wolf
Hi Abhishek,
Good Morning!
I have been trying to get the Layout reference of List feeder class using GET_DEFAULT_CONFIG method. But even though I have implemented the method, the controller is not going through the method. As a result I am unable to find the layout reference.
But I see you have mentioned about using GET_DEFAULT_CONFIG method. Could you please let me know if I need to do changes elsewhere to use GET_DEFAULT_CONFIG method?
I have already posted on this but none replied. Sorry for posting my question in this thread.
Regards,
Yugesh A
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.