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 - JS Method using this.getInnovator()

aaasam - Tuesday, December 20, 2011 2:20 PM:

Can someone explain to me as to why the following:

var inn = this.getInnovator();

inn = result.applySQL(blah.. blah.. blah..) works 100% fine when using the JS Actions >> Run JavaScript Method giving me a URL that I can copy & paste into a browser and get to work.

 

But.......   the very same JS method code, being "called" from a form via the onLoad method fails with the following error message:

Internal Error: event handler failed, Event handler failed with message: Object doesn't support this property or method?

 

I am trying to use this method and others "cloned" from it to build an <img src= alt=/> HTML URL for a form created with the aras Innovator product.   UNDERSTAND... the URL will not be static.  It is built with variable properties that come from an item-type (table).



aaasam - Tuesday, December 20, 2011 3:50 PM:

** RESOLVED **

I was able to resolve this little issue be re-reading through the Innovator 9.3 Programmers manual in the section 7.1, page 43, JavaScript example 1 using:  var inn = new Innovator()vs. the var inn = this.getInnovator();

 

 



justinlee - Friday, December 23, 2011 4:37 AM:

Hi SM,

You can use code bellow for client side. Because i don't use this.getInnovator() menthod to create new Innovator object.

var inno = top.aras;

P/s: Sorry my English

Lee,