Start a conversation

Macros

Examples of using Scriptcase macros

  • Ejemplo de conexión de base de datos múltiple SC_CONNECTION_EDIT

    Ejemplo de conexión de base de datos múltiple  En este tutorial revisaremos un ejemplo práctico de uso para las macros sc_connection_edit y sc_connection_new en Scriptcase. En ese ejemplo, Scriptcase ...

  • Calculate age between dates

    To calculate age between dates you can use the sc_date_dif macro, as follows: It has the following structure:  2. Two AJAX events must be created from both fields, of date_nac and current_date   3. Fi...

  • Block editing over a calendar event

    To avoid editing on any calendar application form, follow these steps: 1. Create a calendar type application: 2. Inside the onScriptInit event you should use the macro sc_exit: ...

  • Show Question Message with SweetAlert (question)

    To use the new SweetAlert functionality and display a question message, the following parameters must be taken into accoun:   When executing it would look like this:...

  • Show Warning Message with SweetAlert (warning)

    To use the new SweetAlert functionality and display a warning message, the following parameters must be taken into account: When executing it would look like this:  ...

  • Show Information Message with SweetAlert (info)

    To use the new SweetAlert functionality and display an information message, the following parameters must be taken into account:  When executing it would look like this:  ...

  • Show Confirmation Message with SweetAlert (success)

    To use the new SweetAlert functionality and display a confirmation message, the following parameters must be taken into account:  When executing it would look like this:    ...

  • Show Error Message with SweetAlert (error)

    To use the new SweetAlert functionality and display an error message, the following parameters must be taken into account:   When executing it would look like this:      ...

  • Show Messages with SweetAlert

    To show confirmation message with the new functionality within the sc_alert macro. 1. Create an application of type Blank 2. Within the onExecute event, the sc_alert macro will be used using the follo...

  • Dynamically change the theme of a project

    In this examples we will see how to dynamically change the theme of a project in a control application with the macro sc_set_theme. Create a Control type application Create a field of the type Theme  ...