How to configure a new rule in the Save grid option

How to configure a new rule in the Save grid option

The Option Save Query allows the layouts to be saved publicly or with restricted access.




* Public - Anyone who has access to the application will have access to the saved Layout

* Use Rule - Allows the layouts to be saved with restricted access.


In this article, you will learn how to create a restricted rule in the option Save Query.

Creating a Rule

1 - On the Configuration screen, click New Rule.

You must define the name and Label for the identification of the rule in the Application interface.

The Label field accepts a global variable



2 - Then, add a global variable, to create the access restriction to the layout

In the example, the variable usr_login, which stores the login in the security module is being used. 

Thus, when user A creates one or more rules, only he will have access.




3 - Click Add, to include the global variable in the rule.

It is possible to create the rule without a global variable, however, this way the rule will have the same behavior as the public level



4 - Then click Finish.




When running the application and saving a layout with user 1, for example, only he has access to the profile created.


User 1 access example



User 2 access example




    • Related Articles

    • Hide new grid button at runtime

      To hide the grid buttons we will use the sc_btn_display() macro, this macro shows and hides the buttons in the toolbar at run time. 1- We use this macro in the OnScriptInit event of our grid, referring to our new button as “new”: 2- We run the ...
    • Email Export in Grid

      In the Query applications, you can configure the email export. This feature is used to export the Grid and send the export directly by e-mail to the configured recipients. E-mail export settings can be visualized in the Email export menu. Next, you ...
    • Enabling Nested Grid export on XLS

      You can enable Nested Grid exports when you want to export in XLS format. This option is useful when you want to generate complete XLS reports. To enable Nested Grid export, go to the menu Nested Grid -> Settings.  Then, in the XLS option, you can ...
    • Creating new themes for Scriptcase

      In this article, we will show how to create and edit new themes for your applications. Scriptcase afford a complete tool for creating themes, can change the layout of buttons, all the CSS application, and the application's menu bar menu. With a ...
    • Hide/Show "New User" field on login screen with HTML template

      In this article, we will learn how to enable the "Hide/Show" feature that is available within the "Security -> Settings" option, for the "New User" field found in the login screen that was generated with HTML template. Currently, this feature is ...