update dictionary

hi,

am not sure why this error is coming 

   a!buttonWidget(
          submit: true,
          showWhen: ri!moduleStatus_txt <> cons!CR_TXT_INITIATED,
          validate: false(),
          confirmMessage: "Do you want to Return the Application?",
          confirmButtonLabel: cons!APN_TXT_CONFIRM,
          cancelButtonLabel: cons!APN_TXT_CANCEL,
          label: cons!APN_TXT_RETURN,
          value: cons!APN_TXT_RETURN,
          saveInto: {
            ri!buttonAction_txt,
            a!save(
              ri!nextAssignee_txt,
              local!crModuleStatusHistoryForLastCC_cdt.addedBy_txt
            ),
            a!save(
              ri!moduleStatus_txt,
              rule!CR_APP_FN_getNTBModuleStatus(
                inputUser_txt: local!crModuleStatusHistoryForLastCC_cdt.addedBy_txt,
                fromDU_boolean: ri!fromDU_boolean
              )
            ),
            a!save(
              ri!moduleRecommendationStatus_cdt,
              updatedictionary(
                ri!moduleRecommendationStatus_cdt,
                {
                  originalExpiry_dt: ri!originalExpiry_dt,
                  proposedExpiry_dt: ri!proposedExpiry_dt,
                  approverRole_txt: rule!CR_APP_FN_getUserRole(
                    inputUser_txt: local!crModuleStatusHistoryForLastCC_cdt.addedBy_txt
                  ),
                  moduleStatus_txt: ri!moduleStatus_txt,
                  buttonAction_txt: cons!APN_TXT_RETURN,
                  updatedBy_txt: loggedInUser(),
                  updatedOn_dt: now(),
                  submittedOn_dt: now()
                }
              )
            ),
            a!save(
              ri!crModuleStatus_cdt,
              updatedictionary(
                ri!crModuleStatus_cdt,
                {
                  moduleStatus_txt: ri!moduleStatus_txt,
                  updatedOn_dt: now(),
                  updatedBy_txt: loggedInUser(),
                  updatedByRole_txt: ri!role_txt,
                  duOwner_txt: if(
                    ri!fromDU_boolean,
                    local!crModuleStatusHistoryForLastCC_cdt.addedBy_txt,
                    null
                  )
                }
              )
            )
          }
        ),

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    The input of updatedictionary are dictionary and field & values. If the dictionary is null,then this error came.Please check whether this ri!moduleRecommendationStatus_cdt has value or not.

    Even still if you want to save into the fields of the cdt ,then instead of using updatedictionary,

    Use multiple a!save() like

    a!save( ri!moduleRecommendationStatus_cdt.originalExpiry_dt,ri!originalExpiry_dt),

    a!save( ri!moduleRecommendationStatus_cdt.proposedExpiry_dt, ri!proposedExpiry_dt) like this.

Reply
  • 0
    Certified Senior Developer

    The input of updatedictionary are dictionary and field & values. If the dictionary is null,then this error came.Please check whether this ri!moduleRecommendationStatus_cdt has value or not.

    Even still if you want to save into the fields of the cdt ,then instead of using updatedictionary,

    Use multiple a!save() like

    a!save( ri!moduleRecommendationStatus_cdt.originalExpiry_dt,ri!originalExpiry_dt),

    a!save( ri!moduleRecommendationStatus_cdt.proposedExpiry_dt, ri!proposedExpiry_dt) like this.

Children
No Data