VLF-ONE - the framework as the application.

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
andrewhiom
Posts: 11
Joined: Wed May 11, 2016 10:52 am

VLF-ONE - the framework as the application.

Post by andrewhiom » Tue May 24, 2016 12:04 pm

hi,

rather than have one or more applications defined within my framework, i would like the framework to effectively be the application, with its business objects at the "top level".

i did think that if i had only one application defined, the framework might recognise this and not require me to select the application, but no.

is there a setting i'm missing to achieve this, or a workaround, or is this something that may be in a future release?

MarkD
Posts: 625
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-ONE - the framework as the application.

Post by MarkD » Tue May 24, 2016 12:18 pm

Your framework has an Imbedded interface point (IIP) identified on the (Framework) -> (Properties) -> Framework Details tab.
For example, the shipped demo uses reusable part DF_OSYSTM as its IIP.

In your framework's IIP try adding this code to the avMAINWindowReady method:

#AVFRAMEWORKMANAGER.avSwitch Toobjectnamed(<APPLICATION NAME>) Caller(*null)

That should cause the application to be automatically selected as you start up.
The application name is the User Object Name/Type you assign to your application.

andrewhiom
Posts: 11
Joined: Wed May 11, 2016 10:52 am

Re: VLF-ONE - the framework as the application.

Post by andrewhiom » Tue May 24, 2016 12:57 pm

thanks - hadn't got that far in my reading of the user guide :oops:

Post Reply