Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Dialog Message messageLabel AutoChild dynamicContents

    Hi Isomorphic,

    Shouldn't the below code disable dynamic contents for the message on the Dialog?

    It would appear to still be evaluating the JavaScript in this case.

    Code:
    Dialog dialog = new Dialog();
    dialog.setAutoSize(autoSize);
    Label messageProps = new Label();
    messageProps.setDynamicContents(false);
    dialog.setAutoChildProperties("messageLabel", messageProps);
    dialog.setTitle("Some Title");
    dialog.setIcon(IconConstants.CONFIRM);
    dialog.setMessage("${[JavaScript to evaluate]}");
    Thanks

    #2
    Version v12.1p_2023-10-21

    Comment


      #3
      Hi there, that's a reasonable expectation, but in this case the dynamic message is not actually being performed by the dynamicContents feature, but by direct calls to the underlying functionality (due to needing some special context).

      What we'll do is modify the code so that turning off dynamicContents also disables the message templating, making your code actually work.

      We'll let you know when this is in. In the meantime, if you are trying to prevent erroneous evaluation of JavaScript, you could just have your app code scan the message and remove anything suspect.

      Comment


        #4
        We have fixed this issue. You will be able to test it starting with the June 13 builds.

        Best Regards
        Isomorphic Software

        Comment


          #5
          Thank you

          Comment

          Working...
          X