I am writing code for a javascript button.I have a custom object Application and there is a status field in Application .I want to check the value of this field that if(application.status==‘pricing generated’ then enter into the loop.I am not sure how to get a field of particular object in skuid.please help .Here is the code
var applicationModel = skuid.model.getModel(‘Application’);alert("applicationModel "+applicationModel);
var applicationRow = applicationModel.data[0];
alert("applicationRow "+applicationRow);
var appId =applicationRow.Id ;
var agree = confirm(“Are you sure ?”);
alert("agree "+agree);
if (agree){
if( appId.genesis_Status_c==“NEW - PRICING GENERATED”){
var retVal = sforce.apex.execute(“DemooOrgUtils”,“borrowerAccepted”,{app:appId});
window.location.reload();
}
else
alert("Please generate Pricing ");
}
Question
I want to check the value of a field in a custom object in a javascript button

Translate
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.