Place to write common business logic using multiple forms in Zoho Creator.

Place to write common business logic using multiple forms in Zoho Creator.

Hi,

I am trying to write some business logic that involves multiple forms in Zoho Creator. I tried with functions but it does not allow to provide  input /set a value from/to a form through a function. Sample code is mentioned below.

int test.test()

{

input.Trainer_s_work_details.Number_Of_Account_Opened = Beneficiary[((Trainer == input. Trainer_s_work_details.Trainer && Bank_Account_Opening_Date >= input. Trainer_s_work_details .From_Date) && Bank_Account_Opening_Date <= input. Trainer_s_work_details .To_Date)].count();

Return 0;

}

  In above example, we have two forms i.e.  Trainer_s_work_details and Beneficiary. In function test, I am trying to automatically fill value for Number_Of_Account_Opened (textbox in Trainer_s_work_details form) based on query on Beneficiary form.

  Error I am getting is as below:

Error at line number : 3
Improper Statement
Error might be due to missing ';' at end of the line or incomplete expression

Any feedback would be greatly appreciated. Thanks.

Regards,

Chaitan Gandhi.