Skip to main content
September 19, 2023
Question

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

  • September 19, 2023
  • 13 replies
  • 0 views

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?

    13 replies

    stefanhelzle0001
    Brainy
    September 19, 2023

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

    September 19, 2023

     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

    stefanhelzle0001
    Brainy
    September 19, 2023

    I am confused. A non-submit button does not trigger that browser message.

    I am really missing the context here. Can you feed my remote healing powers with more details?