- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2019 09:21 AM
I have Data Table From Instance Definition (table = incident) and widget-form on a page.
the incident displays in the form widget.
I would like the Data Table From Instance Definition to display in a different widget on the page.
How do I tell Data Table From Instance Definition to display in that other widget?
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2019 05:23 AM
Hi,
If the form has the fields, then you don't nee dto add any code. The widget will take care of the update. I already checked this.
How did you add a field to the form? You need to add a field to the Service portal view as that is the view that gets rendered in the from widget.
And any changes to any of the fields that are displayed in the form will be updated by the widget itself. The code that i give is to update any other fields that are not on the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2019 06:43 AM
the problem is:
I put a gs.info(input._fields) and it is UNDEFINED.
If i put a gs.info after the if (input._fields) statement code does NOT go into that if statement >> that is why i don't know how this is working.
I added an else and put in a gs.info and code will go into the ELSE .
my ultimate goal is to add another piece of data to the input / data object so that it is saved with the record. (this piece of data is not entered on the form)
still cannot figure out how to do this.
do you have any insights?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2019 10:22 PM
Hi,
When you place the code, did you submit the form?
Because the code enters into that if block after you submit the form, because only then the record is saved.
Adding another field to input or data object, i don'tthink it will work. If you have any additional fields, then i suggest you can add your own code in that if block after the saveRecord line.
Mark the comment as a correct answer and helpful if it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 02:43 AM
When you place the code, did you submit the form? yes, there is a save button at the bottom of the widget-form. I click that.
Because the code enters into that if block after you submit the form, because only then the record is saved. >> this is the problem. code is not entering that if block.
Adding another field to input or data object, i don'tthink it will work. If you have any additional fields, then i suggest you can add your own code in that if block after the saveRecord line. >> this is the problem. code is not entering that if block.
I appreciate your help with this.
If you have this set up in your instance would you please try and let me know if you enter that if block?
thanks!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 04:56 AM
Let me setup in PDI and revert back.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2019 06:40 AM
Could you tell me the widgets that you have cloned?
Mark the comment as a correct answer and also helpful if this helps.