Show RITM variable values as variable attributes in reference field

David334
Tera Contributor

Hi.

I am currently building a catalog item to select my previously requested item and make changes or updates on the item.
E.g I want to change the "end date" field of the requested item I requested few days ago.
So I currently have a reference field which references the sc_req_item table and have reference qualifier of "requested for is dynamic me". However, because there will be multiple RITMs the user has submitted in the past, normal endusers wouldn't be able to tell which item is which just by looking at the RITM number unless you go back to "my request" in service portal and fine the number. But this is too much waste of time and very bad user experience. So I want to show some variable values of the RITM as variable attributes. 

Few solutions I thought are:

1. Can variable attribute show the RITM variable values? - something like current.variables.[variable name] ? if possible, please let me know as this is the most straight forward solution and its OOTB

2. Have a business rule or onSubmit with Ajax call to insert individual variable values as a custom field into a custom table and have my reference field referencing to the custom fields and variable attributes can be used to show my custom fields which will hold the RITM variable values - I think this is hard to maintain in case of adding/removing variables to the catalog item will need modification of business rule and creation/removal of custom fields on the custom table every time.

 

Are there any other solutions? I am stuck on this and cannot come up with a clear solution.

 

5 REPLIES 5

Thank you Bernd, this is exactly what I needed to make a sc_req_item reference variable more user friendly!