VLFONE Theme Customization

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
ESODevKJ
Posts: 31
Joined: Tue Nov 10, 2020 9:07 am

VLFONE Theme Customization

Post by ESODevKJ »

EDIT: I had to set the fontsize of the webpage and then use the slider. For anyone interested the sample GOOGLE was very helpful.

Hi All,

I know there are shipped themes from Lansa and that I can create custom themes. Let's say I want to give the user the option to change font type, title bar color and font size.

I want to present to them, hypothetically, a drop down list of all the font types available, a slider for the font size, and a color wheel to choose the title bar. Then they can choose Times New Roman/12px/red and the application will update with the user's choices.

Has anyone done anything similar to this that can point me in the right direction?

I'm running into plenty of issues to begin, here's what I have for my slider to adjust the font (tried this with fontsize and same error):

Code: Select all

Evtroutine Handling(#Slider.Changed)
#sys_web.WebPage.style.fontweight := Weight600
Endroutine
I execute it and when I change the slider on the webpage I get this error:

Fatal Error:

Cannot read property 'setFontWeight' of null


Thanks you!
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VLFONE Theme Customization

Post by MarkD »

The message suggests some part of the property #sys_web.WebPage.style is null.
You could find out with some temporary debug code I guess.
Post Reply