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 - open recently closed item using javascript

rrt - Saturday, June 25, 2016 5:00 AM:

hii

i am new to aras , i want to close item which is open on screen and again i want to open it using javascript for that i write following code

var item = document.thisItem;

var inn= new Innovator;

var packmtrl = inn.newItem("Symbi_Pack_MterialRecons","get");
packmtrl.setProperty("id",item.getID());
var respack=packmtrl.apply();
var iid=respack.getProperty("id");

 top.aras.uiCloseWindowEx(item.getID());
 top.aras.uiOpenWindowEx('iid','packmtrl','alertErrorWin');

but i am not able to open item which i closed using  top.aras.uiCloseWindowEx(item.getID());



edonahue - Thursday, July 7, 2016 4:21 PM:

Hi R,

It is not possible to close an item in a form event and then open an item from that same form event. Once you close the parent window, the item is no longer in context and any remaining code in the event will not be executed. 



rrt - Friday, July 8, 2016 1:30 AM:

Thanks for your reply