Expression evaluation error: The save target must be a local variable that does not refresh on every evaluation or on an interval, a process variable, or a node input (or a rule input passed one of those three)
I am having a wrapper interface and inside that first interface will have links listed in a grid ,on click of that dynamic link another interface open and has back button ,This wrapper is used as a record summary view.
When I am testing from interface it is working fine but when I am testing from record View It is throwing an error.kindly help me to resolve?
Grid Code:
a!localVariables(
{
a!gridField(
data: ri!relatedTransactionsInfo,
columns: {
a!gridColumn(
label: "Transaction Id",
value: a!richTextDisplayField(
value: a!defaultValue(
value: a!richTextItem(
text: index(fv!row, "transaction_id", {}),
link:a!dynamicLink(
saveInto: {
a!save(ri!currentTransactionId,ri!transactionId),
a!save(ri!transactionId, index(fv!row, "transaction_id", {})),
a!save(ri!showInterface,cons!NWS_TXT_NAVIGATION_TRANSACTION_VIEW)
},
),
),
default: cons!NW_NULL_PLACEHOLDER_VALUE
)
),
align: "START"
),
a!gridColumn(
label: "Type",
value: a!richTextDisplayField(
value: a!richTextItem(
text: a!defaultValue(
value: fv!row.transaction_type,
default: cons!NW_NULL_PLACEHOLDER_VALUE
)
)
),
align: "START"
),
a!gridColumn(
label: "Description",
value: a!richTextDisplayField(
value: a!defaultValue(
value: a!richTextItem(text: fv!row.description),
default: cons!NW_NULL_PLACEHOLDER_VALUE
)
),
align: "START"
),
a!gridColumn(
label: "Status",
value: a!richTextDisplayField(
value: a!defaultValue(
value: a!richTextItem(text: fv!row.status),
default: cons!NW_NULL_PLACEHOLDER_VALUE
)
),
align: "START"
)
}
)
}
)
Wrapper Code:
a!localVariables(
if( ri!showInterface = cons!NWS_TXT_NAVIGATION_RELATED_TRANSACTIONS_AND_REQUIREMENTS,
rule!NWS_displayRelatedTransactionAndRequirements(
transactionId: ri!transactionId,
showInterface: ri!showInterface,
showBackButton: ri!showBackButton,
counter: ri!counter,
transactionList: ri!transactionList
),
rule!NWS_RelatedTransactionSummaryView(
showInterface: ri!showInterface,
showBackButton:true(),
transactionId: ri!transactionId,
currentTransactionId:ri!currentTransactionId
)
)
)
