Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
7 subscribers
Views
3301 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hello, I am trying to create a pickerFieldCustom. I was able to make
issamd
over 11 years ago
Hello,
I am trying to create a pickerFieldCustom. I was able to make one that works when selecting a single result, but what is the best practice or implementation of selecting multiple results?
Thanks....
OriginalPostID-114655
OriginalPostID-114655
Discussion posts and replies are publicly visible
Parents
0
issamd
over 11 years ago
Ignore all the previous code. What I have now is pasted below. It will select one item but then it returns an error related to selectedLabel and value not being the same length:
= a!pickerFieldCustom(
label: ri!label,
instructions: ri!instructions,
required: ri!required,
requiredMessage: ri!requiredMessage,
readOnly: ri!readOnly,
disabled: ri!disabled,
maxSelections: if(
isnull(
ri!maxSelections
),
1,
ri!maxSelections
),
suggestFunction: rule!RULE_getEmployeeForPicker(
_,
if(
rule!APN_isBlank(
ri!numResultsReturned
),
20,
ri!numResultsReturned
)
),
selectedLabels: if(
rule!APN_isBlank(
ri!value
),
null,
apply(rule!RULE_multipleEmployeeLabelForPicker(identifier: _, labels: rule!Q_getEmployeeForPickerByID(
ri!value
).Name_Email_Division, identifiers: rule!Q_getEmployeeForPickerByID(
ri!value
).UserID), ri!value
)
),
value: ri!value,
saveInto: {ri!value,
ri!saveValueInto
},
refreshAfter: "KEYPRESS"
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
issamd
over 11 years ago
Ignore all the previous code. What I have now is pasted below. It will select one item but then it returns an error related to selectedLabel and value not being the same length:
= a!pickerFieldCustom(
label: ri!label,
instructions: ri!instructions,
required: ri!required,
requiredMessage: ri!requiredMessage,
readOnly: ri!readOnly,
disabled: ri!disabled,
maxSelections: if(
isnull(
ri!maxSelections
),
1,
ri!maxSelections
),
suggestFunction: rule!RULE_getEmployeeForPicker(
_,
if(
rule!APN_isBlank(
ri!numResultsReturned
),
20,
ri!numResultsReturned
)
),
selectedLabels: if(
rule!APN_isBlank(
ri!value
),
null,
apply(rule!RULE_multipleEmployeeLabelForPicker(identifier: _, labels: rule!Q_getEmployeeForPickerByID(
ri!value
).Name_Email_Division, identifiers: rule!Q_getEmployeeForPickerByID(
ri!value
).UserID), ri!value
)
),
value: ri!value,
saveInto: {ri!value,
ri!saveValueInto
},
refreshAfter: "KEYPRESS"
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data