How can we stop this dialogue box when we click on save option?

Certified Associate Developer

Hi Everyone, is it possible to stop this dialogue box, if yes , How can we stop this dialogue box when we click on save option?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    What is your "save option" and what is it doing?

  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

     a!buttonLayout(
                  primaryButtons: {
                    a!buttonWidget(
                      label: cons!ISR_TEXT_BUTTON_SAVE,
                      value: cons!ISR_TEXT_BUTTON_SAVE,
                      saveInto: {
                        a!save(local!visibility, true()),
                        a!startProcess(
                          processModel: cons!ISR_WRITE_TO_DB_FINAL_APPROVAL_PM,
                          processParameters: {
                            gsr_j_meeting_amd: local!gsrAmdMD,
                            gsr_j_meeting_study: local!gsrMD,
                            isr_j_meeting_study: local!isrMD,
                            isr_j_meeting_amendment: local!isrAmdMD,
                           
                          }
                        ),
                        a!save(ri!buttonAction, save!value),
                        a!save(ri!isrMdApproval, local!isrMD, ),
                        a!save(ri!gsrMdApproval, local!gsrMD, ),
                        a!save(ri!isrMdAmdApproval, local!isrAmdMD, ),
                        a!save(ri!gsrMdAmdApproval, local!gsrAmdMD, ),
                       
                      },
                      submit: false(),
                      style: "NORMAL",
                      validate: false(),
                     
                    ),
                    a!buttonWidget(
                      label: "Save AND END TASK",
                      value: cons!ISR_TEXT_BUTTON_SAVE_END_TASK,
                      saveInto: {
                        a!save(local!visibility, false()),
                        a!save(ri!buttonAction, save!value),
                        a!save(ri!isrMdApproval, local!isrMD, ),
                        a!save(ri!gsrMdApproval, local!gsrMD, ),
                        a!save(ri!isrMdAmdApproval, local!isrAmdMD, ),
                        a!save(ri!gsrMdAmdApproval, local!gsrAmdMD, ),
                       
                      },
                      submit: true(),
                      style: "PRIMARY",
                      validate: true,
                      validationGroup: cons!ISR_TEXT_BUTTON_SAVE_END_TASK,
                      confirmHeader: "Submit?",
                      confirmMessage: "Are you sure you want to Submit, decision taken cannot be changed later."
                    )
                  }
                ),
    

    I am just saving the comments for later without submitting. Actually, we have two buttons one is "save" and other is "save and end task", save and end task denotes submission of the task. 

    Please find the code configuration for that buttons

Reply
  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

     a!buttonLayout(
                  primaryButtons: {
                    a!buttonWidget(
                      label: cons!ISR_TEXT_BUTTON_SAVE,
                      value: cons!ISR_TEXT_BUTTON_SAVE,
                      saveInto: {
                        a!save(local!visibility, true()),
                        a!startProcess(
                          processModel: cons!ISR_WRITE_TO_DB_FINAL_APPROVAL_PM,
                          processParameters: {
                            gsr_j_meeting_amd: local!gsrAmdMD,
                            gsr_j_meeting_study: local!gsrMD,
                            isr_j_meeting_study: local!isrMD,
                            isr_j_meeting_amendment: local!isrAmdMD,
                           
                          }
                        ),
                        a!save(ri!buttonAction, save!value),
                        a!save(ri!isrMdApproval, local!isrMD, ),
                        a!save(ri!gsrMdApproval, local!gsrMD, ),
                        a!save(ri!isrMdAmdApproval, local!isrAmdMD, ),
                        a!save(ri!gsrMdAmdApproval, local!gsrAmdMD, ),
                       
                      },
                      submit: false(),
                      style: "NORMAL",
                      validate: false(),
                     
                    ),
                    a!buttonWidget(
                      label: "Save AND END TASK",
                      value: cons!ISR_TEXT_BUTTON_SAVE_END_TASK,
                      saveInto: {
                        a!save(local!visibility, false()),
                        a!save(ri!buttonAction, save!value),
                        a!save(ri!isrMdApproval, local!isrMD, ),
                        a!save(ri!gsrMdApproval, local!gsrMD, ),
                        a!save(ri!isrMdAmdApproval, local!isrAmdMD, ),
                        a!save(ri!gsrMdAmdApproval, local!gsrAmdMD, ),
                       
                      },
                      submit: true(),
                      style: "PRIMARY",
                      validate: true,
                      validationGroup: cons!ISR_TEXT_BUTTON_SAVE_END_TASK,
                      confirmHeader: "Submit?",
                      confirmMessage: "Are you sure you want to Submit, decision taken cannot be changed later."
                    )
                  }
                ),
    

    I am just saving the comments for later without submitting. Actually, we have two buttons one is "save" and other is "save and end task", save and end task denotes submission of the task. 

    Please find the code configuration for that buttons

Children