Initially we will have a button to redirect the form to the grid, with the parameter passing the orderid field. The macro sc_apl_conf is used when we need to change an application proprieties, for example, open a form in addition mode or change the number of row from a grid dynamically. The sc_redir macro is commonly used when there is a need to make a redirection from one application to another. In this example we will use both macros to redirect from a form application (using the ‘order’ table) to a grid application (using the ‘order_detail’ table), we will use the sc_redir macro to call the grid application passing the primary key as parameter to filter the grid application, and we will the sc_apl_conf macro to change the grid application to set it to show an specific number of lines per page. You can check the full list of macros at this link Scriptcase has more then 150 created macros to help you to insert your own business rules. Macros on Scriptcase is the same as in any other programs, it is a saved sequence of commands or keyboard strokes that can be stored and then recalled with a single command, it is the same as a function from PHP.