I am configuring an editable grid. I have a couple readOnly fields that get populated based on what the user selects in one of the other editable fields.
In this specific case, if the user selects a specific account number (the dropDownField(), the textfield above this gets updated. This field updates correctly. However, I get an error with that same if() statement for the dateField. How do I resolve this. See attached for code snippet and error.
Discussion posts and replies are publicly visible
The error suggests that your fv!item object does not have a property called 'effectiveDate' - are you able to share the data type that is associated with an instance of fv!item?
items: local!updatedArngmt - which is used to update records in a rule input associated with a data entity. The data entity does have a datefield called 'effectiveDate' If I leave it as an edited field - I can update the date just fine. For some reason - it won't update based on the selection made in the previous instance. Does the Data Entity have to have an index on the date field? I know the other text field does. I also thought that if I could have the data displayed in the editable grid sorted by id - it might help too.
Why are you filling out the saveInto parameter for a Read Only date field? This is not needed and won't do anything. Any chance the error goes away if you comment it out?
If you still get the error after commenting that out, then replace "ri!selectedAccount_cdt.effectiveDate" with "property(ri!selectedAccount_cdt, "effectiveDate", null())".