switch to integer basetype

Tagged:
  • Klaus79
    Teilnehmer
      vor 5 Jahren, 7 Monaten #18026

      I’ve created a new domain with base type ‘integer’.

      In UI-Designer I can’t choose it because ‘selected datatype’ is string.

      How can it be switched to ‘integer’?

      Klaus79
      Teilnehmer
        vor 5 Jahren, 7 Monaten #18028
        Up
        0
        Down
        ::

        the “2” above domain type is only be shown because I switched my domain type from integer to string.

        There was only one (other) domain type when my newly created was with base type integer.

        How can I change selected data type in header from above picture from ‘string’ to ‘integer’?

         

        Klaus79
        Teilnehmer
          vor 5 Jahren, 7 Monaten #18030
          Up
          0
          Down
          ::

          Did not work. When I change property ‘type’ of widget ‘Input’ to ‘number’ I can’t see my ‘integer domain’ in value validationi dialogue.

          Behaviour is same as type would be ‘text’.

           

          Ok, solved.

          I’ve to create my domain of same base type as widget shows when clicking on value Validation (range slider -> base type float, Input -> base type string, etc.).

          Mathieu Roll
          Administrator
            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)
          vor 5 Jahren, 7 Monaten #18211
          Up
          0
          Down
          ::

          Changing the Datatype into an other will break all your applications and is not right because the datatype is given from the ui5 framework

          dont do this

          Your Datatype has to be from the same Basedatatype as the Widget Property in this case String.

          Than you should make a parsing within the Process Designer by using the parse and string functions from the ITIZ_Uitilities Business Object.

          Kahn
          Moderator
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
          vor 5 Jahren, 7 Monaten #18027
          Up
          -1
          Down
          ::

          Hi, your newly created Data Type is a DOMAIN-Datatype. You can find it under the TAB: Domain Datatypes

          Kahn
          Moderator
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
          vor 5 Jahren, 7 Monaten #18029
          Up
          -1
          Down
          ::

          Ah sorry my fault. You have to change the data type of the widget into Integer if you want to use the frontend validation. Of course you have to change your widget logic as well e.g. formatting, but this depends on your widget.

          Kahn
          Moderator
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
          vor 5 Jahren, 7 Monaten #18031
          Up
          -1
          Down
          ::

          You have to change the widget property in the Simplifier Widget Properties Tab (see picture). Then the validation data type selection dialog should deliver you the respective data types.

           

          Edit: Or you could, as you did, create a data type corresponding to your data type property data type.

          Attachments:
          You must be logged in to view attached files.
        Ansicht von 7 Beiträgen – 1 bis 7 (von insgesamt 7)

        You must be logged in to reply to this topic.