Example of sc_apl_conf

Example of sc_apl_conf

In this example we will see how to make a form start blank with the macro sc_apl_conf.


1. We create an application of the Form type


2. Then in the onApplicationInit event we use the macro sc_apl_conf:


3. We save the changes and execute the application:


4. When you start, start like this:


To see what events can be used can be fixed in our manual: https://www.scriptcase.net/docs/en_us/v9/manual/14-macros/01-general-view/

    • Related Articles

    • Macro sc_date

        Scriptcase provides a very useful macro for manipulating dates, which is a very laborious process, however with the use of the sc_date macro (Increments and Decrement Dates), it is much simpler, example:   sc_date (Date, format, operator, D, M, A) ...
    • Example animation inside scriptcase

      This is an example of how to place animation on the form sheet, 1 - We go to the page of https://github.com/animate-css/animate.css to download the .zip of the animations. 2 - Downloading the .zip we proceed to load the downloaded file as an external ...
    • Macro sc_error_continue

      When we want to insert, modify or delete a record within our form it can not be possible because of the database errors that are previously configured, which can be generated by ourselves by means of triggers, for example: In this example we create a ...
    • Macro sc_block_display

      In this example, we will see how to use the sc_block_display macro in an Ajax event using a Radio button on a Form, this macro is intended to hide or show a block. The steps in this example: Configuring Radio type field Configuring and creating ...
    • Using the macros sc_begin_trans, sc_commit_trans and sc_rollback_trans

      When we need to maintain a control or follow-up to a specific procedure at the time of entering, modify some procedure within the database within a form we have the macro sc_begin_trans. The macro sc_begin_trans is responsible for carrying out a ...