Innovator is not defined Client Side Error

I've got a very simple method that creates a new PR from a button on a TGV.  This worked perfectly in V12, but is not working in our V15 instance.  Any help would be greatly appreciated!

The error message is: The method 'create_PR_from_tgv' failed. Innovator is not defined Client Side Error

The code is below:

var inn = new Innovator();

var pr = inn.newItem("PR","add");
pr.setProperty("parent", thisItem.getID());

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

Parents
  • I haven´t tested I15 yet, but I want to be prepared :). 

    I only expected C# Method to be affected from the .NET Core changes. If there something else had change, it´s definitely helpful to know about these kind of stuff. 

    My suggestion: Do like Aras do. They most of the time use: var inn = this.getInnovator(); in JS Methods. Maybe check some existing Methods how Aras calls the Innovator object.

    In addition, don´t use top.aras. Top is deprecated since many versions. In the past it most of the time didn´t make any trouble, but maybe today it will. 

Reply
  • I haven´t tested I15 yet, but I want to be prepared :). 

    I only expected C# Method to be affected from the .NET Core changes. If there something else had change, it´s definitely helpful to know about these kind of stuff. 

    My suggestion: Do like Aras do. They most of the time use: var inn = this.getInnovator(); in JS Methods. Maybe check some existing Methods how Aras calls the Innovator object.

    In addition, don´t use top.aras. Top is deprecated since many versions. In the past it most of the time didn´t make any trouble, but maybe today it will. 

Children