hello
I want to write method for onclick event on form so that after click botton on form new form with some value should get populate.
Former Member
Hi Angela,
Please be specific about what you are trying to achieve.
I suggest with this sort of request you say something like:
I would like to write an onClick method on a Part form so that when the button is clicked a new Document item is created and displayed.
I think this is the sort of thing that you are trying to ask but I'm not completely sure.
var ctx = document.thisItem;
var inn = ctx.getInnovator();
var newItm = ctx.newItem("Temp_test","add");
newItm = newItm.apply();
var itm= top.aras.getItemById("Temp_test",newItm.getID(), 0);
top.aras.uiShowItemEx(itm,"tab view", true);
This code creates a new "Temp_test" item type and displays it in a window.
Hope this helps.
Brian.