Page 1 of 1

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

Posted: Wed Nov 01, 2023 5:15 pm
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 31896 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

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

Posted: Thu Nov 09, 2023 10:28 am
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

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

Posted: Wed Feb 07, 2024 7:16 pm
by Taku Izumi
This has been logged as a defect.
Those who have the same issue will have to wait for a fix.

Taku