I am pretty new to Javascript, was wondering if anyone could point me in the right direction. In the below script what I am attempting to do is pull in the model User_SFC (user table) and grab specific field values. Then, I want to use those values to map it to my aStr variable fields. There is another part to this script I can’t include, but this is where I am having the problem. Can anyone point in the right direction?
var params = argumentst0],
$ = skuid.$;
var User = skuid.model.getModel(‘User_SFC’);
var fields =
User.getField(‘City’),
User.getField(‘CompanyName’)];
var aStr = new Object () ; {
aStr.city = ‘$fields.City’;
aStr.company_name = ‘$fields.CompanyName’;