Pay close attention to the options provided to you by each of the different functions. The functions listed below are a couple of the functions that you're likely to use the most. Each function serves a different purpose, so the function you use will depend on what type of query you need to run and what sort of results you want to get back. There are some built in scripting functions that Ignition makes available for you to use when running queries against the database. You can find more information about the button component here: Button Any Python script added to this area will be executed when the event fires. In the cases where you wish to write your own custom script for an event, you will make use of the script editor tab. The event handlers window provides you with a list of all the events available for the selected component, along with several script generation wizards for common tasks. To add a script to the actionPerfomed event or view all of the events the button supports, right click on the button you added to the window and select "Event Handlers". There are many different types of events you can add scripting to, but the main event associated with a button press is the actionPerformed event. You can add a button to your window by simply selecting it from the component palette in the designer and then clicking anywhere on your window. Handle the results of a SELECT query (if applicable)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |