Use this portal to submit your innovative ideas to make Geo SCADA Expert and Devices such as SCADAPack, Trio and Realflo of greater value to you and to the SCADA & Telemetry community. Every idea will be individually reviewed by our team for merit and will be marked Under Consideration.
Search in
We often use embedded query lists to present data, since they allow for a large amount of data to be presented, which easily accommodates the addition of new sites / information points to the list of data.
One issue we have however, is that we want the data presentation to appear 'pretty', that is that values should display alongside their units. So if we have wet well levels, we would want the data column to appear as '43 %' or '946 mm'. However, we also want it to be sorted naturally, and not lexigraphically (by character).
Currently if we have three values, '9 %', '10 %' and '91 %' if the user sorts by this column (ascending) it will display as
'10 %'
'9 %'
'91 %'
When what we want is:
'9 %'
'10 %'
'91 %'
As the current value formatted column is simply a string, then I don't think there is anything that the embedded query list should do for this.
BUT... what I think should be possible is to have a 'special column' similar to what exists for the foreground, background, blink columns. it could be sortorder or similar. It would mean that when the following column is 'sorted' then the values in the 'sortorder' column preceeding it are actually used instead of the selected column values.
In this way if we had a query that looked like:
SELECT Name, CurrentValueAsReal as "{sortorder}", CurrentValueFormatted as "Value"
FROM TABLE
If the user clicked on the Value heading to sort, it would sort 'correctly' in accordance with the CurrentValueAsReal column, hence smallest at the top and largest at the bottom (or vice versa), and the world would be a better place 🙂
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.