| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 31/08/2010 21:58:05
|
chin
Initiate
Joined: 31/08/2010 21:47:28
Messages: 2
Offline
|
Hi,
I have just created some simple point to collect some temperature reading . However, i need to enlarge the font size of the reading. Can anyone advise how can it be done?
Thanks
Chin
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 01/09/2010 16:21:23
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1456
Offline
|
You can use a server-side script instead, and then do something like this:
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 01/09/2010 21:15:23
|
chin
Initiate
Joined: 31/08/2010 21:47:28
Messages: 2
Offline
|
mlohbihler wrote:You can use a server-side script instead, and then do something like this:
Got it, Thank you very much
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 18:12:25
|
jmalkoff
Initiate
Joined: 27/08/2010 10:20:03
Messages: 17
Offline
|
How do you include the format and the suffex?
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 18:31:12
|
ftomiBR
Initiate
Joined: 12/07/2010 10:43:59
Messages: 53
Offline
|
Each point in the watch list has a "brick" icon at right-hand side. By clicking this icon you'll see the point properties and you'll be able to change its precision format and suffix.
|
Best Regards
Tommy |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 18:35:43
|
jmalkoff
Initiate
Joined: 27/08/2010 10:20:03
Messages: 17
Offline
|
Thank you, but I don't think that answers the question when trying to display data using a script. What is the script field name for 'suffix'?
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 18:40:35
|
ftomiBR
Initiate
Joined: 12/07/2010 10:43:59
Messages: 53
Offline
|
Sure, but if you are using a script you just need to add the plain text.
This message was edited 2 times. Last update was at 15/09/2010 18:41:37
|
Best Regards
Tommy |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 19:12:24
|
jmalkoff
Initiate
Joined: 27/08/2010 10:20:03
Messages: 17
Offline
|
Is there a way to use the UOM entered for the Suffix value? That way when the UOM changes in the Data Point Attribute it automaticly changes in the graphic display. After all, the Simple Point will display the Name and the Suffix.
Thanks!
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 20:23:16
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1456
Offline
|
In addition to "value", you can also try "htmlText" and "renderedText".
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 20:28:02
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1456
Offline
|
To answer your question, "htmlText" is the rendered text with colour (if appropriate), and optionally wrappers around very long values.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 20:29:47
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1456
Offline
|
Or, to quote the online documentation:
A Server-side script component can be used to define your own rendering logic. The scripting language used here is JavaScript, also known as ECMAScript. (The full specification for ECMAScript is available here.) There are, however, no "window" or "document" objects available since the script is evaluated on the server rather than the browser. Instead, the current value of the point is available via the value var, and the timestamp of the sample is given in the time var. In addition, pointComponent and point vars are also defined, with analogous values, and "htmlText" and "renderedText" represent rendered versions of the value. Finally, "events" provides a list of active events for the point, and "hasUnacknowledgedEvent" is a boolean value indicating whether at least one of the active events is not acknowledged.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 21:53:21
|
jmalkoff
Initiate
Joined: 27/08/2010 10:20:03
Messages: 17
Offline
|
Thanks for the information. How do you grab the Name?
What I really want is a Simple Point without the Orange border with a White background. How do you remove the Orange border?
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/09/2010 22:50:04
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1456
Offline
|
Try "return point.name;". I believe the documentation should help with the rest.
|
Best regards,
Matthew Lohbihler |
|
|
 |
|
|