cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Changing fields displayed in a CRM Web UI Resultset.

Former Member
0 Likes
750

Currently we are using a GET_M_..... method to define the metadata type of an attribute. We coded getter and setter methods for a Case Search Application. When we press the search button to process our query, one of the fields displayed in the Case result set is a 5 character Regional ID. We would like for the 60 characters Regional description to be displayed instead of the Regional ID. Which getter and setter methods must we change and what code changes are necessary in order to accomplish this. The data element component defines a 5 character regional ID, however, but fields are defined on the data element and structure. I was told it should be an easy change which involve just changing some settings to print the description instead of the Regional ID and very little coding required. Please help with your suggestions. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member223320
Participant
0 Likes

Hi,

If you want to display the description instead of the ID, you can change the method GET_XXXX of the attribute.

In GET_XXXXX method of regional ID attribute, you can find the code something like below at line 37.

value = if_bsp_model_util~convert_to_string( data_ref = dref
                                  attribute_path = attribute_path ).

Here, value will have the regional ID.

Then get the description of regional ID from the table where you maintain the description and pass it to value again.

It will then display the description of regional ID in result list.

-Ricky.

Former Member
0 Likes

Thanks Ricky.

Your answer actually worked once I made the code change in the Getter method.

Now I just have to transport that code change up to the Acceptance Testing Region.

Answers (0)