Javascript no executing

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
kapowell
Posts: 2
Joined: Sat Dec 13, 2014 7:59 am

Javascript no executing

Post by kapowell »

The following 2 lines of code are in the form program. However, they both won't run together. When I have only 1 line in the program, that line works, it doesn't matter which one. But When I have both of them, they don't both work. Any ideas?

#COM_OWNER.Set_Op_Form_Refresh Event(VIEW_TABLE.OnRowClick)
#Com_Owner.Set_Op_ExecScript Event(VIEW_TABLE.OnRowClicked) Resource(HMD_DLVR5E.js)
Paul

Re: Javascript no executing

Post by Paul »

Firstly, you have a conflict with your events, both operations are set to the same event (OnRowClick and OnRowClicked evaluate as the same event, OnRowClicked is depricated and should be avoided).

Note that the method sets up the operation to run when the event fires. The method doesn't run the operation. Longrange could be getting confused about what operation to run when the event fires.

Also, there shouldn't be any need to refresh the form when you have an operation like execute script. Doesn't the ExecScript method alone (using OnRowClick as the event) give you the behavour you want?
Post Reply