Page 1 of 1
Retrieving the current FormView Name
Posted: Thu Apr 17, 2014 12:30 am
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.
Re: Retrieving the current FormView Name
Posted: Thu Apr 17, 2014 8:46 am
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.
Re: Retrieving the current FormView Name
Posted: Fri Apr 18, 2014 4:11 am
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?
Re: Retrieving the current FormView Name
Posted: Tue Apr 22, 2014 5:51 am
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?
Re: Retrieving the current FormView Name
Posted: Tue Apr 22, 2014 9:47 am
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.
Re: Retrieving the current FormView Name
Posted: Thu Aug 11, 2016 6:03 am
by stevec
Is this scheduled or done yet? I am still having to hard code the switch form view name
Re: Retrieving the current FormView Name
Posted: Thu Aug 11, 2016 8:31 am
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.