Announcement

Collapse
No announcement yet.

Form Button’s use of SweetAlert and Toast

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Form Button’s use of SweetAlert and Toast

    I would like to use SweetAlert and Toast to present PHP button confirmations. Specifically, to replace the “OK” confirmation on the form’s center top. I have used several methods without success and would greatly appreciate some direction.

  • #2
    tried sc_alert in combination with sc_exit(sel/ref)?
    sc_exit(Option)
    This macro can be used in the ScriptCase events and created button and may return values/process after the execution.
    Option Description
    sc_exit() Returns to the previous application without display anything.
    sc_exit(ok) Displays a window with an OK button adn returns to the previous application.
    sc_exit(sel) Doesn’t display the window with an OK button and returns to the current application, repeat the application select.
    sc_exit(ref) Doesn't display the window with an OK button refresh data and returns to the current application.
    sc_exit(ok,ref) Same of the sc_exit(ref) function; however, display the OK button.
    sc_exit(ok,sel) Same of the sc_exit(sel) function; however, display the OK button.

    This option is only valid for Form and Control Applications.

    Opton Description
    sc_exit() Doesn't complete transactions in database.
    sc_exit(c) Commit pending transactions.
    sc_exit(r) Rollback pending transactions.

    Macro Scope
    calendar application Form application Control Form
    onScriptInit onClick
    onScriptInit
    onClick
    onScriptInit

    Comment


    • #3
      I attempted to use the sc_exit options in your message which I wasn’t previously aware of to no avail. The only event the blank form application offers are onExecute and there is no option to create buttons, nor does it include a toolbar, and when called simply opens and runs the onExecute. For reference sake, I adapted to my need what was shown in a recent SC webinar https://youtu.be/NPZ8v20qmmM but just can't figure out how to gracefully return to the parent form application and still see the alert messages coming from the onExecute.

      Is there another part of the solution?

      Comment

      Working...
      X