Start a conversation

Macros

Examples of using Scriptcase macros

  • 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  ...

  • Using the sc_field_display macro

    To dynamically hide a field in this example, the macro sc_field_display is used, which is responsible for hiding or dynamically displaying a field or several. This macro has scope in the following eve...