Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Verified Answer
Replies
9 replies
Subscribers
7 subscribers
Views
6586 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Simple Questions from a n00b
Doctor Kurt Durt
over 7 years ago
I'm having an issue with two of my interfaces.
1. For the interface that manages the employees in an editable grid, I want to have a dropdown box that selects who that person reports to. In the CDT for employees, I have a field called "isSupervisor" that is boolean. I want only the people that have that field set to "true" to show up in the dropdown. I tried using:
choiceValues/Labels: index(local!newEmployee.firstName, where(local!newEmployee.isSupervisor))
and various other configurations for a default value. I'm not sure if those are the right functions to use, and whenever I don't get parameter errors, local!newEmployee.isSupervisor seems to be passing a null value, which value parameters don't like. As far as I know, that variable should not be passing a null value, because, without that dropdown box, the interface works and I was able to add data to the data store. I don't understand 100% how index() works and I'm assuming, from the documentation, that where() should parse the array and only return the variables that are true, by default.
2. In the interface for adding vehicles to the inventory, all of the variables update when I input data. Except for the username and vehicle field. They are setup thusly:
username:
a!textField(
label: "Associate making the change:",
refreshAfter: "KEYPRESS",
value: rule!FSRC_Common_GetFullNameForUser(loggedInUser()),
saveInto: ri!vehicles.addedBy
readOnly: true
vehicle:
a!textField(
label: "Vehicle being added:",
value: upper(
concat({local!year}," ",{local!make}," ",{local!model})
),
saveInto: ri!vehicles.vehicle,
readOnly: true
These components produce the proper values, but they do not update the declared rule inputs. So, if I use a!writeToDataStoreEntity(), it doesn't work, because those values are still null. I thought about using local variables and wrapping those text boxes in a with(), but I don't know if that would work or not. I haven't tried it.
Any help would be appreciated.
Discussion posts and replies are publicly visible