Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    saveDate() and fetchData()

    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});
          } 
    											
    }})

    #2
    it's resolved !

    Comment

    Working...
    X