LongRange LANSA API Reference

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
cklee
Posts: 13
Joined: Fri Feb 08, 2013 7:05 pm

LongRange LANSA API Reference

Post by cklee »

Could anyone advise where I can get the full set of LongRange LANSA API Reference?
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: LongRange LANSA API Reference

Post by MarkDuignan »

At http://www.lansa.com.au/products/longra ... tation.htm - note also the PDF options if you want to print.

The base APIs - http://www.longrangemobile.com/docs/lan ... apiref.htm
The ones that defined visual elemnnts - http://www.longrangemobile.com/docs/lan ... yandev.htm
cklee
Posts: 13
Joined: Fri Feb 08, 2013 7:05 pm

Re: LongRange LANSA API Reference

Post 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.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: LongRange LANSA API Reference

Post by MarkDuignan »

I think these should be the full set - otherwise we should add what is missing?
What do you think is missing?
cklee
Posts: 13
Joined: Fri Feb 08, 2013 7:05 pm

Re: LongRange LANSA API Reference

Post by cklee »

I would like to know for the method Get_EventSender, what does the SenderID represent for each index.
Paul

Re: LongRange LANSA API Reference

Post 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
Post Reply