You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing training@inductiveautomation.com.
Version:
LESSON LIST
-
2:10Property Binding
-
1:37Property Binding – Bidirectional
-
3:01Expression Binding
Take Topic Challenge
Supplemental Videos
LESSON
Expression Binding – Concat Strings
Description
Learn how to concatenate strings using an expression binding.
Video recorded using: Ignition 8.1
Transcript
(open in window)[00:00] In this lesson, I'll demonstrate how to concatenate two strings in an expression binding. I have a window in my Vision project with two labels that tell the user who they're logged in as. One of them has some hardcoded text and the other is bound to the username tag that's found in the System provider under Client and User. I can drag a new label onto the window and add a binding and accomplish the same thing with only one label. I'll add an expression binding to the text property and I can add the same text "logged in as" with double quotes to denote a string. In order to concatenate this with another string, I'm gonna add a plus sign, and then I wanna pull in the value of that tag. So I'll click the tag button, drill into the tag, and hit okay. A reference to this tag value will automatically be added to the expression. Now I'll hit okay on the binding window. And this label now concatenates the "logged in as" string as well as the result of the username tag value.