solution titleText

Questions, tips and tricks and techniques for scripting in Servoy

solution titleText

Postby Peter de Groot » Wed Jun 07, 2017 1:55 pm

Hi all,

is it somehow possible to set the solution titleText by code?

solution_titleText.png
solution_titleText.png (22.57 KiB) Viewed 690 times


Regards,

Peter
Servoy 7.3.x || 7.4.x

NEM ENERGY BV
Peter de Groot
 
Posts: 207
Joined: Thu Jan 10, 2008 8:38 pm
Location: Has been compromised :-/

Re: solution titleText

Postby vschuurhof » Thu Jun 22, 2017 10:07 am

We currently have no API call for that to change that on-the-fly. But, if you would like to change this at the startup of your solution there is a workaround.

You could use an i18n key for that property, like "i18n:solution_title" and in the "onOpen" event of your solution change that key to any value, like this:

Code: Select all
i18n.setI18NMessage('solution_title', 'My brand new title');


On that event it will work. However, if you change that at a later stage inside your solution the title will not refresh.

Would that work?
Vincent Schuurhof
Servoy
vschuurhof
 
Posts: 66
Joined: Tue Dec 14, 2010 12:00 pm

Re: solution titleText

Postby Peter de Groot » Tue Jun 27, 2017 9:04 am

Hi Vincent,

That will do, thanks.


Regards,

Peter
Servoy 7.3.x || 7.4.x

NEM ENERGY BV
Peter de Groot
 
Posts: 207
Joined: Thu Jan 10, 2008 8:38 pm
Location: Has been compromised :-/


Return to Methods

Who is online

Users browsing this forum: No registered users and 5 guests

cron