Retrieving the current FormView Name

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
dhnaigles
Posts: 28
Joined: Tue May 08, 2012 12:13 am

Retrieving the current FormView Name

Post by dhnaigles »

Is there a way to get the name of the FormView that I am in? I know that I can get the FormViewID, but I need to know in which FormView I reside in order to do somthing else.
Regards,

David
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Retrieving the current FormView Name

Post by MarkDuignan »

In RPG – see example Use Case Example -> Mobile Device Details (EXAM0011).

In RDMLX – see example LREX0011 : Device Details – properties are #COM_OWNER.FormViewID and #COM_OWNER.PreviousFormViewID.

The values returned are the form view’s internal unique identifier - since you may not have assigned any name to form view.
dhnaigles
Posts: 28
Joined: Tue May 08, 2012 12:13 am

Re: Retrieving the current FormView Name

Post by dhnaigles »

But I am asking if it is possible to retrieve the Name of the Current FormView if I have given it a name. Is this possible?
Regards,

David
dhnaigles
Posts: 28
Joined: Tue May 08, 2012 12:13 am

Re: Retrieving the current FormView Name

Post by dhnaigles »

Or, if we cannot get the FormViewName from the schema, would it be possible to change the SwitchToFormView to accept a FormViewID rather than a FormViewName?
Regards,

David
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Retrieving the current FormView Name

Post by MarkDuignan »

We will add as an enhancement request.
For the moment you would need a case block or table in you code to switch from one name to the other.
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Retrieving the current FormView Name

Post by stevec »

Is this scheduled or done yet? I am still having to hard code the switch form view name
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Retrieving the current FormView Name

Post by tsupartono »

Hi Steve,
Apology for the delay.
I have now scheduled this to be included in the upcoming RV23 release, which is due in 2 weeks.
In this release, you will be able to get the current form view name (in addition to the current form view ID).
We can also get you a test build (iOS) tomorrow so you can confirm that it suits your need.
Please let us know.
Post Reply