Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

saveDate() and fetchData()

$
0
0
Hello everyone,
I have a form that allows you to modify an object, so I use the predefined SaveDate () function and fitchData (). the problem is that the object is not changed at the first click, the modification is done in the second click of the button
Could you please help me?
Here is the code:
Code:

isc.Button.create({
                                                               
name:"Save" ,
iconSize:19,
title:"Save",
width:80 ,
align: "center",
icon: "/portal/app_crm/images/crm_save_16.png",
click: function ()
  {       
      var myFormDone = eval(CallerName+'_EditForm');
      var tmpFieldName = eval(CallerName+'_EditForm').dataSource.getPrimaryKeyFieldName();
      if(myFormDone.validate()){
          myFormDone.saveData();
          myFormDone.fetchData({crm_obj_idnum:selObjectID});
      }
                                                                                       
}})


Viewing all articles
Browse latest Browse all 4756

Trending Articles