Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Zoho Creator Javascript Loop through more than 200 records

var recordOps = ZOHO.CREATOR.API;
var creatorSdkPromise = ZOHO.CREATOR.init();

var user = "";
var counter = 0;

creatorSdkPromise.then(function (data) {
     getData("1");
});

async function getData(page_num) {
	
	var reportLinkName = "Your_Report_Name";
	var config = {reportName: reportLinkName, page : page_num, pageSize : "200"};
	var getRecords = recordOps.getAllRecords(config);
	getRecords.then(function(jsonData) {
		
		$.each(jsonData.data, function(idx, value) {
            
                        // Parse your data here
                        counter += 1;
			console.log(counter + ": " + value.ID);
		});
        
        var num_of_records = Object.keys(jsonData.data).length;
        if(num_of_records == 200) {
            
            getData(parseInt(page_num) + 1);
        }
	}).catch(err => console.log("No matching records"));
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: replace then replace back 
Javascript :: repeat a block as many times as a nember jsx 
Javascript :: cannot Nesting classes sass nextjs 
Javascript :: trim angular material input with ellipsis 
Javascript :: list-react-files 
Javascript :: javascript checkbox in table cell not working 
Javascript :: how to replace multiple characters in url in jqury 
Javascript :: typeof regex 
Javascript :: spread operator shorthand javascript 
Javascript :: ingore render on refresh page 
Javascript :: javascript random number between 10 and 100 
Javascript :: @material-ui/core/Field 
Javascript :: compile regex script help online 
Javascript :: Nodemailer Reuseable Code 
Javascript :: "["value"]" to array js 
Javascript :: Flutter retrieve data from Json url 
Javascript :: the specified value cannot be parsed or is out of range javascript 
Javascript :: replace text with hyperlink 
Javascript :: node_modulesexpresslib outerindex.js:508 this.stack.push(layer); 
Javascript :: how to style svgs in react 
Javascript :: how to get 4 columns with masonryjs 
Javascript :: desctructuring in react with aliases 
Javascript :: on number copy pase formate in reactjs 
Javascript :: online md5 decrypt 
Javascript :: Using Intl.NumberFormat() to Print JavaScript Number Format with Commas 
Javascript :: javascript on enter keyup select button 
Javascript :: import * as stringFunctions from "./string_functions.js"; // add code above this line stringFunctions.uppercaseString("hello"); stringFunctions.lowercaseString("WORLD!"); 
Javascript :: Parents, Children & Siblings 
Javascript :: tailwind intenseness react 
Javascript :: convert an array to other array 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =