Informative browser tabs with VLF-ONE?

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
starbg
Posts: 10
Joined: Sat May 14, 2016 12:27 am

Informative browser tabs with VLF-ONE?

Post 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.
Attachments
2018-02-04_0524.png
2018-02-04_0524.png (70.14 KiB) Viewed 11568 times
2018-02-04_0523.png
2018-02-04_0523.png (94.47 KiB) Viewed 11568 times
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Informative browser tabs with VLF-ONE?

Post 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.
dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: Informative browser tabs with VLF-ONE?

Post 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
starbg
Posts: 10
Joined: Sat May 14, 2016 12:27 am

Re: Informative browser tabs with VLF-ONE?

Post 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?
dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: Informative browser tabs with VLF-ONE?

Post 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
temp.png (11.33 KiB) Viewed 11467 times

Or you start at the root and learn about ALL classes and their features :D

http://docs.lansa.com/14/en/lansa016/index.htm

Cheers,
Danny
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Informative browser tabs with VLF-ONE?

Post by atostaine »

dannyoorburg wrote: Mon Feb 12, 2018 9:36 am Or you start at the root and learn about ALL classes and their features :D
http://docs.lansa.com/14/en/lansa016/index.htm
Cheers,
Danny
Good link. Thanks.
Art Tostaine
Post Reply