Page 1 of 1
Informative browser tabs with VLF-ONE?
Posted: Sun Feb 04, 2018 10:55 pm
by starbg
How do we create better tabs for VLF-ONE single page apps? Seems like the meta tags are the answer, with variable values that can be set as the single-page app changes state with the menu/business object selections, etc.
Re: Informative browser tabs with VLF-ONE?
Posted: Mon Feb 05, 2018 8:46 am
by MarkD
There seems to be quite a bit on the web about dynamically changing favicons - e.g.
https://codepad.co/snippet/vyf66YgM
So I guess you could create a non-visual VL-Web widget to do that - though you might get some browser incompatibilities.
Such a solution would also apply to VL-Web in general.
Re: Informative browser tabs with VLF-ONE?
Posted: Mon Feb 05, 2018 10:17 am
by dannyoorburg
Hi,
you can just change Icon and Caption in RDMLX.
Code: Select all
#SYS_WEB.WebPage.Icon <= #xImageEmail32
#SYS_WEB.WebPage.Caption := "Email Us"
Cheers,
Danny
Re: Informative browser tabs with VLF-ONE?
Posted: Sun Feb 11, 2018 8:51 am
by starbg
Thanks Danny!
I'm digging through the various v14 guides and can find nothing that tells me about the properties for the #SYS_WEB.WebPage
What other things and the web page in VLF-ONE might we be able to influence in a similar manner?
Re: Informative browser tabs with VLF-ONE?
Posted: Mon Feb 12, 2018 9:36 am
by dannyoorburg
Glad I could have been of help...
#SYS_WEB.WebPage is just a reference to the Main Page that you can access from anywhere in your code.
It is of class #PRIM_WEB, which has all its features documented in:
http://docs.lansa.com/14/en/lansa016/prim_web.htm
You can find a lot of help on LANSA classes and their features just by using the HELP on the context menu....

- temp.png (11.33 KiB) Viewed 11471 times
Or you start at the root and learn about ALL classes and their features
http://docs.lansa.com/14/en/lansa016/index.htm
Cheers,
Danny
Re: Informative browser tabs with VLF-ONE?
Posted: Thu Feb 15, 2018 8:46 am
by atostaine