Grid Master / Detail on 3 levels

This example shows how to create a nested report. To build this application, 3 queries will be used, using the categories, products and applications tables.

Creating Grid detail

1. Create a new grid application using the following SQL.

SELECT
orders.orderid,
orders.orderdate,
order_details.unitprice,
order_details.totalprice
FROM
orders, order_details
WHERE
orders.orderid = order_details.orderid
AND
productid = [v_productid]

2. On the ScriptCase toolbar, click the Generate Source Code button.

3. Create another Grid application using the product table and adding the WHERE clause in SQL below.

WHERE
categoryid= [v_categoryid]

3. In the application menu, click on “Fields >> New Field”

4. Create a field of type “HTML Image” and add an image. Then click on the “New link” button

5. On the link, select the application you created earlier, assign the parameters according to the image and save.

6. Use the following properties for connection.

7. Go to the “Field positioning” item.

8. Sort according to the image below.

9. On the ScriptCase toolbar, click the Generate Source Code button.

Creating the Master Grid

10. Create a new Grid application based on the categories of tables.

11. Create a field of type “HTML Image” and add an image. Then click on the “New link” button

12. On the link, select the application you created earlier, assign the parameters according to the image and save.

13. Use the following properties for connection.

14. Click on the “Run application” button

Tutorials in the same category

Subquery XML export

1- Create an application of Grid 2- Go to the toolbar option on the side menu to enable ...

Send summary exported by email

In this tutorial we will be looking at how to export the summary and send it by email. Creat...

Send grid exported by email

1- Create an application of the type grid 2- Proceed to go in the side menu Export /...

Advanced Filter Tags (Chart)

In this tutorial we will see how an advanced filter can be applied within a Chart application ...

Comment this post