• Not Answered

DeltaV Live: Newline character for Message box

Hello,

I would like to add a newline character to a message box message.
Tried using the \n as seen below.

I can get it to work with the alert function

But with the message box, it is just adding a space.


Is there some other special character to be used for a message box?



Regards,

Navin Singh

5 Replies

  • This issue has been identified and I think the fix is suppose to be in FP1 of v15 (at least right now, things sometimes change).
  • In reply to Matt Stoner:

    Thanks Matt,
    Hope it is fixed in v15 FP1.

    Regards,

    Navin Singh

  • In reply to Navin Singh:

    Hi Navin,

    Have you considered using a small Contextual Display for Message Box alternative?

    It would be possible to configure multiple context parameters that can populate the message box when called from the interface. This is a potential solution:

    In Graphics Studio add an interaction to Open a Contextual Display to the desired object

    Create a simple contextual display like this, notice it is small and the Window Title is linked to a Context Property (Context1) from the previous screen capture.

    The text box in the contextual display has a couple of configuration changes:

    1. Uncheck the Lock Height to Font Size box and stretch down to fit your needs

    2. In the Text tab, check the Wrap Text check box and consider using a "newline sequence" to indicate where to inject the new line, in the case you want to use the "Message:" header I show here for illustration purposes. Also Add a Placeholder that will be linked to the Context property (Context2). It is possible to just add the placeholder and no heading "Message:" or newline sequence would be needed.

    For the button to close the message, assign DL.PopupClose() to its action script

    In runtime, these changes will look like this:

    Another advantage of Contextual Displays is that they are not Modal and there is no gray out effect behind them.

    Camilo

    Camilo Fadul | DeltaV Solution Marketing Director

    https://www.linkedin.com/in/cfadul

  • In reply to Camilo Fadul:

    Hello Camilo,

     

    Thanks for the detailed explanation with illustration.

    I am able to create a popup window with multiple lines.

     However, the issue I have is my message is variable I can’t hard code the message offline.

    This results in part of the message being truncated as seen below, the module name FIC-1 is not visible.

    I understand that in DeltaV Live we cannot resize the window in runtime.

      

    By using the standard message box the window would resize itself.

     

    I will remember the solution provided by you in case I have to display a static message with multiple lines.

    Regards,

    Navin Singh

  • In reply to Navin Singh:

    If this is causing issue, log a call with GSC and request a hotfix.