Forum Discussion
Thanks angela, 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.
- jeff_stroh4 years agoCreator II
It's very strange. Have tried following combos:
[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ec7a2a4-62ac-45d3-956e-711183c94495:type=javascript&text=var%20innovator%20%3D%20new%20Innovator%28%29%3B%0D%0Avar%20pr%20%3D%20innovator.newItem%28%22PR%22%2C%22add%22%29]
[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:8b871be7-5d32-4b22-8a7f-83c186ff00e1:type=javascript&text=var%20pr%20%3D%20new%20Item%28%29%3B%0D%0Avar%20pr%20%3D%20this.newItem%28%22PR%22%2C%22add%22%29%3B]
[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:7beed4b6-ccfa-4bbf-a15b-3f7c80c0d023:type=javascript&text=var%20myInnovator%20%3D%20this.getInnovator%28%29%3B%0D%0Avar%20pr%20%3D%20myInnovator.newItem%28%22PR%22%2C%22add%22%29%3B]
[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:26bb3bd2-2872-4231-b986-5e5fd12e801a:type=javascript&text=var%20pr%20%3D%20this.newItem%28%22PR%22%2C%22add%22%29%3B]
[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:ef794eda-5599-491a-bd2a-5c6ee5bcf6e6:type=javascript&text=var%20pr%20%3D%20aras.newItem%28%22PR%22%2C%22add%22%29%3B]
- angela4 years agoCatalyst II
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.
- jeff_stroh4 years agoCreator II
Good suggestion. Just a form button with the this.getInnovator() version of the code.