Using sc_ajax_refresh()

Using sc_ajax_refresh()

-Create a grid

-At the Ajax Event

-New Ajax Event:



-Select the Event onClick and the desired field, and create:




-Add the following macro: sc_ajax_refresh ();


-When clicking on the record in that field, the page would be reloading


Corresponding documentation: https://www.scriptcase.net/docs/es_es/v9/manual/14-macros/01-general-view/#sc_ajax_refresh


    • Related Articles

    • Using Ajax Processing(Refresh)

      In this article we will learn how to use the "Ajax Processing" function available in Scriptcase. As an example, we have a control-type application with two select fields ("state" and "city"), where when we select the state we will use ajax processing ...
    • Using ajax: onChange events

      In this article we will see how the onChange event works, available in Scriptcase. It is triggered when the object, which makes use of it, has its value changed. Down below is an example of using this event. We will use an order items form, we will ...
    • Using the sc_confirm macro

      In this article, see a practical example of using the sc_confirm macro. This macro can only be used on PHP buttons created in the toolbar of form and control applications, with the aim of confirming the action's excursion. See how to create a PHP ...
    • 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 events: In this example, it will be used within an ...
    • 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 ...