cancel
Showing results for 
Search instead for 
Did you mean: 

How to get value in custom field(Part OF BOL) in search result view.

Former Member
0 Kudos

Hi All,

I am new to CRM WEBUI and i am facing issue in populating value in one field of search result view.

Current requirement is .

On product f4 , we get search help and search result view.

one custom field need to be added in search result view ( for eg any description field).

This description field is already  available in one of z relation  maintained in PRODUCT root object.

Solution tried so Far:

1. We enhance one Standard Product structure and add that description field .

2. Add new  field( description) in result view context node as attribute by using bol attribute.

3. Customize search result view and display that description field in result.

By doing above three steps, field is available in  search result view.

but issue is we are not able to get values.

1st Approach: write code in getter and setter method . Pass the relation name and get the property of description  field

in setter method, set the property.

Issue : we were not able to sort the values on this description field. so scrap this 1st approach

2nd Approach: In Event EH_Onsearch Help, we try to use collection wrapper to get current value of description

by using relation name .

We use component controller to set the value of description since  searchresult view-conext node->result node is bound to one comp controller node.

but this solution also does not work..

Please advice us  what approach we should use to get value in description field  and sorting should also work.

Thanks in Advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Girish,

1. We enhance one Standard Product structure and add that description field .

2. Add new  field( description) in result view context node as attribute by using bol attribute.

3. Customize search result view and display that description field in result.

By doing above three steps, field is available in  search result view.

but issue is we are not able to get values.

1st Approach: write code in getter and setter method . Pass the relation name and get the property of description  field  and by using this approach we are able to get value but sorting was not working so we disable the sorting as it was not required by business.

if u need sorting on that field.

then u should go for value node approach and write code for getting value in get set method

and for sorting also , need to write code.

This is my understanding on this .

Please reward if this solution is helpful

Former Member
0 Kudos

Hi Arun,

  For displaying the value in Result view, we can write logic in Get Method. That will work.

  But the field in search view, u need to write logic in BADI level.

  So please check is there any BADI in Genil Level getting triggered while you performing the search       operations. If yes, then we need to write our logic in BADI class by creating implementation.

Please Let me know if u need further inputs.

Thanks & Regards,

Arun

girish241674
Explorer
0 Kudos

Dear Arun,

I am also facing the same issue please let me know if you resolved this

Regards

Girish