We have an issue with a variable overwriting another variable within a sail form

We have an issue with a variable overwriting another variable within a sail form. These variables initially have the same value and then one is modified by the user while the other remains a "read only" version. The issue we are having is when the user edit's the editable variable, the values are being overwritten in the "read only" variabe - before anything is saved to the databse (the database is the original source for both).

load(
/*Retrieving fresh exception data from the SQL database before populating to the user (Added with Release 6)*/
ri!eadOnly_exceptionDetails_cdt : rule!CAC_getExceptionByIDAndNotStatus(ri!exceptionDetails_cdt.crsExceptionID, "Cleared"),
ri!exceptionDetails_cdt : rule!CAC_getExceptionByIDAndNotStatus(ri!exceptionDetails_cdt.crsExceptionID, "Cleared"),

local!noDocAttached_bool: if(
getdocumentsfromfolder(
rule!findExactFolderNameMatch(
ri!exceptionDetails_cdt.crsExceptionID
),
...

OriginalPostID-168667

OriginalPostID-168667

  Discussion posts and replies are publicly visible

Parents
  • ... n_Txt & cons!CAC_CM_ACCEPTED_FILE_EXTENSIONS_MSG2
    )
    )
    ),
    if(
    isnull(
    ri!readOnly_exceptionDetails_cdt.collateralid
    ),
    {},
    rule!CAC_Exceptions_CRS_Detail_Selector(
    ri!exceptionDetails_cdt,
    CusipHolder_Txt
    )
    ),
    rule!APN_uiSectionTwoColumn(
    label: "Exception Comments",
    column1: {
    a!paragraphField(
    label: "Processor Comments",
    labelPosition: "ADJACENT",
    readOnly: false(),
    value: ri!processorComments_text,
    saveInto: ri!processorComments_text
    ),
    a!linkField(
    label: "Comments in News Feed",
    links: a!safeLink(
    uri: "/suite/tempo/entry/" & ri!exceptionDetails_cdt.entryID,
    label: "Click here to see all comments for this Exception"
    )
    ),
    a!textField(
    label: "",
    ...
Reply
  • ... n_Txt & cons!CAC_CM_ACCEPTED_FILE_EXTENSIONS_MSG2
    )
    )
    ),
    if(
    isnull(
    ri!readOnly_exceptionDetails_cdt.collateralid
    ),
    {},
    rule!CAC_Exceptions_CRS_Detail_Selector(
    ri!exceptionDetails_cdt,
    CusipHolder_Txt
    )
    ),
    rule!APN_uiSectionTwoColumn(
    label: "Exception Comments",
    column1: {
    a!paragraphField(
    label: "Processor Comments",
    labelPosition: "ADJACENT",
    readOnly: false(),
    value: ri!processorComments_text,
    saveInto: ri!processorComments_text
    ),
    a!linkField(
    label: "Comments in News Feed",
    links: a!safeLink(
    uri: "/suite/tempo/entry/" & ri!exceptionDetails_cdt.entryID,
    label: "Click here to see all comments for this Exception"
    )
    ),
    a!textField(
    label: "",
    ...
Children
No Data