How to get merge field value in JavaScript, when I use {{name}} it does not give any value. Ex: var name = {{name}}
Page 1 / 1
you can use merge syntax in javascript (here), but you’re probably better off getting the value of the field through the skuid.model.Model api directly.
I have checked the syntaxes, so if i want to get accounts data i can use below:
var acc = skuid.model.getModel(‘Account’);
//to get the particular row
var row = acc.getRowById({{id}});
but this is not working I am not able to get id value here…
The only way to use merge syntax in javascript is with skuid.idols.merge() or something similar. Javascript will not process merge syntax on its own. .getRowById() is looking for an id string. Generally, model.getFirstRow() is the way to go.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.