Passing the widgets data to a record producer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017 11:57 AM
I've included a widget into my record producer.
The widget is basically a table where one can "add rows" and "edit, save, and delete inline." Is it possible to pass widget's data object to the record producer's catalog script?
What i'd like to do is iterate over the widget's data object and insert records in a related table; where each record inserted has the sys_id of the record produced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017 04:32 PM
The best practise is to clone "SC Catalog Item" and modify as per your requirement. You can include your custom widget data into "SC Catalog Item" cloned widget and add condition in server and HTML (ng-if) for checking if data.sys_id == record producer sys_id then only your custom code should execute.