

To access the click on: Application> Configuration the option is in the Notification Settings blockĬheck below the parameters supported by the macro: This option can be enabled in the application's configuration menu. To display the message using a sweetalert2 library, the Use SweetAlert option must be enabled in the application where the macro will be used. This macro sends a message in the alert style of Javascript (Sweetalert) or Sweetalert2. This macro is used especially in Ajax events of a Grid application with the purpose of reloading the Grid data (refresh). To display the message using Toast, this option must be enabled in the application interface. Sc_ajax_message ("Client", "Title", "toast=Y&toasto_pos=center-start&type=success") Sc_ajax_message ("Message", "Title", "timeout=0") The icon exhibition depends on the applications theme configuration (exhibition schemes). When activated, this parameter forces a title bar to be shown, even if there is no title defined.įlag for exhibiting a icon on the message body. Redir=form_employees.php&redir_target=_blankįlag for exhibition of the "close" button on the messagebox title bar. This property works only when the "redir" property is enabled. This macro works only if the "button" property is enabled. Message positioning value in pixels from left margin. Message positioning value in pixels from top margin. This option works only if the "button" property is enabled. If there is redirecting enabled, the application will be redirected after closing the message.īutton label. This button default function is to close the message. This property works only if "button" property is not enabled. If this property is not informed, the message will be shown indefinitely. type: 'warning', 'error', 'success', 'info', 'question'įlag to define if the message will be shown in modal Sc_ajax_message("Message", "Title", "Parameters", "Parameters_Redir", "String_toast") Sc_ajax_javascript('method_name', array("param1","param2")) 3: Method javascript with two parameters: Sc_ajax_javascript('method_name', array("parameter")) Įx. 1: Method javascript without parameters:Įx. The second (optional) receive an array with the method parameters on it.Įx. The firs parameter (required) receive the javascript method name.

To use this macro you need to create a javascript method in the Programming settings. This macro allows the execution of JavaScript methods called from some events from form, control, and calendar applications.
