Welcome to Portal

?Unknown\pull-down

Welcome to Zoho Cares

Bienvenido a Soporte de Zoho

Search our knowledge base, ask the community or submit a request.



Hi folks,

As part of Zoho Creator - Tips and Tricks series every fortnight, we are back today with a new tip on how to use URL parameters to filter reports.

You don't always have to play with filters to drill down reports. Yes, that's right. You can pass URL parameters to set filter values and view only the required data. This technique is quite useful while linking reports in an email, a document, or when bookmarking an important report that you would like to view on a regular basis. For example, you can bookmark your sales report and add a filter value parameter specific to your region.

Let's look at example to understand how to pass parameters to the URL. Here, we have a sample report showing the details of different products.



Let's see how to filter using a single field: 

Base Link + #Report:<report_link_name>?Field_Deluge_Name =  value

Now let's add a filter to view all the records with the Category:Mirror. The report URL would be as given below:
  1. https://app.zohocreator.com/username/distribution-management/#Report:Product_Details?Category=Mirrors





Similarly, you can filter a single field with multiple values: 


Base Link + #Report:<report_link_name>?Field_Deluge_Name = [value1,value2]


In this case, let's filter the products based on two Categories:Mirrors and Steering. The report URL would be:

  1. https://app.zohocreator.com/username/distribution-management/#Report:Product_Details?Category=[Steering,Mirrors]


Also, you can filter by passing multiple fields: 



Here, let's filter the products based on two fields: Size and Category.The report URL would be:

  1. https://app.zohocreator.com/username/distribution-management/#Report:Product_Details?Category=Mirrors&Size=Medium



Filter reports based on Lookup values:

Now, that we have looked at how to use URL parameters to filter reports, let's see how to filter based on Lookup fields with multiple display values.

Use Case 1: How to filter reports based on the Lookup field values.

To perform this action, we need to fetch the ID field from the looked up form to the current report. That is, add the ID field to the list of columns displayed in the Column properties and filter the report based on that ID fetched. 

(Report URL)?Lookupfield_name.ID=[ID1,ID2]


Here in our below given example, Supplier Name is a Lookup field from Add Suppliers form and ID is fetched from the Add Suppliers Form using Column Properties in the report settings. The report URL would be:

  1. https://app.zohocreator.com/username/distribution-management/#Report:Product_Details?Supplier_Name.ID=[3267415000001988061,3267415000001988044]



Use Case 2: How to filter reports based on another field in the Looked up form.

To do this you need to add the related unique field from the Looked up form to the current report, and search based on this unique field.

(Report URL)?Lookupfield_name.ID=[value1,value2]

Here again, Supplier_Name is a Lookup field from the Add Suppliers Form with multiple display values -- Supplier Name and Company name as you can see in the screenshot. And, Company_Name is the unique field that is fetched from the Add Suppliers Form using Column Properties in the report settings.

Let's use URL parameters to fetch records with Company names: Winsteer Corp and Parker Drive.

  1. https://app.zohocreator.com/username/distribution-management/#Report:Product_Details?Company_Name=[Winsteer Corp, Parker Drive]




P.S: The values should always be enclosed in square brackets not Curley braces. 

Hope you got a fair idea on how to use URL parameters to dynamically filter reports. Keep watching this space for more such tips.







1 user likes this announcement.
30 Replies
Reply
16 more
  • 4 years ago

Thanks very much for replying Sejal, really appreciate it.

It's a great suggestion and I'm using this method where I don't mind suppressing report functionality such as bulk edit . I was just hoping that there was a way to use this URL filter, provide full report functionality to the user and avoid the problem of exposing the filter.

Not to worry, it's still a really useful feature and all the other great things about Creator far outweigh this minor setback.

Regards,
Oliver

Hi Sejal,

I want to share an unique link to each user. Once the user clicks on the link, a field in a particular record corresponding to the user should be updated.

Ex, when the user clicks on a link, the field value in a particular record should be changed. Like after a volunteer makes a donation, they click on a link which marks their 'Donation Status' as 'Donated' in Creator form.

How to do this?

  • 4 years ago

Hi Karthee,

In regards to your concern, as of now Creator does not support updating the record by using link as you will only be able to open a component using link. However, Zoho Creator lets you to update the record by making use of custom button ( instead of link ) which you can configure in your report to serve your purpose.

if in case the suggestion doesn't help achieve your requirement, please share us the use case of your concern by writing us to support@zohocreator.com so that we could check and suggest a better solution for you.

Good Day !

  • 3 years ago

Stupid question maybe, but where do I find the username?

You provided a link to "custom button" above. That reads well, but us for V4. I can't find similar functionality under V5. Please provide a V5 link.

hello i have been trying to filter by providence field under address like such but it doensnt work any clues ??

 Address.state_province=Soledad

  • Zoho MVP
  • 2 years ago

You can try adding a formula field to the form pointing to the state_province field, then filter using the formula field.

I wanna do the same in "publish forms" in zoho creator.

  • Creator Certified Developer - Associate
  • 2 years ago

When you say say you want to do the same, what do you mean by this exactly?

  • 2 years ago

A couple questions -

Is it possible to check if a field is null / empty?
Is it possible to check if a field is not equal to?

  • 2 years ago

Is it possible to configure a report so that a dynamic filter must be specified to see any records? I want my users to only see records that they are supposed to see, however if the edit the URL in the browser address field to remove the filter then they will see all records. I do not want them to be able to do that, so if no filter is specified then no records are displayed.

  • Zoho MVP
  • 2 years ago

Unfortunately this is not currently possible with just using the report filters.

An alternative would be to "div" embed the report within a HTML Snippet in a page and using the pages parameters pass the required filter criteria. Then using an if statement inside the Snippet to check if you should show the report or not.

  • 2 years ago

Hello, I need to filter the Report based on the ID field but I do not want to display the field in the report. Any solution to achieve this ?

  • Zoho MVP
  • 2 years ago

In the live report you can hide the column, then save the changes. The users can show it if they want but it's not displayed by default.


Reply to Sejal DattaniA
/* */
  • 12
  • Insert
  • Plain text
Add Comment
(Up to 20 MB )
    Stats
    10 followers
    30 replies
    22748 views
    Follow

    Subscribe to receive notifications from this topic.