How To Display SQLplus Output in The PE Graphic.
How To Display SQLplus Output in The PE Graphic.
Problem
Solution
Generally a QueryDef record will write the output in the #OUTPUT_LINES, which can be displayed as data field in Apex.
So, let?s say we are running a query to read the IP_INPUT_VALUE from a tag:
SELECT IP_INPUT_VALUE
FROM ATCAI
In data field properties you would put the Tag Name, and select the Attribute as OUTPUT_LINE
See below:
The problem with this query is that output would show the first line of your results:
IP_INPUT_VALUE
--------------
1.88
To solve this you will need to remove the header, in order to output only the actual value:
As you can see below, this will only display the value, and not the header.
Keywords
SQLplus
PE Graphic