String for Dynamic Text

Forum Home Forums Understanding the Software Using Formulas String for Dynamic Text

This topic contains 5 replies, has 3 voices, and was last updated by Mikhail Mikhail 1 year, 7 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1725

    Rob
    Participant

    Is it possible to pass a string to a dynamic text element? I would like to create a formula that returned a text string, how can I transfer that text string to a dynamic text element of the scheme?

    For example:

    I would like to set a formula of “DateTime.Now.ToString()”, set the format to text, and have the time string show in the dynamic text element associated with this channel.

    How can I do this?

    #1727
    Mikhail
    Mikhail
    Moderator

    Such case is now supported.

    For now, to display time you should create 3 input channels of Calculated Real type for hours, minutes and seconds. Then add 3 dynamic text elements to the scheme.
    The channel formula example: DateTime.Now.Hour

    In the next version it is planned to add new formatting for input channels, so it will be enough only 1 channel for this purpose.

    Note: You can also display strings from a predefined enumeration. For example, On – Off, etc.

    #1730

    Rob
    Participant

    Do you mean “not supported”?

    I use time strings as an example, I really need a generic way to load strings like status messages, help text, or even debug info to help me fix problems.

    #1735
    Mikhail
    Mikhail
    Moderator

    Do you mean “not supported”?

    Definitely. Excuse me please.

    If text messages have predefined text, it’s simple.
    If string should be constructed by a formula, development is required. The future schemes will support components written in JavaScript. Such components make schemes very flexible.

    #2481

    trauden
    Participant

    I use the formula DateTime.Now and set in the format as Time and Day but it returns only the value: 10/01/1900 00:00:00. It not changes and not the same as the time system.
    BRs

    #2483
    Mikhail
    Mikhail
    Moderator

    Use EncodeDate(DateTime.Now)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.