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 docs@inductiveautomation.com.
Version:
LESSON LIST
-
2:47Property Binding
-
2:15Property Binding – Bidirectional
-
2:19Tag Binding
-
2:17Tag Binding – Drag and Drop
-
2:19Tag Binding – Bidirectional
-
1:40Tag and Component Overlays
-
3:20Indirect Tag Binding
-
2:17Tag Historian Binding
-
3:21Expression Binding
-
1:24Expression Binding – Concat Strings
-
1:01Expression Binding – Celsius to Fahrenheit
-
2:01Expression Binding – Format Date
-
2:46Expression Binding – Date Manipulations
-
1:23Expression Binding – Bit Functions
-
2:06Expression Binding – Switch
-
1:43Expression Binding – Checking Conditions
-
2:40DB Browse Binding
-
2:05DB Browse Binding – Dynamic Filters
-
1:16SQL Query Binding
-
2:26SQL Query Binding – Polling
-
1:47SQL Query Binding – Dynamic Filters
-
1:55SQL Query Binding – Scalar Query and Fallback
-
1:47SQL Query Binding – Scalar Query and Update
-
2:24Cell Update Binding
-
2:07Function Binding
-
4:22Component Styles
Supplemental Videos
-
2:27Named Query Binding
LESSON
Function Binding
Description
This is a generic binding type that allows you to bind a dataset property to the results of a function. It allows any of the function's parameters to be calculated dynamically via Tag and property bindings. The function that you choose determines the parameters that are available.
Video recorded using: Ignition 7.7
Transcript
(open in window)[00:00] The function binding is a generic type that allows you to bind a data set property to the results of a function. It allows any of the function parameters to be calculated dynamically via Tag and Property Bindings. The function that you choose determines the parameters that are available and the kind of data that comes back. So here for example, I have a table. I can bind the data property, which is the data set, to a function binding. Now the function binding only shows up for data set properties. The first thing you do is select the function you want to use. And there are various functions that Ignition provides. Certain modules like the MES modules might add more functions that will be available. The great thing about the functions here is that Ignition will take care of bringing the data back for you. Especially if it's in the database. So one of the functions that we have here is the Audit Log. So that's going to bring back data from the audit log that we've stored in the database. So basically first I'm going to choose the audit profile name, then I can choose the start date and end date. So I'm going to choose yesterday to, let's say, tomorrow. There are other filters that we can use here. The basic idea is, once I put in a few of the filters and press OK, it's going to bring back the information, automatically for me. So you can see there's a bunch of audit log information here that we're looking at. All of these properties in the binding are bindable, in that you can link them to properties on the screen or tag values. So for example, on the audit log, we may want to link the start date and end date to a component that the user can change which dates they want to look at. So let's go ahead and bring onto the window from our calendar the date range component. It'll allow us to pick a start date and a end date. Then if I go back to my function binding, I can actually link the start date here to a property choosing the date range's start date and I can link the end date to a property choosing the date range's end date. So I can do that with other filters here, as well, but as soon as I press OK, now it's going to bring back the information for the time period I've selected. So if I was to change that date range, it would no longer have any data and I'd bring it back over to the arrow, which is the current time. I have my information. So the function bindings will automatically bring back information depending on the type that you choose.