on 2009 Nov 19 6:26 PM
Hi,
When doing a Document Search in CRM, users would like to see the attachments sorted by created on date. I think the views involved here are CMList and CMListExt; however, I'm not sure how to go about sorting on this field. It looks to me like the sorting is already included in the htm code. Any suggestions appreciated as I have little experience with CRM.
Thanks,
John.
Hi,
You can use the DO_PREPARE_OUTPUT method of your controller class to sort the result set before display. You may be able to use the method 'SORT' at the collection wrapper of the context node in question.
Regards
Prasenjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Everyone,
I have got INBOX view results based on some search critiria - is there any way to sort the view results based on 2 fields as standard view can be sorted based on only one field.
CL_BSP_WD_COLLECTION_WRAPPER (IF_BOL_BO_COL~SORT) & attribute of the IV_SORT_CALLBACK.
i woder Do you guys ever used to attribute. if yes please lemme the way.
Thanks
Poorna Poorna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
Here is what you can do:
1) Enhance view CMList
2) Redefine method DO_PREPARE_OUTPUT of your controller
3) Implement following lines of code (or something similar) :
IF iv_first EQ abap_true.
CALL METHOD me->typed_context->documents->collection_wrapper->sort
EXPORTING
iv_attr_name = 'CREATED_AT'
iv_sort_order = 'D'
iv_stable = abap_false
iv_sort_callback = me.
ENDIF.
me->typed_context->DOCUMENTS->build_table( ).
Kind regards,
Nicolas Busson.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then do not forget to have a look at this excellent thread:
Where you will find how to enhance Web IC views in CRM5.0:
[IC WebClient Consultant Cookbook for CRM 2005|https://websmp107.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000647973&_SCENARIO=01100035870000000112&_OBJECT=011000358700003057372006E]
Regards,
Nicolas.
User | Count |
---|---|
11 | |
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.