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 - Method to Save Item

Phil - Wednesday, August 4, 2010 1:18 PM:

Is there a built in method (Im assuming javascript) method I can call to programatically save a form/Item?

Example: User is on the form, performs some action that launches my client method.  In my method I then perform a save on the current Item before continuing with my logic.

I know I can do this manually by setting all of the Item properties, but I figure there is probably a one liner method I can call that is being called when the user clicks on the Save button.  I just want whatever that method is. 

Thanks for any help.



RobMcAveney - Tuesday, August 10, 2010 6:01 PM:

Try top.aras.saveItem(id) or top.aras.saveItemEx(item.node)



Phil - Wednesday, August 11, 2010 2:27 PM:

These seem to work when the current Item has already been entered into the database. Unfortunately, I want to do this "force save" when creating a new Item.  I am having difficulty pulling the ID for the the current Item if it is a new Item and have yet to be saved.