Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 

Codesys Webvisu - How to include reference variable string of frame object to translation list?

Codesys Webvisu - How to include reference variable string of frame object to translation list?

PADE
Established Member

Hi all,

could you pls help me how to properly create Frame object so that one reference variable of "Label" would be included in translation list?

I have created my own Button and one of the reference variable is string to show the button Label. Because I want to change font color dynamicaly I implement this Caption inside myButton frame and use it in Text property.

The problem is that this variable is not included in translation list so I cannot use this method in case we would send the machine abroad.

PADE_0-1709294888679.png

PADE_1-1709294927908.png

 

After that I have tried to create frame with Frame Configuration tab I did not know before.

PADE_2-1709295049605.png

I create my properties and defined type of property which gives me possibility to use standard text which is included to translation list.

Problem is, as soon as I use this frame it have very limited properities in compare to standard object (e.g. input configuration and many more).

PADE_3-1709295188167.png

Do you have any hint how to somehow puzzle both ways together and create frame with all needed properties?

Thanks a lot.

P.

 

4 REPLIES 4

CDSAddons
Established Member

PADE
Established Member

Hello, @CDSAddons 

yes, I have spent a lot of time with studying of online help. Also I put the same question to codesys forum without any response.

To your advices:

What do they have common with my question, pls?

How can Textlist help me in my case?

The issue with Frame property I also describes above - see last picture. I followed instructions in help but then I lose many othere properties which are usual for any object. Like Input configuration etc.

So. would you please give me a real hint (with example) how to solve my points instead of sending general help links.

Thanks you very much for cooperation.

Regards, P.

CDSAddons
Established Member

Please excuse us if we have any questions or remarks that seem to be obvious.
As a rule, there are detailed online help for the elements with examples on how to use.

Regarding the Frame configuration:
Any "Known properties" that a frame element otherwise has, can simply be added in the "Frame Configuration" tab toolbox in the visualization editor (via the Visu-menu).

1.png

In this case you are right, this is not described explicit in the online help - this is a mistake on our part.

The other problem, with the color (font color):
This we can't answer that right now. When we tried to recreate it, it does work as expected.

But perhaps you have set something incorrectly here.
Can you provide us with your example code/project regarding this created visual element?

PADE
Established Member

Hello,

I just wanted to know how textlist could help me with my issue - maybe I miss some trick...nothing else;)

This button with nodes is exactly what I have looked for -> I´ll try it asap and give you a feedback whether it is what I really want. Thx for that.

Regarding font and even colors. I have noticed that any object (frame) where you set properties of colors via variable are shown in default color even you set the reference variable. It´s probably caused by evaluation of value after runtime is in RUN. So there is not any other option how to solve that -> maybe if the object has colors which are set as fixed one it could be a little bit helpful.

Thanks a lot for hints.

Regards, P.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist