on 12-01-2014 6:37 PM
Hi Vicky,
To set the default sorting order, set the field 'SORT' to 'A'(asc) or 'D'(desc).
Write the below code on your htm page to give the default sorting order.
DATA: lv_xml_inp TYPE bsp_dlc_xml,
lv_xml TYPE string,
ls_config TYPE bsp_dlc_table_descr,
lt_columns TYPE bsp_dlc_column_descr_tab.
FIELD-SYMBOLS <ls_column> TYPE bsp_dlc_column_descr.
lv_xml_inp = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).
ls_config = cl_bsp_dlc_table_utility=>conf_xml_to_abap( lv_xml_inp ).
READ TABLE LS_CONFIG-COLUMNDEFINITION ASSIGNING <LS_COLUMN> WITH KEY name = 'fieldname'.
if sy-subrc = 0.
<LS_COLUMN>-SORT = 'D'.
endif.
lv_xml = cl_bsp_dlc_table_utility=>CONF_ABAP_TO_XML( ls_config ).
controller->configuration_descr->set_config_data(
EXPORTING
IV_CONFIG_DATA = lv_xml
).
Regards,
Ritu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ritu,
iam aslo facing same similar issue..iam sorting custom field ,i want to display descending order..i have added the logic in sort method and do_prepare_output method in complaint component result view.
I have added urs logic in .html page also still it doesnt work..please help
Thanks
kalpana
Hi,
If its only date where you want to change it to descending order then it is possible to do just by configuration of the view.
Just open the appropriate view configuration in bsp_wd_Cmpwb for the component view and change the sort order as per requirement.
Sort By - Posting Date field and Select the descending radio button.
Regards,
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankit,
try to reset personalization to default for the affected view - if you have done any personalization, configuration changes are usually ignored.
You can also do it by report BSP_DLC_DELETE_PERSONALIZATION, this is a good practise to run after any UI configuration changes.
Regards,
Dawood.
Hi,
I looked in our CRM (EhP3, SP05) and it should work as expected.
Do you have any enhancements in this component? Try to use user parameter WCF_IGNORE_ENHANCEMT with value A in you user record (transaction SU3) and run again. If you do not see the view, then temporarily unassign the enhancement set from the client you are testing (this will influence all users in the client!).
Try to put external breakpoint into event handler EH_ONSORT and request processing method DO_PREPARE_OUTPUT (the sorting is finally done there).
Regards,
Dawood.
Hi Ankit,
do as Patel suggested - the coding has been brought by note 1308322 - No sort on search result list after clear.
The coding "remember" what column and which directon was selected by USER, thus overriding what you have CONFIGURED. I guess this is error in standard, because the coding does not take into account posibility of sorting set by configuration.
Regards,
Dawood.
Hello Vicky,
interesting question - I did not find this in any oficial Release Notes but in an OSS note:
1855398 - Table Personalization enhancements features
The sorting order in Personalization popup is part of it. There is also a PDF document attached to this note, which describes in detail new personalization features, the sorting among others.
These improvements come with SP for the WEBCUIF package as follows:
WEBUI 701 SP11
WEBUI 731 SP08
WEBUI 747 SP01
If I understand correctly your reply, if you are on EhP2 SP6, then WEBCUIF 731 is relevant for you - and you are "only" 2 SPs far from these features then. I am afraid this feature cannot be delivered only via OSS notes but you have to apply relevant Support Package stack (I do not recommend to apply SPs for the WEBCUIF component only).
Hope this helps.
Dawood.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.