This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How can i Excute the form menu "save " by coding?

fxjpost - Wednesday, December 21, 2011 8:27 PM:

How can i  Excute the form menu "save " by coding?

I want add a button on a form ,and i Add a button click event to execute the menu save.i want test the "save" by coding.



justinlee - Friday, December 23, 2011 4:10 AM:

Hi Xinjun fu,

You can use code bellow for method in button call event save in menu of form item.

Normal 0 false false false EN-US X-NONE X-NONE

parent.onSaveCommand(); //  used save only
parent. onSaveAndCloseCommand(); // used save and close

parent. onSaveUnlockAndExitCommand(); // used save-unlock and close

P/s: Sorry my English

Lee,



fli - Friday, December 23, 2011 5:19 AM:

 

 

 

 

 

 

Hi,

From a OnButton event you can use this call:

 

 

top.aras.saveItemEx(document.thisItem.node,false)

 

/Christoffer

 

 

 

 

 

 

 



fxjpost - Saturday, December 24, 2011 12:41 AM:

thanks to all