I ma trying to update a picklist value in my application object through a javascript code .The code is working fine as the alert result shows but the value is not getting reflected in other tabs
Here is the code.
var scModels = skuid.model.getModel(‘Application’);
var scRow = scModels.data.0];
var stat=scRow.genesis__Status__c;
alert('stat '+stat);
var result = sforce.apex.execute(‘genesis.SkuidPricingCtrl’,‘generatePricing’,
{
applicationId : scRow.Id
});
alert(result);
scRow.genesis__Status__c= “NEW - PRICING GENERATED”;
alert('scRow.genesis__Status__c '+scRow.genesis__Status__c);
scModels.updateData();
window.location.reload();
The picklist value in my application model is not getting updated
Page 1 / 1
Raya,
Try using the skuid API to update the model.
Instead of:
scRow.genesis__Status__c= "NEW - PRICING GENERATED";
Use:
scModels.updateRow(scRow, {'genesis__Status__c' : "NEW - PRICING GENERATED"});
Thanks Matt, I tried this but the updated field value is still not getting reflected.is their any other way?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.