Problems with find()

Hi!

We have that code:

	var iniDate = new Date(new Date().setMonth(new Date().getMonth() - intervalo_borrado_meses));
	var accesosFs = forms.penta_acceso_pantallas.foundset.duplicateFoundSet();
	accesosFs.loadAllRecords();

	accesosFs.find();
	accesosFs.usuario = globals.nameCompound;
	accesosFs.date_accessed = '<' + iniDate;
	var result = accesosFs.search();

And the find() doesn’t work correctly, the name filter it’s ok, but the date filter don’t works, what is wrong?

Asuming that the var iniDate has a good value, try something like:

if(accesosFs.find()){
   accesosFs.date_accessed='<'+utils.dateFormat(iniDate,'dd-MM-yyyy')+'|dd-MM-yyyy';
   accesosFs.search();
}

Hi! your code goes perfect.

Thanks a lot!