Passing a form to a function

Passing a form to a function

ZC team:

I saw that now it's possible to pass a certain form as an argument in a function. I suppose that this means that half of the job Passing form in the function argument and related improvement in custom action  posted at http://help.creator.zoho.com/Working-on.html is done ( still no change in the custom actions - so if you pass a form parameter to a function, you can't use it in a custom action ).

Regarding the use of this feature, I saw that if you have for example the form sampleform with the fields Name and Age, it's possible to pass a parameter  sampleform x  to a function in order to get a record (i. e. a row) from a form.

For example if you define a function

list  test.testfunction ( sampleform x)
{
lst = {x.Name, x.Age};
Return lst;
}

iI can be invoked for example like
fieldlist = thisapp.test.testfunction(1545454);
1545454 - should be the record ID from sampleform
It will return a list with the values of Name and Age for the record ID 1545454

This will simplify the syntax, in some cases it will eliminate the need for fetching with classical method certain records, and hopefully the number of actions for getting some records from the database will be reduced, making possible more complex things to be made until the limit of 5000 actions will be reached, but I want to ask: what  other usage cases do you have in mind with this feature? Maybe there will be released some other useful related aspects.

If it's possible, can you give us some explanations related to this new feature which is already implemented but still not documented?

Regards,
George