How can I open an item I just created via an action?

Hi all,

I have a client method that calls a server method to create an item based off some properties on the context item.

How can I display the new item in a tab after it is created by the server method?

Parents Reply
  • if your server method looks like

    ...
    Item item=newItem(ItemType, "add");
    item.setProperty(...);
    Item res=item.apply();
    return res;

    you can get the result like this

    var res=aras.applyMethod("MyMethod","");
    var resItem=aras.newIOMItem("");
    resItem.loadAML(res);
    aras.uiShowItem(resItem.getType(), resItem.getID());

Children