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
Can you provide some clarification on a few points?
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 ) } ) )
What is the data type of ri!person? From your initial screenshot it looks as if it's set to be an array, which it shouldn't be. And also it would be nice if we can confirm that it's set as a CDT with the proper fields, in accordance to how your on-form saves are configured.
It was a CDT and it was supposed to be one after re-inserting a new variable. I played with an array, so that's the confusing screen-shot came about. Sorry for that.