Passing Parameters to Charts

Passing Parameters to Charts

So when I was new to Zoho Creator I would create multiple Charts for virtually the same chart with just a few minor changes like, office name, criteria, etc.

I become increasingly annoyed with having a ton of charts to manage until I realized, "Hey if I can pass parameters to list views, forms, and calendars through my URL or my viewLinkName's in my embedded forms & views why can't I do that with charts?

The answer is YOU CAN!

Example... Here is my chart as it sits right now with no parameters passed to it..







URL for this chart.....

https://creator.zoho.com/zoho.adminuser/zoho.appname/#View:Touch_To_Show_Chart

Now here is my URL with a passed parameter

https://creator.zoho.com/zoho.adminuser/zoho.appname/#View:Touch_To_Show_Chart?office=Medford



Same chart different parameters.. no criteria changing, no filter changing, etc.


Like other views parameters don't work unless you have that field showing. So for example if you only want to show one ID in a list view. The views have to be showing (or atleast that's how I know to it to be). NOTE: This is not the case with forms you can pass parameters to hidden fields on forms no problem.

Couple things

1.


Since you can only have one selection for the x access that you are stuck with not being able to pass that many string parameters. (Workaround.... create hidden fields on your forms that hold number variables based on the string or date value you want to pass to a chart. Example: zoho.currentdate = 1, zoho.currentdate.subDay(1)= 0, etc.

2. Again, you will need to have ALL of the fields selected to get true flexibility with this sort of model. So it is a top down picking system rather than a bottom up selection.