Issue with changing an array rule input

Certified Associate Developer

I am trying to adjust the rule inputs of an interface of my first Appian App. More specifically, I just changed the rule input, but somehow am not able to see all the entries of the data type "person" which is supposed to have all the entries displayed in the preview. Interestingly, the auto-completion in the Expression mode works.

Is this behavior intended? How do I adjust the rule inputs so that it shows the the actual sub-entries of my datatype, similar to https://youtu.be/aJXle5ftPM8?t=593?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Can you provide some clarification on a few points?

    • What did you change about the rule input? 
      • Specifically, what was it set to before and what is it set to now?
    • What worked differently prior to this change?
    • What are you expecting to have happen?  What are you seeing instead?
    • Additionally, if you can share the code for your interface (please use 'Insert' --> 'Insert Code' functionality), that would help us troubleshoot any apparent issues.
  • 0
    Certified Associate Developer
    in reply to Mike Schmitt

    I created the form as a template from a data type, but I had to delete the data type as I struggled with updating the Appian cloud DB table. Anyhow:

    1. I deleted the rule input which was automatically generated via the template and added a new one using the little plus sign. Before it was something like similar to the following:

    Afterwards I do not see this sub-entries any more.

    2. I do not understand your question. But the underlying motivation for changing the rule input was that I changed the datatype to account for data base model changes, since the DB did not update automatically (it is has to do with capital letters and underliners I am using, but I fixed that with the XSD-download-upload-trick)

    3. I hope (1) clarifies that.

    4. The code of the interface is the following:

    a!formLayout(
      label: "POC - Mini App",
      instructions: "Create record.",
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!textField(
                  label: "First Name",
                  labelPosition: "ABOVE",
                  value: ri!person.first_name,
                  saveInto: ri!person.first_name,
                  validations: {
                    null
                  }
                ),
                a!dropdownField(
                  label: "Gender",
                  labelPosition: "ABOVE",
                  placeholderLabel: "--- Select a Value ---",
                  choiceLabels: {"Female", "Male",
                    "Other"},
                  choiceValues: {1, 2,
                    3},
                  saveInto: {},
                  saveInto: ri!person.gender_id,
                  validations: {}
                ),
                a!dropdownField(
                  label: "Title",
                  labelPosition: "ABOVE",
                  placeholderLabel: "--- Select a Value ---",
                  choiceLabels: {"none", "Dr.",
                    "Prof.",
                    "Prof. Dr."},
                  choiceValues: {1, 2,
                    3,
                    4},
                  saveInto: ri!person.title_id,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!textField(
                  label: "Last Name",
                  labelPosition: "ABOVE",
                  value: ri!person.last_name,
                  saveInto: ri!person.last_name
                ),
                a!textField(
                  label: "Nobility Particle",
                  labelPosition: "ABOVE",
                  value: ri!person.nobility_particle,
                  saveInto: ri!person.nobility_particle
                )
              }
            )
          }
        )
      },
      buttons: a!buttonLayout(
        primaryButtons: {
          a!buttonWidget(
            label: "Submit to DB",
            icon: "database",
            submit: true,
            style: "PRIMARY"
          )
        },
        secondaryButtons: {
          a!buttonWidget(
            label: "Cancel",
            value: true,
            saveInto: ri!cancel,
            submit: true,
            style: "NORMAL",
            validate: false
          )
        }
      )
    )

Reply
  • 0
    Certified Associate Developer
    in reply to Mike Schmitt

    I created the form as a template from a data type, but I had to delete the data type as I struggled with updating the Appian cloud DB table. Anyhow:

    1. I deleted the rule input which was automatically generated via the template and added a new one using the little plus sign. Before it was something like similar to the following:

    Afterwards I do not see this sub-entries any more.

    2. I do not understand your question. But the underlying motivation for changing the rule input was that I changed the datatype to account for data base model changes, since the DB did not update automatically (it is has to do with capital letters and underliners I am using, but I fixed that with the XSD-download-upload-trick)

    3. I hope (1) clarifies that.

    4. The code of the interface is the following:

    a!formLayout(
      label: "POC - Mini App",
      instructions: "Create record.",
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!textField(
                  label: "First Name",
                  labelPosition: "ABOVE",
                  value: ri!person.first_name,
                  saveInto: ri!person.first_name,
                  validations: {
                    null
                  }
                ),
                a!dropdownField(
                  label: "Gender",
                  labelPosition: "ABOVE",
                  placeholderLabel: "--- Select a Value ---",
                  choiceLabels: {"Female", "Male",
                    "Other"},
                  choiceValues: {1, 2,
                    3},
                  saveInto: {},
                  saveInto: ri!person.gender_id,
                  validations: {}
                ),
                a!dropdownField(
                  label: "Title",
                  labelPosition: "ABOVE",
                  placeholderLabel: "--- Select a Value ---",
                  choiceLabels: {"none", "Dr.",
                    "Prof.",
                    "Prof. Dr."},
                  choiceValues: {1, 2,
                    3,
                    4},
                  saveInto: ri!person.title_id,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!textField(
                  label: "Last Name",
                  labelPosition: "ABOVE",
                  value: ri!person.last_name,
                  saveInto: ri!person.last_name
                ),
                a!textField(
                  label: "Nobility Particle",
                  labelPosition: "ABOVE",
                  value: ri!person.nobility_particle,
                  saveInto: ri!person.nobility_particle
                )
              }
            )
          }
        )
      },
      buttons: a!buttonLayout(
        primaryButtons: {
          a!buttonWidget(
            label: "Submit to DB",
            icon: "database",
            submit: true,
            style: "PRIMARY"
          )
        },
        secondaryButtons: {
          a!buttonWidget(
            label: "Cancel",
            value: true,
            saveInto: ri!cancel,
            submit: true,
            style: "NORMAL",
            validate: false
          )
        }
      )
    )

Children