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
8 replies
Subscribers
8 subscribers
Views
2498 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I'm trying to display a discrete list of records from a CDT (based on a user
judym598
Certified Senior Developer
over 9 years ago
I'm trying to display a discrete list of records from a CDT (based on a user's previous selection) that include all read only fields and only one editable field but can't find a good example for an editable grid that does not include the ability to add/delete rows. It looks like I still need to create a main expression and a supporting rule but how do I do that without including the 'linkField' used to add/delete rows (which I don't need). I'm attaching the main expression rule (with the linkField rows commented out) and will add the supporting rule in a comment. My supporting rule doesn't display any errors but the MainExpression does ('Expression evaluation error at function a!applyComponents [line 100]
MainExpression.txt
OriginalPostID-174748
OriginalPostID-174748
Discussion posts and replies are publicly visible
Parents
0
neelimaj790
over 9 years ago
@judym598, You do not need to add tokens variables if you are not adding/deleting the details in Inline editable grid.. You can remove tokens from supporting rule as well as main rule.. and as per your error message is concerned, I feel the error is due to saveInto field of dropdown field in supporting rule.
Can u try with below code snippet in place of dropdown field:
a!dropdownField(
label: "Stage",
choiceLabels: local!stages.data.stage,
choiceValues: local!stages.data.id,
placeholderLabel: "--- Select Stage ---",
value: ri!selectedSubmissionBoard_cdt[ri!index].boardstageid,
saveInto: ri!selectedSubmissionBoard_cdt[ri!index].boardstageid,
required: true(),
readOnly: false()
)
Please let me know if it worked.
Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
neelimaj790
over 9 years ago
@judym598, You do not need to add tokens variables if you are not adding/deleting the details in Inline editable grid.. You can remove tokens from supporting rule as well as main rule.. and as per your error message is concerned, I feel the error is due to saveInto field of dropdown field in supporting rule.
Can u try with below code snippet in place of dropdown field:
a!dropdownField(
label: "Stage",
choiceLabels: local!stages.data.stage,
choiceValues: local!stages.data.id,
placeholderLabel: "--- Select Stage ---",
value: ri!selectedSubmissionBoard_cdt[ri!index].boardstageid,
saveInto: ri!selectedSubmissionBoard_cdt[ri!index].boardstageid,
required: true(),
readOnly: false()
)
Please let me know if it worked.
Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data