Hi,
We have field renderer on opportunity’s status field. in opportunity data table, if user updates status to declined, we need to show popup with additional fields and also, map send notification field to closedate.
popup is created and everythin works well with the exception of notification date being saved to database. here is the popup creation code:
var context = argumentst0];if(context.row.StageName==‘Declined’){
if(context.row.Send_Decline_Notification__c === null || context.row.Send_Decline_Notification__c === undefined) {
var ManagersView_NewBusinessModel = skuid.model.getModel(‘ManagersView_NewBusiness’);
var varContextRow = ManagersView_NewBusinessModel.getRowById(context.row.Id);
ManagersView_NewBusinessModel.updateRow(varContextRow,‘Send_Decline_Notification__c’,context.row.CloseDate);
}
console.log(context.row);
//SHOWS VALUE BEING MAPPED TO Send_Decline_Notification__c
console.log(ManagersView_NewBusinessModel.getRowById(context.row.Id));
var popupXMLString =
‘’
+‘’
+‘’
‘’
+ ‘’
+ ‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘ManagersView_NewBusiness’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘SubmissionComments ’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+’ ManagersView_NewBusiness ’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
- ‘’
+ ‘Status Reason’
+ ‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’
+‘’;
var popupXML = skuid.utils.makeXMLDoc(popupXMLString);
var popup = skuid.utils.createPopupFromPopupXML(popupXML,context);
}
i have tried to set field value in different ways but it doesn’t work. even though on page popup, value is assigned to field but when it is saved, field is still blank.
any help will be appreciated.
thanks.