cancel
Showing results for 
Search instead for 
Did you mean: 

Bupa Search Result Sort

Former Member
0 Kudos

Hi,

I am working on CRM 4.0 Web IC.

I have a requirement where the search result of BUPA which appears on 'BuPaSelectCustomer' view needs to be in a the sort order of "Post code" and "House number". Please let me know how to go about it since these fields are not there in the attributes of BuilHeader.

Please note BuPaSelectCustomer view has already been controller replaced.

Regards,

Vin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Vin,

Those fields are in the BuilStandardAddress or BuilStandardAddressVersion but this is just for your information.

You can perform the sort in two places

Either in the EH_ONSEARCH method of the BupaSearch.do (B2C) / BupaSearchB2B.do. In that method the query is actually launched (FIRE_QUERY) and the results retrieved. You can sort the search results here.

Or, you can perform a sort in the IP_INBOUNDPLUG of the BupaSelectCustomer.do.

How to filter?

Results are stored in BOL collections, simply call the SORT method of the collection. (Pass the field you want to sort on in IV_ATTR_NAME and the order in IV_SORT_ORDER)

Some basic knowledge of the BOL model is required though.

Hope this helps!

Regards,

Joost