Autopopulate multi-row variable set through Widget

Swathi P
Tera Guru

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

1 ACCEPTED SOLUTION

Swathi P
Tera Guru

I am able to achieve it by converting all the variables into String as few the variables are in numeric values so.

View solution in original post

11 REPLIES 11

@swathip did it help ?

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 

Swathi P
Tera Guru

I am able to achieve it by converting all the variables into String as few the variables are in numeric values so.