Wiki - how to post code on this forum

This thread is intended as a short help file for all those struggling to post formatted code on the forum.

Code block formatting

Posting formatted code on the forum (and most others) is as simple as selecting the code and pressing the </> button. It works the same as applying Bold or Italic styles to your document. It preserves indentation and applies syntax highlighting.

How to post code

Note that all the </> button does is add three backticks ``` on the line before the code block and another ``` on the line after. If you wish you can type these rather than use the button.

Language-specific highlighting

Add the language name after the triple backticks, if required.

```sql          <-- SQL syntax highlighting
```css          <-- CSS syntax highlighting

Python/Jython is automatically highlighted and Ignition's expression language is highlighted to some extent.


Inline code formatting

Enclose the code snippet in single backticks, `...`.
Inline code formatting


Collapsing code / hide details

Code can also be collapsed using the Hide Details feature. This can tidy up a thread with multiple code blocks and provides a ready-made index within the post.

Hide details

Editing posts to fix them

You can edit your post to fix the code formatting by clicking the icon pencil icon:
Forum edit post

(There is a separate pencil icon if you just want to fix the title / tags.)

26 Likes
Writing to plc tag using a udt and custom property
How can i change a bit from ignition to SQL server
How to display alarms in object tooltip
Passing Parameters to a Popup View
Format CSV to 2 decimal points
XY Chart Series Data All Showing Same Data
Table column visible error
Datetime input component and Convert it into string
Expression binding in prespective used in a transform-script
Column Binding Based on Another Column Same Row
after generating password , in ignition --> security --> user, roles --> manage users we unable to see user which is need to be populated. For more information. Please find below screen shot.for more details please find below attached file
Calling named query from scripting
Ignition Report Scheduled, triggering too many times
Change cell color based on time
Sort Order of Columns in table.filter.results.data
Updating a query from a table
Ignition Database datetime data input to View's param
Stacked Bar Chart in Perspective - Detailed Steps
onAuthChallengeCompleted function not being run
Change Ignition JRE version?
Perspective: Time series chart, how to set width of bars
Search bar for Flex Repeater
Valve State Control with Boolean
Named Query Error
X axis on XY chart linked to a Tag
Expression Tag - Error_ExpressionEval
Session properties issues
By Numeric entry field button should enable
Display text based on 'value'
How can i uses this script from igniton v 7.9 to ignition 8.1 to load recipe
X axis on XY chart linked to a Tag
Perspective- Trend a custom SQL query
Error when trying to read custom device tags
2 sessions, but 4 queries
Want to switch from one text field to password field by pressing enter
Vision Barcode Component behavior when no barcode?
Add ' character to where clause
Gauge Object Center and Vertical Line for Clock Use
Add ' character to where clause
Perspective scripting-how to reference a specific cell in a table in python
Table reload with button in Ignition Perspective
OAuth2 Client for email notifications
Execute a .bat from ignition takes a long time
Perspective - strange beaviour of slider
Adding values together only if tag is true
Security levels rules expressions
Script running in script console but doesn't update when activating through tag
Send Mail VIA Gmail SMTP
system.db.runPrepUpdate("UPDATE
Create UDT OK, when I create an Instance, structure is invalid
Error with system.db.runUpdateQuery
Need to send email notification in chinese text
X axis on XY chart linked to a Tag
Enable valueChanged eventScript using system.tag.getConfiguration
Ignition Perspective file download
Session events issues
Filter Alarm Status Table
View doesn't update when tag changes (script with two variables)
Loop through dataset and add new column in same dataset that list how many time an item occured in each loop
Dynamic Symbol Based On Alarm Priority
Gateway Event Script Not Executing
Radio Group not updating database onClick
Referencing Template Canvas Parameters in Expressions
Reset Column Selector Values
Named Query Script to Add Column Values from a DB Table with Null Rows
Regarding Gateway Event Script - Tag Chabge
Passing indirect values back up through templates
Gateway Scheduled Script - API Error
Latitude and longitude
How to get the debug print result from a gateway scheduled event
Time Series Chart in Perspective using Database Named Query
Perspective XY Chart: Logarithmic value axis cannot have values <= 0
Displaying historical tag information in numeric label
XY Chart Perspective Dynamic Bullet Colour Change
OR Statements With Expression Tags
Manually trigger event script on tag
Export PowerChart to CSV with 30 min increments
Help Reducing a Query
Center text to view instead of Flex Component
How to recreate this scripting with something like a derived or reference tag?
Perspective text field lose focus on enter press
Remove ellipsis character in expression
Problem with numeric entry field and script
swapTo window swapping
('An error occurred:', NameError("global name 'socket' is not defined",))
Cannot coerce value into type: class java.util.date
Issues with Vision Template Binding
Rendering Time X Axis Chart
JSON Module Error, Caused by: org.python.core.PyException: LookupError: unknown encoding 'hex'
Time series chart - ghost data
String slicing in Python script
Ignition 8.3: Project Load Issues When Switching Git Branches
Add checkbox column in Ignition Perspective to filter other column
Bit operator in expression language
How to read the cell value from the table column, which has render type as view
Get tag name and save it on a variable
Coding endDate in script
Download image from an URL
Coding endDate in script
Expression Alarm evaluating two tags
OPC tag script using UDT parameters
How to change the background color of the Button on clicking on OK button from Popup using CS_Style
Get the percentage of the Dataset Column using Script Transform
Ignition treats parameter value in WHERE clause as a literal, not a string
Pop up always appears
Script seems to run both if and else statements
Issue sending email in script
Dropdown list cambiar de ventanas
Calculate the difference time between two table entries
Ignition Serial Port Not Reading Sensor
Configure Query Binding - Path
Problem in attaching PDF's in Email through Gatewayscripts
Perspective Scripting to find a Custom Property on a View
Display multi-column dataset in Perspective dropdown box options
Enabled Property in Value Changed Script
Send a signal to a bit in PLC with a write scripting bottom
Perspective PopUP Parameters
Table filter -if added view path
Perspective XY Chart DurationOn ms to Hours
Perspective Table Calculated Rows from MES OEE Dataset
Vision - Execute batch file which itself executes a Python script
Send Modbus custom request with TCP Socket
SQL table help with column
Active Directory windows 2025
Reading byte array through python script
Binary file location
Creating trends by using script
Keep users from logging in on multiple devices
How to Reset a numeric entry field while being focused on the component in Perspective
Multiple components using same pop up and message handler
Horizontal Marker On XY Chart with Category Render
HiveMq Java Client
Logger in property change script
Script Console cryptography for HttpNtlmAuth requests.get Import Error
Converting Table Data to JSON for SQL Server Data Element Input
Tables not visible of MySQL database under schema detail
How to decode an OPC tag to have useable data
XYChart series tooltip background color not working
Ignition Perspective Style Classes not working
I'm attempting to count the number of tags that have a certain value
Perspective Map: Color Issue for added Points
URL error and gaierror
refreshBinding not working probably because not called on the right object
Updating an SQL database
Tab strip making just one pulse in the selected tab
How to get the device/host Name on client server
Integration Toolkit - Document Handling
Change the email language in the email pipeline from English to Chinese based on the selected language
Apex Charts radial bar graph
system.perspective.openPopup with parameter binding not consistent
Image in Power Table
Timer script isn't working or showing in gateway
Type casting tags to compare in expression binding
SQL error on template dataset using custom property in the where clause
Casting in expression
MultiState Button in Perspective not working
Perspective - Use tag to open popup
SQL error on template dataset using custom property in the where clause
"Launch client jar signature is invalid" error
How change tag parameter/Custom property using a script
When a condition is met, a cursor should appear in the text field
Failing to create a start button for a pump using indirect tags
Perspective / browser mismatch
Using parameter in tag path in an expression
Can't Update Project Title
Using parameter in tag path in an expression
Make a bar chart with array (perspective)
Report - Cross tab -Coloring
Problem summing column's values of a table in the footer
Month format in perspective table
Vision Checkbox - MySQL
How to show labels on top of the bar in xy chart in perspective
Dynamic binding tag to template custom property
Scripting problem in vision
Easy Chart exportExcel rename headers?
Query from Vision 7.9 to Perspective 8.1
How to detect a null value in a string tag
Query from Vision 7.9 to Perspective 8.1
Analog Gauge Orientation
Vision scripting issue
Accordion Load Times
Column Widths of Dropdown List (table mode)
Perspective Table: filter render view
Elements in flex repeater row don't scale in the direction opposite the direction of the repeater
Sort Pens on Time Series Chart Help
Unable to connect with database connection in Ignition after upgrade 8.1.26 to 8.143
Dropdown Height
Run remote Python script on Gateway
Problem with export the data from dataset format To CSV (UTF-8)
Issue with connecting Python OPCUA server with Ignition as a client
Perspective Components' Value Binding
Read/Write and Clear from an Array Tag (integer array)
Spanish Character Issue
Json in Named Query in parameters
Is it possible to sent a notification without using Webdev module?
Accessing an embedded View in another Perspective view folder (Component Methods)
Pipe Fill Color per Expression Binding of Tag value
XY Chart Question - Production vs Target
Need help with table component
Tag event script is not triggring
Where to use the script in label
Where to use the script in label
Passing Tag Value to Named Query Parameter
Sorting a table or sorting incoming data?
Export Perspective Power table data and format to Excel
Convert DINT to BOOLEAN showing 1's and 0's
Dropdown matching/sorting not working
Named Query Transaction
Write Value into tag with if condition
Problem result sql query
tagHistory in SDK module
Table (any) - Vision Property Editor - Misc - TestData (missing)
Issue with XY Chart Visualization
Add value change script to a tag
Display Data From Named Query (MySQL) On a Time series Chart
Put a series of actions into one transaction, need a display to show the transaction is progressing
How can I export table data in pdf format in perspective?
How to get total alarm duration and occurrences by alarm
Script String Transform
Historian is not returning all raw data
Expression Tag / if condition third tag
How to format date column in SQL table?
How to use Bearer Token in httpClient GET request?
Data Source and Table Mapping
Set Automatic Zoom in browser when we open perspective session
Handling null values
Try Catch Block is not Working for any query type like NamedQuery
Getting data into a flex repeater
Convert Epoch Time in SQL Query
Tab Strip data cell update binding issue
Qracle SQL using Partition By throws a keyword expected error
Persistent Tag Issue and Forced Value in PLC After Script Execution
[IGN-4437] Ignition occasionally forgets how Python works?
Looping a script while tag is on
Perspective Accordion Navigation
Problem with calling code in Ignition Designer Script Console
writeBlocking to a Memory Tag works in Script Console but not in Gateway Timer Event Script
Multi State Button controlling to separate boolean tags
[IGN-9645] Perspective Table Date Column Filtering
Indirect Tagging in Expression
How to implement a stored procedure within Ignition?
Script will not change tag value PLC to PLC. I know I have write enabled in PLCs and in gateway
Ribbon chart in Ignition Reporting module
Problem with export the data from dataset format To CSV (UTF-8)
Transferring Data from dropdowns and numeric entry fields to a query table
Error Socket connection
Configured Event onActionPerformed Script Run NamedQuery
Perspective Stacked Bar Chart - TimeSeriesChart
Python funtion to hash passwords for igntion user database
Taking the sum of time that a machine is on(1), displaying value on label
Quickly organize tags into folders
Ignition Edge sends emails but no attachments
Map marker in perspective
Closing popups when changing between pages
addSeconds in Expression scripting not working with Tag value
Changing colour of row based off value in cell in perspective table
Using Conditional Statement in an SQL Query?
Duplication of data
Set User Security Pin Through Gateway Script
Script work in script console but not work from from button perspective
Gateway script not working for system.tag.writeblocking
Inventory Prediction Manager
"Object not callable error" on a project script
If a PopUp is opened, and it is requested to reopen, how to refresh the params
Data Set Scripting
Open View when Tag Changed
Format datetime from system.tag.queryTagHistory
Get name out of an active alarm
Emailed report PDF is blank
Automatic popup window refresh in Perspective label input component after clicking submit button
Python Dataset Error
Need to Move the Multiple selected row data from the table component
Payload return objects have NoneType on MessageHandler
WSL2 & Docker & Gateway Update Script
Dropdown question on pespective view
Expression not returning expected valuebut only for ON and OFF keyword
Vertical menu tree in perspective
Perspective Table binding
How to calculate machine total hours and working hours using the tag history?
Table sorted by column only displayed correctly in Designer
Value of property before binding is executed in perspective
Perspective Slider Stuck/No Labels with Floats
PowerChart not performing correctly when launching a test Perspective Session
Expression, weird return
Tag readAsync callback return with tag paths
Session Custom Property datetime as Named Query Parameter
DropdownBox , memory tags to handle Mysql database
Cannot coerce value '2' into type: interface javax.swing.border.Border
DB connection Count need to post on api_endpoint
Installing 8.1.47 issue
Issue with calling custom method
Using multiple tags in Time Series Chart
I want to dynamically reset and fillout options of a dropdown using scripting
Memory Tag not updating in Perspective web browser session
system.gui.warningBox
PDF download on a button click in ignition
System.perspective.navigate passing params in new tab
Heartbeat Signal in Perspective
Message handler on different devices
Read the Coordinates in perspective
Tag Query help system.tag.queryTagHistory
Ignition app become dead slow
Best way to query value at a certain time in a report
Opening File Explorer on Client PC
Urgent - Ignition Reports need help with subcatogery
Message handler isn't opening/closing popups
Indentation error in scripts
Weird Perspective Label String Data
Bi-Directional Table Binding
Perspective table data update
SVG files importing empty/corrupted
Back Up and Restore Tag Values?
Table columns dont change width
How to get Python data set into a Dataset Memory Tag?
Issue with Rotated Label in Flex Container
Issues with writing to DB
Navigation between two views based on a template and parameters
Transaction execution delay
Client tag change event missing tag changes
How to Manage Tag Change Scripts for Multiple Devices?
OPC UA SERVER not working - OPC UA SERVER faulted
UDT Instance value changed not working
Dynamic label update on button press
Printing 2-sided reports Short Edge Top / Short Edge Bottom
Can an EDGE use the webDev module to connect with the HTTP method for a Standard project?
Tag Update query
Wafer map viewer
Auto log-out in perspective
Musson Industrial’s Embr-Charts Module
Translation Manager when insert new Languages (Ignition Platform 8.1.44 (b2024102210) )
APEX Chart Slowness in DATA
Passing View Custom Parameters to Another View as Parameters
Perspective XY Chart and using two value Axis
Indirect Tag-History Binding
Script format error?
Unable to see Logs in gateway
Unable to see Logs in gateway
Change script issue is throwing an error
Table cell value is json, how to beautify, indent?
Arrow Key Function on Numeric Entry Field
Global Popup error
Can't access files from gateway script
Tag Expression not going true with System/Gateway Network tags
Designer Crashing when opening specific view
Display Low priority Alarm on power table through Python script
Customizing Data in Perspective Table Component
Merging Multiple PDF Reports into a Single File and Downloading in Ignition Perspective
Perspective 8.3 Upgrade Issue: JDBC driver
Troubles turning unicode into float
Removing Security Privileges
Half-Circle Gauge formatting
XY Chart Y Axis Values Incorrect
Cell update on a pivoted table
I am not able to create a new view
Error log servidor
NODE-RED Issues
Simple Gauge Background Arc Length
Historian not using the column names I provide
Why can't I see the Perspective module?
Unplugging kills my designer
Center align not aligning in center
Creating a script for a circled shape based on a mouse click
Interacting with tables 'get_row_index_of_first_row_with_value_in_column'
Stacked Bar Chart rendering broken?
Designer Launcher shows project list but Designer doesn't open
Array property can't be iterated through
Passing strings to scripts
Time Based Screen Rotation Help
Expression for a progress bar if exceeds...?
isAuthorized for the entire View
Add a second t_stamp to a dataset is failing
Request to Change Table Data Language English to Chinese (zh)
Expression tag PLC reference
Perspective component's path
Difference in Tag History Values Between Script and Excel Export
Check box doesn't show "tick" when selected = 1 in a script
Calling Project Library Script in a scheduled gateway event
[IGN-14057] Problem with changing folder name in image management
Gateway Timer Scripts troubleshooting
Stacked Bar Chart in Perspective - Detailed Steps
Gateway Tag Change Event Stopped Working
Vision chart named query parameter inside a template for udt tag
Ignition queryTagHistory returning extra row compared to history partition table
Play Alarm Sound
How to debug generic: `Error executing system.db.runPrepQuery` log events
[IGN-14133] Error when selecting ‘Show Builder’ in Report Data Sources
Hide the perspective table header
Sap to ignition integration
Automatic resizing of container depending on number of active alarms
Navigation event with Tab Container
Report script data source
Vision Template SCAN ERROR Nested Paths not allowed
XY Chart - xAxes problem when change baseInterval count
Issue Posting Data to Tag via WebDev doPost – Receiving Byte Array Instead of String
Dual Window behavior issue
Sending file paths through a message handler
[BUG]"columnNames" Parameter Not Working for Tag History
Error when dynamic popup loads
Troubleshooting: "The resource cannot be overriden"
Table Query Binding returns Error_Exception
Error When Trying To Compile Perspective-Momentary-Button module example
Issue connecting to third party OPC-UA server
Timer script executing multiple times
Text Field focus shows old value after clearing
Unable to Open Views in Perspective Session – Persistent Loading and Save Error
Data from named query appears to be caching
Using a script to enable tag history and setting the database
Export data to excel or csv
XY Chart change grid settings
Add templates to window via script
Time Units in dateArithmetic
Table Component - Cell editing
Auto login only for white list IP
Gateway Timer / Tag Change script:Lib funciton returns dict empty & Dataset tag not updating (works in Script Console)
File retrieval from database using WebDev Module
Table write to db
Script error when running in gateway
Script error when running in gateway
Can't reopen the popup after clicking the OK button to close it
Changing the color of progress bar based on a value
Scripting display
xyChart Stacked Bar Chart not displaying total
Write to DB with Save Button Script