Any one know how to set up value to a dynamic field. I have the function where field name would be sent as parameter and I do need to set value there.
Here is an example
function SetValue(params, Name){
$ = skuid.$;
var fieldName =params.model.getField(Name);
// var Mytext = do my task
if(params.model.getRowById(params.row.Id)[fieldName] !== skuid.$(‘.RichTextField).prop(‘innerHTML’)){
params.model.updateRow(params.model.getRowById(params.row.Id),{ fieldName : ‘Mytext’});
skuid.$(’.RichTextField div.nx-richtext-input’).focus();
}
}
Question
How to set value of a dynamic field?
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.