Widget script - to fetch history of changes on a specific license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 01:15 AM
Hi ALL, i need help on widget script where I need to display the history of updates/modifications on a license on the catalog item.
1)Currently we have use a catalog item to create/ modify licenses.
2) Now created a variable custom - widget which I want to display on form showing all history of the updates
3) Once user selects any existing license under license variable(on change of this variable) - then the update history widget must populate all the modifications done on it previously from license table which has audit enabled
4)How to fetch selected license value from form and then glide license table and fetch the history from server side (completely in widget)
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 02:32 AM
Are you displaying that data as a field on the license form, or are you hoping to query to the audit table to get all data from there and then display it on the portal?
I think you first have to get the data onto the form, to make it easier to get it (and easier to format/get useful entries instead of everything).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 11:02 PM
Hi @Mark Manders , Thanks for response. there is now a slight change in approach.
I am trying to fetch all RITMs raised for a particular software model via widget. My approach is:
1) When user selects the model on form ( reference field),simialr to on change client script scenario, I will fetch this value in client controller (using
2)Parse this to the server script. Then query this sys id in sc_req_item table and fetch list of RITMS in array
3) Then display that via HTML
Thank you