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. 

  • Thanks , that command gives the same error.  We've opened up a bug report on this one with Aras as we've tried just about every variation of it from the Programmer's guide and nothing seems to be working.  OOTB methods don't see to have something exactly the same, but those that have similar commands seem to be referring to the same commands, so stumped on this..

  • Crazy sh#% if this is really a bug! This one alone would make the hole release unusable. 

    Do you really need the Innovator object? Have you tried "this.newItem"? Sure you are in JS, but not in a Form but a TGV.

  • It's very strange.  Have tried following combos:

    var innovator = new Innovator();
    var pr = innovator.newItem("PR","add")

    var pr = new Item();
    var pr = this.newItem("PR","add");

    var myInnovator = this.getInnovator();
    var pr = myInnovator.newItem("PR","add");

    var pr = this.newItem("PR","add");

    var pr = aras.newItem("PR","add");

  • Everything looks perfectly fine (your code - not Innovator 15,.cause I will never forgive Aras they dared to change the color of the loading spinner into PURPLE)..
    And you obviously don´t do this the first time, cause then you would not come up with TGV actions at all.

    Does your Method works when called from an innocent Form button?

    Maybe entry point for Aras object has changed, for TGV for some reason I used "window.aras" in the past:

        var inn = this.getInnovator();

        const aras = window.aras;

    But don´t spend too much time testing on your own. I am curious myself about the official solution by Aras.

Reply
  • Everything looks perfectly fine (your code - not Innovator 15,.cause I will never forgive Aras they dared to change the color of the loading spinner into PURPLE)..
    And you obviously don´t do this the first time, cause then you would not come up with TGV actions at all.

    Does your Method works when called from an innocent Form button?

    Maybe entry point for Aras object has changed, for TGV for some reason I used "window.aras" in the past:

        var inn = this.getInnovator();

        const aras = window.aras;

    But don´t spend too much time testing on your own. I am curious myself about the official solution by Aras.

Children