I'm trying to display a discrete list of records from a CDT (based on a user

Certified Senior Developer
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
  • @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
Reply
  • @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
Children
No Data