To filter certain information within a Grid, the WHERE clause can be used. - An application of the Grid type must be created

![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbDVPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--65d6738c0c5d1fde6dec9db8b2ce8773caa0425c/image.png)

1. Then within the query that is going to be done, the filter is placed in a field and a global variable will be used to receive the information and filter it according to the client's id.

   ![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbDlPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7c183004d7562acf3c6c6ef64486c499ed2d90f3/image%20(1).png)

   
   

2. Finally you must run the application and place an existing id to filter it into the Grid

   \
   ![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbUJPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--87a5fffee371629e7dfc96e361c019f600201a9a/image%20(2).png)

3. And you can see that it filters by client

   ![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbUZPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4d14aa8ed853c5a0540694e421374cc7dc6f73d7/image.png)

   


