[RAMP-TS] Cannot read properties of undefined (reading 'TYPE_OUTPUT')

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Taku Izumi
Posts: 63
Joined: Thu Dec 15, 2016 2:03 pm

[RAMP-TS] Cannot read properties of undefined (reading 'TYPE_OUTPUT')

Post by Taku Izumi »

Hi All,

Using SHARED.apply5250FunctionKeyPatterns in RAMP TS script fails with Cannot read properties of undefined (reading 'TYPE_OUTPUT').
pic01.png
pic01.png (33.75 KiB) Viewed 31893 times
Does anyone know the correct usage of GLOBAL_oAXESInterface.Element.TYPE_OUTPUT in UF_SY420_RTS.JS?
https://docs.lansa.com/15/en/lansa050/i ... 0_1655.htm

Regards,
Taku
Tim McEntee
Posts: 57
Joined: Thu May 26, 2016 8:46 am

Re: [RAMP-TS] Cannot read properties of undefined (reading 'TYPE_OUTPUT')

Post by Tim McEntee »

Hi Taku

I am going to guess that GLOBAL_oAXESInterface.Element.TYPE_OUTPUT does not always exist. This translates to the string "Text". So you could replace
if (oAXESElement.type == typeOUTPUT)
with
if (oAXESElement.type == "Text")

Tim
Taku Izumi
Posts: 63
Joined: Thu Dec 15, 2016 2:03 pm

Re: [RAMP-TS] Cannot read properties of undefined (reading 'TYPE_OUTPUT')

Post by Taku Izumi »

This has been logged as a defect.
Those who have the same issue will have to wait for a fix.

Taku
Post Reply