- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2022 05:37 AM
Hi All,
I am trying to autopopulate multi -row variable set through widget. I have added the below script in client controller. I am unable to set the variables in variable sets. Please help. i am doing anything wrong here.
var my_varset_three_way = $scope.page.g_form.getField("invoice_line_items");
for (var sKey in details) {
if (sKey == "invoice_line_items") {
alert(sKey);
alert($scope.page.g_form.getValue(sKey));
$scope.page.g_form.setValue(sKey, details[sKey]); //This will set the multirow once the key is matched.
}
Thanks & Regards
Swathi Padighar
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 02:06 AM
I am able to achieve it by converting all the variables into String as few the variables are in numeric values so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2022 11:42 AM
or any follow up required ?
if it worked please mark the answer to close the thread which will be helpful to future readers with same query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 02:06 AM
I am able to achieve it by converting all the variables into String as few the variables are in numeric values so.