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 - Need a button with a method to redirect to other foms.

srajan - Wednesday, April 3, 2013 5:42 AM:

I need to have buttons for all the forms so i can redirect from one form to another form .I tried using methods.But it is not working.Please help me out.

 

Thanks,

srajan



Brian - Monday, April 15, 2013 11:50 PM:

Hi Srajan,

This code opens a specific item in the onClick of a button.

 

var ctx = document.thisItem;

 

var prt = ctx.newItem("Part","get");

prt.setProperty("item_number","100020");

prt = prt.apply();

 

var prt3 = top.aras.getItemById('Part',prt.getID(),0);

top.aras.uiShowItemEx(prt3,"tab view", true);

 

Cheers,

Brian.