Everything you need to know about Zoho Creator Subforms

09.03.17 12:20 AM By CreatorScripts

Post 1
Post 2
Post 3
Post 4
Post 1
Post 2
Post 3
Post 4

1.- Linking Subform

This is the most important step in the process of setting up your zoho creator database. A properly linked setup will enable your information to run smoothly and avoid waisting space ( MB )

First, you need to create at least 2 Forms. For example.- Orders and Items. An Order can have multiple items and 1 item can be part of many Orders. Creating a many to many relationship.

Second, you need to add the Subform Items inside the Form Orders and name it. Then you have to add a Lookup field in the Items Form and click on Existing Relations.

Do NOT forget this part. This is the key. You must have a lookup field linking the original Form to each record on the subform you are creating. Makes Sense?

If it does not or need any help do not hesitate to contact us. We can guide you through the process to set your Subform for success.

2.- Fetching Record information

To build a robust Order form in zoho creator you need to be able to automatically "fetch" the information about a product and let the system pre populate the subform with pre existing data in the Products Table.

First, you need to have a Products form with all the relevant information about the Product. Price, Description, etc.

Second, you need to fetch the Product information based "On user input" inside the items Subform and add the below deluge scripting.


prodct  =  Products  [ID == row.Product];
row.Description = prodct.Description;
row.Price = prodct.Price;
row.Qty = 1;
if ((row.Price  !=  null)  &&  (row.Qty  !=  null))
{
    row.SubTotal = (row.Price  *  row.Qty);

Subform Zoho Creator

3.- Aggregate row data

The first step is to have the Subtotal or Total field value in the Order Form. Normally this would be a currency field or decimal field if you need to consider 1 or more decimals into your calculations. If not you can also set it the field as a Numeric value field. Our example uses a currency field.


Second you need to think about the places where the script to aggregate the rows needs to occur. in our case there are several places. On Add Row, On Selecting a new Product, On Changing the Qty amount or the pricing. Its important that all scenarios are considered otherwise your calculations may not be properly aggregated if it encounters a scenario that you have not considered in your scripting yet.

Last but not least, the script below is ready for you to copy and paste into your application. Assuming of course that the field names of your Order Form are named exactly as our test application.

if ((row.Price  !=  null)  &&  (row.Qty  !=  null))

{
    row.SubTotal = (row.Price  *  row.Qty);
}
t = 0.0;
if ((row.Price  !=  null)  &&  (row.Qty  !=  null))
{
    for each rec in Item_Details
    {
        t = (rec.SubTotal  +  t);
    }
}
input.Subtotal = t;

Do not hesitate to contact me if you have any questions. I would be more than glad to help you buil an amazing online database application with Zoho Creator.

4.- Deleting unmatched record ID´s

Rarely thought through, but does save hundreds of $dollars down the road. Find out more details on our Leverage Zoho Courses.  Get additional scripts and put your zoho application on steroids.

What does Zoho Creator do?

Zoho Creator is a low-code platform that enables businesses and individuals to create custom applications and automate their work processes without the need for coding. Zoho Creator provides a drag-and-drop interface, pre-built templates, and a range of tools and features to help users build custom applications quickly and easily.

Is Zoho Creator worth it?

Whether Zoho Creator is worth it depends on your specific needs and requirements. Zoho Creator is a powerful platform that can help businesses and individuals automate their work processes, streamline their workflow, and save time and resources. If you need a platform to build custom applications, Zoho Creator may be worth it for you.

How much does Zoho Creator cost?

Zoho Creator has a range of pricing options, starting from a free plan with limited features, to a paid plan that starts at $7 per user per month. The exact cost will depend on the number of users, the features and tools you need, and the type of plan you choose. Zoho also offers a custom pricing option for larger organizations with more complex needs.

Is Zoho owned by Google?

No, Zoho is not owned by Google. Zoho is a privately held company based in Chennai, India. It was founded in 1996 and provides a range of online productivity and business applications.

What are the benefits of Zoho Creator?

Zoho Creator provides several benefits, including:
  • Custom application creation without coding
  • Automation of work processes and streamlined workflow
  • Reduced time and resources required for application development
  • Flexibility and scalability to meet changing business needs
  • Integration with other Zoho and third-party applications

Is Zoho hard to learn?

The level of difficulty in learning Zoho will depend on your experience and familiarity with similar platforms and tools. Zoho Creator is designed to be user-friendly, with a drag-and-drop interface and pre-built templates, making it accessible to users with limited technical skills. However, as with any platform, there may be a learning curve for some users, especially for more complex features and tools.

Does Zoho require coding?

No, Zoho Creator does not require coding. The platform provides a drag-and-drop interface and pre-built templates, making it possible to build custom applications without writing any code. However, advanced users with coding skills can also customize and extend their applications using the Zoho Creator scripting language.

Do hackers use Zoho?

Like any online platform, Zoho is vulnerable to hacking and security threats. However, Zoho takes security very seriously and implements a range of measures to protect its users' data and applications, including encryption, secure data centers, and regular security audits. It is important for users to follow best practices for securing their Zoho accounts, such as using strong passwords and enabling two-factor authentication.

Is Zoho completely free?

No, Zoho Creator is not completely free. The platform offers a free plan with limited features, as well as paid plans starting at $7 per user per month. The exact cost will depend on the number of users, the features and tools you need, and the type of plan you choose.

CreatorScripts