Page 1 of 1
LongRange LANSA API Reference
Posted: Wed Feb 27, 2013 8:45 pm
by cklee
Could anyone advise where I can get the full set of LongRange LANSA API Reference?
Re: LongRange LANSA API Reference
Posted: Thu Feb 28, 2013 11:18 am
by MarkDuignan
Re: LongRange LANSA API Reference
Posted: Thu Feb 28, 2013 8:08 pm
by cklee
Hi Mark,
I have read through those pages already. That's why I'm asking for the full set. The feature help within the VL IDE is quite simple for many methods like Get_EventSender.
Re: LongRange LANSA API Reference
Posted: Fri Mar 01, 2013 3:50 pm
by MarkDuignan
I think these should be the full set - otherwise we should add what is missing?
What do you think is missing?
Re: LongRange LANSA API Reference
Posted: Fri Mar 01, 2013 7:30 pm
by cklee
I would like to know for the method Get_EventSender, what does the SenderID represent for each index.
Re: LongRange LANSA API Reference
Posted: Mon Mar 04, 2013 1:33 pm
by Paul
Hi CK,
Thanks for raising this. The documentation will be improved to cover this topic in the near future.
For now, the full Sender ID is the fully qualified name of the element in reverse order
The simplest case would be a button on the formview, e.g.
#COM_OWNER.Set_Button Name('/Form.Fields.Button1') Onclick(BUTTONCLICK)
This would make the full Sender ID 'Button1.Form'
So when the OnClick event fires the following would be true;
#COM_OWNER.Get_EventSender Senderid_N(1) Senderid(#SenderID) /* #SenderID = Button1 */
#COM_OWNER.Get_EventSender Senderid_N(2) Senderid(#SenderID) /* #SenderID = Form */
There is more detailed example in the Programming LongRange with RPG guide.
http://www.longrangemobile.com/docs/LRP ... raises.htm