Get Property of label

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
soapagent
Posts: 93
Joined: Mon Jul 16, 2012 6:19 pm

Get Property of label

Post by soapagent »

Is it possible to retrieve the value of a label.
I've tried (with X abd QUEPD correctly set ) but nothing is returned.

#COM_OWNER.get Property(MarkGrid + '.Row%' + #x.AsString + '.' + #QUEPD + '.label') Into(#markin)

I'm sure I'v read that this is possible somewhere!
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Get Property of label

Post by stevec »

I do not believe so (was told no). I either save it to a session variable or get from DB again when needed.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Get Property of label

Post by MarkDuignan »

Normally only properties specifically marked as such in the documentation are ‘gettable’.

However you can use the ‘PerformAction’ operation to submit the request to the server.
It has options to control what is submitted to the server. I think if you use the SubmitProp.Heavy property you should be able to get access to the label.

Note: SubmitProp.Heavy should be a rarely used option because it will submit a lot more data.

See http://www.longrangemobile.com/docs/LRP ... action.htm

If you have a problem turn on system level tracing on the client just before the submit operation, perform the submit, and examine the trace file. You should be able to see all the properties that were submitted arriving at the server. If the label is present but your program cannot get the value the cause may be that your program has structured the property name incorrectly.
Post Reply