Populate a remote table with Widget scripting

Andrew81
Kilo Contributor

I want to store temporary data in a remote table, but i need to fill the table from widget scripting rather than from a scripted definition.

I have a widget that makes a restmessage call to retrieve data.  I can display the data on the screen, but I feel like it would be good to store it in a remote table as well, then have form fields in the widget that refer to the temporary remote table data.

Is this possible & if so, how?

1 ACCEPTED SOLUTION

Michael Jones -
Giga Sage

You can only populate data in a remote table from a scripted definition - that is the only method available. The data is read-only and you can't otherwise insert or update data in a remote table. I would think that if you did want to use the remote table approach, you would transfer your rest call to the remote table scripted definition and then adjust your widget to simply call that table. 

In either case you would not be able to - directly - map fields on the widget to the remote table itself, but rather you would still need to pull the information into your data object. Given this is the case, what are you hoping to gain by using a remote table?

 I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

View solution in original post

1 REPLY 1

Michael Jones -
Giga Sage

You can only populate data in a remote table from a scripted definition - that is the only method available. The data is read-only and you can't otherwise insert or update data in a remote table. I would think that if you did want to use the remote table approach, you would transfer your rest call to the remote table scripted definition and then adjust your widget to simply call that table. 

In either case you would not be able to - directly - map fields on the widget to the remote table itself, but rather you would still need to pull the information into your data object. Given this is the case, what are you hoping to gain by using a remote table?

 I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!