[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How do I change the font size for Simple Point?  XML
Forum Index » User help
Author Message
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
mlohbihler

Master
[Avatar]

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
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
jmalkoff

Initiate

Joined: 27/08/2010 10:20:03
Messages: 17
Offline

How do you include the format and the suffex?
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
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'?

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
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!
mlohbihler

Master
[Avatar]

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
mlohbihler

Master
[Avatar]

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
mlohbihler

Master
[Avatar]

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
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?
mlohbihler

Master
[Avatar]

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
 
Forum Index » User help
Go to:   
Powered by JForum 2.1.9 © JForum Team