cancel
Showing results for 
Search instead for 
Did you mean: 

Value attribute calculation on result page

Former Member
0 Kudos
130

Hi All,

My requirement is to add one additional field in the service request search result screen, the field got some calculation ( balance time response time ) and same will be calculated at runtime of search.

Balance Response Time = System Time - Service request Response time .

So i enhanced the component & view  SRQM_INCIDENT_S/IncidentSRL and added the value attribute .I have enhanced the structures as well and the field is visible in UI.

if i add my logic in the GET Method, it works page by page( if i have 100 requests , system will show it in 10  pages) so user could not sort or filter the values across the pages.

so i did my coding in DO_PREPARE_OUTPUT and used set_property to change the values of custom field.

The value is not getting updated in UI screen.

Please give your suggestions.

Regards

Raj

View Entire Topic
former_member189678
Active Contributor
0 Kudos

In DO_PREPARE_OUTPUT method you will not be able to set the value through BOL because the attribute you added is a value attribute. It would be advisable if you explore the possibility in GET_XYZ method only.

Also could you elaborate more on the issue of Sorting and/or filtering a bit more.

Regards,

Harshit

Former Member
0 Kudos

Hi Harshit ,

I have done the coding in GET Method,Values are getting displayed.

but sorting ( Ascending / Descending ) the result list by value attribute is not happening.

( I'm clicking on the label of the field which enable the options of Sort Ascending , Sort Descending)

and one more thing GET methods are working pagewise, not for the whole result List , so i doubt using get method will be able acheive the sorting of whole result.

Regards

Raj