Access Property Validation Domaintype in the Process Designer

  • David B.
    Participant
      1 year ago #46945

      Hello,

      I was wondering if it is possible to access/change the domaintype of the property validation via the process designer.

      I have the following scenario:

      I have a Select and an Input-Field. I am validating the input in the Input-Field via the Property Validation (Datatype-Validation). I want to change the domaintype in this validation when the selected item in my Select changes. So if I select “item1”, I want to validate the Input-Field with “domaintype1”. If I select “item2”, I want to validate the Input-Field with “domaintype2” and so on….

      Is there an easy/clean way to change the domaintype (when my selected item changes) in the process designer?

      Thank you very much and kind regards

      David

      • This topic was modified 1 year ago by David B.. Reason: spelling
      Armin Winkler
      Moderator
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
      1 year ago #46968
      Up
      1
      Down
      ::

      Hi David,

       

      unfortunately setting a domain type for property validation dynamically during runtime of an application is not possible. The reason being, that based on the chosen domain type for property validation, a self-invoking function will be generated into the source code of the app and attached to the chosen event of the widget, see the following screenshot for an example:

      This function declaration is therefore hardcoded and cannot be accessed or manipulated at a later point in time after the deployment. However, you can create a feature request in our Ideas portal (you’ll find the link here in your community profile overview by clicking on the button named ‘Ideas & Roadmap’ in the header section) and leave your requirements there so the desired functionality could be added to the platform in a future Simplifier release by us.

       

      Thank you and kind regards,

       

      Armin

      David B.
      Participant
        1 year ago #46971
        Up
        0
        Down
        ::

        Thanks Armin for your fast response!

        Then I will probably use more Inputs and hide/show them based on the selected item or something like this.

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

      You must be logged in to reply to this topic.