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)
Javascript no executing
-
Paul
Re: Javascript no executing
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?
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?