Accessing the last record?
Hi,
I've been searching on how to access the last record of a View in a form. I've seen the code below. We are not expected to manually set a flag on the last record to search/filter on are we? Is there not a first, last, next, previous method of running through a list of records?
Cheers,
4. How can I create a view in Zoho Creator which shows only the current record?
To create a view which shows only the current record, Create a hidden field in your form to identify the current record based on some value. For instance, let us create a hidden field named TXT with default value as "new". When a new record is submitted, the TXT field will hold the value "new" To update the TXT field of the previous record, with value as "old", write an on add -> validate script as given below. The on add -> validate script is executed when a new form data is submitted. The script will fetch the record whose TXT value is "new" and update it with value as "old". on add -> on validate script on add
{
on validate
{
if (count(Form1[TXT == "new"]) > 0)
{
dat = Form1 [TXT == "new"];
dat.TXT = "old";
}
}
} Create a view with criteria as [TXT == "new"] to display only the current record, as given below. list "Current Record"
{
show all rows from Form1 [TXT == "new"]
(
Name
Number
City
)
} Refer the sample application Show current record.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Share your success story
We would like to hear from our passionate users how much Zoho Creator has changed the way you work and benefited you. If you would like to share your story to us and be featured as a proud user of Zoho Creator, then this is for you. Fill up the form below and if you want to be included in a case study, we will get in touch with you to get further details. So what are you waiting for? Tell us your story. Charles
Merge and Store v1 API depreciation
Hi Zoho Writer users, The Merge and Store v1 API allows you to store the merged document in Zoho WorkDrive. The response of this API will be returned with the document's ID only after the merge is complete. In Deluge, the maximum timeout for operation
Zoho Creator Developer's Conference 2017 !!!
We welcome all our Creator Developers! You're invited to join us for our annual Zoholics Developers conference August 29th–31st! This is your chance to get training and guidance on Zoho Creator from our most knowledgeable custom app builders. Zoholics Developers is a three-day event where you'll participate in interactive workshops to hone your app-building skills, get questions answered by Creator experts with personal one-on-one sessions, and connect with other Creator developers from around
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.