To get data from record producer submitted & populate via custom widget on a custom page
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 12:21 AM
I have a record producer on a custome table 'State Composite tax table (u_state_composite_tax_table)'. As soon as record producer is submitted it should lead to a custom page with all the data given while submitting the record producer.
I created a page and added a custom widget on it. I am not sure how to link that page to record producer and populate the data submitted on record producer dynamically.
Widget code i used is as follows:
HTML:
<div class="row">
<div class="column"><b>Case Partner : </b> {{data.partner}} </div>
<div class="column"><b>States 1 : </b> {{data.alabama}} </div>
</div>
<div class="row">
<b>States 2 : </b> {{data.alaska}}
</div>
Server script:
data.casePartner = $sp.getParameter('sys_id');
var grCase;
grCase = new GlideRecord('u_state_composite_tax_table');
grCase.addQuery('sys_id', data.casePartner);
grCase.query();
if (grCase.next()) {
data.partner = grCase.getDisplayValue('u_partner');
data.alabama = grCase.getValue('u_alabama');
data.alaska = grCase.getValue('u_alaska');
}
0 REPLIES 0