In VLFONE you can click on an application which changes what business objects you see. I was experimenting with showing different Settings when you click the Settings icon in the upper right but I can't see how to know that the application has been switched. If I click on a filter or command within a business object in an application I could set my own custom property to let me know what application I am now in but since the application is active before I even open a filter or command, I was hoping there was a way to determine what application I am in without me having to code something.
Is this possible? If so, how?
VLF ONE - Is there a way to tell what application I am in
-
caseywhite
- Posts: 192
- Joined: Thu May 26, 2016 1:17 am
Re: VLF ONE - Is there a way to tell what application I am in
Hi Casey,
Please try this code:
Define_Com Class(#vf_FP002O) Name(#CurrentApplication) Reference(*DYNAMIC)
#CurrentApplication <= #USYSTEM.FrameworkTabFoldertManager.CurrentlyDisplayedVF_UI002O.CurrentManagingVF_FP002OReference
If (#CurrentApplication *Is *null)
#Sys_web.Alert Caption("The framework home page is currently at the front")
Else
#Sys_web.Alert Caption("Application " + #CurrentApplication.uUserObjectType + " is currently at the front")
Endif
Please try this code:
Define_Com Class(#vf_FP002O) Name(#CurrentApplication) Reference(*DYNAMIC)
#CurrentApplication <= #USYSTEM.FrameworkTabFoldertManager.CurrentlyDisplayedVF_UI002O.CurrentManagingVF_FP002OReference
If (#CurrentApplication *Is *null)
#Sys_web.Alert Caption("The framework home page is currently at the front")
Else
#Sys_web.Alert Caption("Application " + #CurrentApplication.uUserObjectType + " is currently at the front")
Endif
-
caseywhite
- Posts: 192
- Joined: Thu May 26, 2016 1:17 am
Re: VLF ONE - Is there a way to tell what application I am in
Thanks Pablo. That is exactly what I needed.