Functionality based URLs
Table of Contents
Overview
In the topic Zoho Creator URL Patterns we learned about the default URLs to access a Zoho Creator application and its forms, reports and pages. In this topic, we will learn about the functionality based URLs to set default values for form fields, edit individual records by passing record-ID in the URL, set criteria for and print reports and pages.
All URL formats will use the following:
| <base_url> | the base URL of your Creator account For example, its app.zohocreator.com if your account belongs to Zoho's US DC, and is app.zohocreator.eu if it belongs to Zoho's EU DC. |
| <account_owner_name> | is the username of owner of the Creator account in which the application exists |
| <app_link_name> | is the link name of the Zoho Creator application |
<form_link_name> | is the link Name of the component - form, report, or page, respectively |
Permalink of Forms, Reports and Pages
You can also access the components (forms, reports and pages) in your Zoho Creator application using their permalinks. As the word suggests, a permalink is a permanent link; it refers to the URL of a particular webpage (a form, report or page, here).
The format of permalinks of your app's components are as given below:
| Permalink of forms | https://<base_url>/<account_owner_name>/<app_link_name>/form-perma/<form_link_name> Example: https://app.zohocreator.com/sampleapps/employee-manager/form-perma/Basic_Information You may embed your form in your website, blog, etc. by using the below given format, <iframe height='500px' width='100%' frameborder='0' allowTransparency='true' scrolling='auto' src='https://<base_url>/<account_owner_name>/<app_link_name>/form-embed/<form_link_name>'></iframe> |
| Permalink of reports | https://<base_url>/<account_owner_name>/<app_link_name>/report-perma/<report_link_name> Example: https://app.zohocreator.com/sampleapps/employees/report-perma/All_Employees You may embed your report in your website, blog, etc. by using the below given format, <iframe height='500px' width='100%' frameborder='0' allowTransparency='true' scrolling='auto' src='https://<base_url>/<account_owner_name>/<app_link_name>/report-embed/<report_link_name>'></iframe> |
| Permalink of pages | https://<base_url>/<account_owner_name>/<app_link_name>/page-perma/<page_link_name> Example: https://app.zohocreator.com/sampleapps/employees/page-perma/Complete_Employee_details You may embed your page in your website, blog, etc. by using the below given format, <iframe height='500px' width='100%' frameborder='0' allowTransparency='true' scrolling='auto' src='https://<base_url>/<account_owner_name>/<app_link_name>/page-embed/<page_link_name>'></iframe> |
- Accessing a component using its permalink requires the end user to be logged in.
- To allow public access to your application components, refer to publish and embed forms, publish and embed reports, and publish and embed pages.
Functionality based URLs for Forms
To set default values for Form Fields
The default values for Form Fields can be set by passing additional parameters in the Form's URL. For example, to automatically load a value for the Field Employee ID in the Employee Manager Application, the default value is passed as query string (Employee_ID=1234) in the Form's URL, where Employee_ID is the Deluge script name of the Field in the Employee Form.
The Form's URL with query string will be in the below formats:
- Accessing within the Application:
https://app.zohocreator.com/zchelp/employee-manager/#Form:Employee?Employee_ID=1234 - Accessing via its permalink:
https://app.zohocreator.com/zchelp/employee-manager/form-perma/Employee?Employee_ID=1234 - Accessing a Form, which is embedded in another webpage:
https://app.zohocreator.com/zchelp/employee-manager/form-embed/Employee?Employee_ID=1234
For the multi select and checkbox fields, there can be the need to set multiple values. For this, the values must be comma-separated in the URL. For example, if the values "Manager" and "Programmer" are to be set for the field Roles in the Employee Form, the URL will be: https://creator.zoho.com/zchelp/employee-manager/#Form:Employee?Roles=Manager,Programmer
To load Form without Field focus
You may note that when you access your form in your Zoho Creator application, the focus gets set on the first Field of the Form, i.e., the cursor appears on the first Field of the Form.
Assume that you have a website or blog, in which you have embedded your form. When your webpage is accessed, this default auto-focus behavior will scroll your webpage to where your form is placed. This may hinder a user's experience as the content present above the embedded form gets skipped. To handle this, Zoho Creator provides the zc_Focus parameter.
| Value for zc_Focus | Intended behavior |
| true |
|
| false |
|
To edit individual records by passing record-ID in the URL
The URL to view and edit individual records using their record-ID is given below. This will display the Zoho Creator Form in Edit mode.
Refer to the topic Editing Records via Record ID for more information.
Functionality based URLs for Reports
To filter the data displayed by a Report
You can filter the data displayed by a report by setting the filter criteria as querystring in its URL. Filtering using multiple criteria is supported — use an ampersand character (&) to separate two field-value pairs. Below are examples of filtering the Employee Manager application's Employee View report. This report's URL:
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View
URL format for filtering a report based on the EQUALS operator
where, FieldName1 and FieldName2 are the link names of the fields in the form
Examples:
- The URL to have this report display only those employee records where the employee's name is Daniel (Name=Daniel):
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Name=Daniel - The URL to have this report display only those employee records where the employee ID is 2466 (Employee_ID=2466):
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Employee_ID=2466 - The URL to have this report display only those employee records where the employee's date of joining is 13-May-2019 (Date_of_Joining=13-May-2019):
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Date_of_Joining=13-May-2019
URL format for filtering a report based on the STARTS WITH operator
where,
| Fieldname1 | is the link name of the Field in your Form |
| Fieldname1_op | is the parameter that links the Fields and Operators |
| constant | is the value that refers to the operator that will act on the respective fields. Refer to this table to view the list of all Operators and their Constants. |
Examples:
- The URL to have this report display only those employee records where the employee's name starts with Dan, is as follows. The Name field in this application is of type single line and 24 is the constant that identifies the STARTS WITH operator.
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Name=Dan&Name_op=24 - The URL to have this report display only those employee records where the employee ID starts with 246, is as follows. In this application, Employee ID is a number field.
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Employee_ID=246&Employee_ID_op=24
URL format for filtering a report based on the CONTAINS operator
For example, the URL to have this report display only those employee records where the employee is in some administrative role, is as follows. In this application, Role is a checkbox field and 26 is the constant that identifies the CONTAINS operator.
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Roles=Admin&Roles_op=26
URL format for filtering a report based on the BETWEEN operator
where, StartingValue and EndingValue can be a number, decimal value, or date
Example: The URL to have this report display only those employee records where the date of joining is between 10-Sep-2019 and 30-Mar-2020, is as follows. The Date of Joining field in this application is of type date and 58 is the constant that identifies the BETWEEN operator.
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Date_of_Joining=10-Sep-2019;30-Mar-2020&Date_of_Joining_op=58
URL format for filtering a report based on other date/date-time specific operators
Note: Refer to the table below for the list of constants that denote the operators
- The URL to have this report display only those employee records where the Date of Joining is in the last year, is as follows. Here, 51 is the constant that identifies the LAST YEAR operator. This format also applies to operators such as NEXT YEAR, CURRENT YEAR, LAST MONTH, THIS MONTH, LAST WEEK, THIS WEEK, YESTERDAY, and TOMORROW.
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Date_of_Joining_op=51 - The URL to have this report display only those employee records where the Date of Joining is in the last n years, is as follows. Here, 70 is the constant that identifies the LAST N YEAR operator. This format also applies to operators such as NEXT N YEAR, LAST N MONTH, LAST N WEEK, and LAST N DAYS.
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Date_of_Joining=2&Date_of_Joining_op=70 - The URL to have this report display only those employee records where the Date of Joining is in the current and previous year, is as follows. Here, 56 is the constant that identifies the CURRENT_PREVIOUS_YEAR operator. This format also applies to operators such as CURR_PREV_MONTH and CURRENT_PREVIOUS_WEEK.
https://app.zohocreator.com/zchelp/employee-manager/#Report:Employee_View?Date_of_Joining_op=56
List of Operators and their Constants
| Operator | Constant |
| EQUAL | 18 |
| NOT_EQUAL | 19 |
| LESS_THAN | 20 |
| GREATER_THAN | 21 |
| LESS_EQUAL | 22 |
| GREATER_EQUAL | 23 |
| STARTS_WITH | 24 |
| ENDS_WITH | 25 |
| CONTAINS | 26 |
| NOT_CONTAINS | 27 |
| LIKE | 28 |
| EMPTY | 29 |
| NOT_EMPTY | 30 |
| YESTERDAY | 31 |
| TODAY | 32 |
| TOMORROW | 33 |
| LAST_7_DAYS | 34 |
| LAST_30_DAYS | 35 |
| LAST_60_DAYS | 36 |
| LAST_90_DAYS | 37 |
| LAST_120_DAYS | 38 |
| NEXT_7_DAYS | 39 |
| NEXT_30_DAYS | 40 |
| NEXT_60_DAYS | 41 |
| NEXT_90_DAYS | 42 |
| NEXT_120_DAYS | 43 |
| LAST_MONTH | 44 |
| THIS_MONTH | 45 |
| NEXT_MONTH | 46 |
| CURR_PREV_MONTH | 47 |
| CURR_NEXT_MONTH | 48 |
| TRUE | 49 |
| FALSE | 50 |
| LAST_YEAR | 51 |
| CURRENT_YEAR | 52 |
| NEXT_YEAR | 53 |
| PREVIOUS_2_YEAR | 54 |
| NEXT_2_YEAR | 55 |
| CURRENT_PREVIOUS_YEAR | 56 |
| CURRENT_NEXT_YEAR | 57 |
| BETWEEN | 58 |
| THIS_WEEK | 59 |
| LAST_WEEK | 60 |
| NEXT_WEEK | 61 |
| CURRENT_PREVIOUS_WEEK | 62 |
| CURRENT_NEXT_WEEK | 63 |
| LAST_N_DAYS | 64 |
| NEXT_N_DAYS | 65 |
| LAST_N_WEEK | 66 |
| NEXT_N_WEEK | 67 |
| LAST_N_MONTH | 68 |
| NEXT_N_MONTH | 69 |
| LAST_N_YEAR | 70 |
| NEXT_N_YEAR | 71 |
| IN | 72 |
To print a Report
Example: https://app.zohocreator.com/zchelp/employee-manager/print/Employee_View
To print a Report with criteria
- URL format to print a Report with criteria using "=" (Equal) Operator:
https://<base_url>/<account_owner_name>/<app_link_name>/print/<report_link_name>?<FieldName1>=<FieldName1 Value>&<FieldName2>=<FieldName2 Value>
Example: The URL to print Employee records belonging to the "Engineering" Department is,
https://app.zohocreator.com/zchelp/employee-manager/print/Employee_View?Department=Engineering - URL format to print a Report with criteria other than "=" (Equal) Operator:
https://<base_url>/<account_owner_name>/<app_link_name>/print/<report_link_name>?<FieldName1>=<FieldName1 Value>&<FieldName2>=<FieldName2 Value>&<FieldName1_op>=<constant>&<FieldName2_op>=<constant>
where,FieldName1 & FieldName2 are the Deluge script names for the Fields in the Form FieldName1_op & FieldName2_op are parameter names for the Operator ("FieldName" appended with "_op") constant is the value assigned for each Operator. Refer this table to view the list of all Operators and their Constants Example: The URL to print records with Employee ID GREATER_THAN 1235,
https://app.zohocreator.com/zchelp/employee-manager/print/Employee_View?Employee_ID=1235&Employee_ID_op=21 - URL format to print a Report with criteria, using "between" Operator -
https://<base_url>/<account_owner_name>/<app_link_name>/print/<report_link_name>?<FieldName1>=<StartingValue>;<EndingValue>&<FieldName1_op>=<constant>
where, <StartingValue> and <EndingValue> can be any number, decimal or date.
Example: The URL to print records with Date_of_Joining between any two dates is given below. Here, Date_of_Joining is a Date Field.
https://app.zohocreator.com/zchelp/employee-manager/print/Employee_View?Date_of_Joining=18-Jan-2006;30-Apr-2007&Date_of_Joining_op=58
Functionality based URLs for Pages
Pages can also accept URL parameters. You may access the below given URL as an example (parameter emp is being passed a value).
To print a Page with parameter
The URL format to print a Page with parameter is given below,
where,
| paramName | is the name of the parameter defined in the Page |
| paramValue | is the value passed to the parameter that is defined in the Page |
Example: The URL to print a Page named "TestHTML" with paramName "dept" and paramValue as "Engineering" is given below. Here, the paramName "dept" is the name of the parameter defined in the Page to fetch records with the specified paramValue.
https://app.zohocreator.com/zchelp/employee-manager/print/TestHTML?dept=Engineering
To convert Page to PDF
For example https://app.zohocreator.com/export/sampleapps/customer-support/pdf/More_Details_Html_View?ticketID=104
where ticketID is the name of the parameter defined in the Page
You can add the following parameters to customize certain aspects of the output PDF:
| Parameter | Values | Default value | Purpose |
| zc_FileName | (as required) | The page's display name | To set the name of the output PDF file. For example: |
zc_PdfOrientation | portrait, landscape | portrait | To set the orientation in which the page's contents will be exported. For example: |
| zc_PdfSize | Letter, A4, Legal, Executive | Letter | To set the page size of the output PDF file. For example: |
Limitations
- Div embedded Forms/Reports inside Pages is not supported as already discussed in this Forum post. (This will be done only after we provide #include support, i.e., server-side include directive in Deluge. Users will have to change to the new implementation once done to enable PDF output). Refer to our limitations page for more details.
- Any authenticated content like images/CSS that requires your current credential will not be supported, i.e., any link/embedding in the Page to be converted into PDF, should be public content.
- Any CSS/images and other links to be rendered have to be specified in full path. For example, /images/xyz.jpg will not be properly rendered.
