I need to get email ids of all users in my applications.But am not able to list more than the first 1000 objects through listcallBack() method in java script. Could you please help me with this!
regards,
masakinirao
As suggested by you I have tried to implement the same logic in java script but couldn't get it!!.Please help me with out its urgent !!!
regards,
masakinirao.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/16219dac-84e8-40a3-901c-ea0817de567a%40runmyprocess.com.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
Am posting the js code.Please help me in listing more than 1000 objects from the collection.
thanks ®ards,
masakini.
function validation()
{
var pattern = {};
var options = {};
options.nb = 1000;
options.fields = ["student_create_date"];
col_student_data.listCallback(pattern, options, call_ok, call_ko);
}
function call_ok(result) {
var date_array = [],
final_dates = [];
var date1 = RMPApplication.get("from11");
//getting from_date
var date2 = RMPApplication.get("to11");
//getting to_date
for (var i = 0; i < result.length; i++) {
if (result[i].student_create_date != undefined) {
date_array.push(result[i].student_create_date);
}
}
console.log("the date array is---" + date_array);
var creation_date_from1 = new Date(date1);
var creation_date_to1 = new Date(date2);
creation_date_from1 = creation_date_from1.getTime();
creation_date_to1 = creation_date_to1.getTime();
for (var loop = 0; loop < date_array.length; loop++) {
var d = new Date(date_array[loop]);
d = d.getTime();
if ((creation_date_from1 < d ) && ( d < creation_date_to1)) {
final_dates.push(date_array[loop]);
}
}
console.log("the final array dates are---"+JSON.stringify(final_dates));
var mypattern=
{
"student_create_date":{"$in":final_dates}
}
id_report.setQuery(JSON.stringify(mypattern));
id_report.refresh();
id_report.setVisible(true);
}
function call_ko(result) {
alert("in call ko ----" + JSON.stringify(result));
}
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/4c54c98f-e72a-48e0-bbaa-c0cf298f3317%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
Abdellatif EL ALAOUI
Thanks for the support Guys!!.. You are awesome
regards,
masakini.