String Variable Options

Discuss issues and ideas you have to configuring displays with PowerVision
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

String Variable Options

Post by asmith_class1 » Thu Feb 19, 2015 12:50 pm

It would be cool if within a String variable, under the Programming tab, you could assign the multiple language strings. I think it would be a neat way to keep Strings programmatically used organized and give them the full multi-language functions a String that is used in the Page Designer would have.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: String Variable Options

Post by stalley » Thu Feb 19, 2015 3:58 pm

Hello asmith_class1,

The intent of the reserved string variables was to let users enter data from a display keyboard and retain the data in flash or save to a file/USB. The string would be whatever the keyboard characters have been configured to be.

What purpose for a reserved string do you have that requires different languages?

Thank you, for your interest!
Sara Talley
Software Engineer
Enovation Controls
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

Re: String Variable Options

Post by asmith_class1 » Fri Feb 20, 2015 10:38 am

To decouple the Page Designer from the Programming a bit more to allow more dynamic use of reserved Strings so that you could use a single Page Designer page that has a uniform layout it different ways rather than making multiple Page Designer views with hard coded Strings in order to get multilingual functionality. This would be the primary use I feel but maybe there are other venues this could open up that I'm just not focused on right now.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: String Variable Options

Post by stalley » Fri Feb 20, 2015 11:24 am

Hi asmith_class1,

What you have described is available with the Smart Text Widget. Since you know the text at configuration time, you can create a variable in Programming, add enumeration values with different Display Values. The Display Values are multi-language.

For a couple of examples of how to use this, look in the Murphy Standard configs on the Menu Layer. The text displayed for Units and Language are Smart Text Widgets and the Selector Variables are found in Programming. When you look in the Programming, the Custom - User Settings group, LanguageSelection and UnitGroup variables. Each of these variables have Enumeration Values and the Display Values are multi-language strings.

For you, the text would change by events/actions when you want to change a page view, but it is the same widget. Is this what you have in mind?

The smart widgets were originally added for our monochrome displays that have limited resources but need to be just as configurable as the color displays. They have worked so great that they are now included for all displays!
Sara Talley
Software Engineer
Enovation Controls
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

Re: String Variable Options

Post by asmith_class1 » Fri Feb 20, 2015 1:15 pm

just what I needed, 2.4 to 2.7 and I'm still learning all the new tricks. could you move this into a more relevant forum so others could search for the topic better?