Auto Refresh Reports From Remote Table when Custom Widget is Fired.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2024 02:56 AM
Hi, I am facing a issue with one of my custom service portal page where I have added a Custom Widget and a Report Widget.
My Requirement
When I am hitting Custom Button in my Service Portal I am doing a API call inside Remote Table Definition to fetch some data to populate the records in Remote Table and at the same time the Report Widget in service portal should fetch the data from Remote table should update itself with recently received data.
Issue - I am not sure how the Execution is happening so please guide a for the same
1. When I am hitting my custom button data is being fetched (can be seen in logs) but not visible in List View of Remote Table.
2. I tried to refresh the OOTB report widget via $scope.emit() and $scope.on() client script but report is not getting refreshed with new data.
Correct me If I am wrong
when I refresh the report widget, does a call to remote table again happens ? It means the script inside the Remote table definition will run again ? . Actually I am passing some parameter through v_query via custom button (Account Number, Duration refer. 1st img) which is later used in my API call. After the I receive API response I am updating the remote table records.