Hi,
is it possible to show all the related records of a foundset without using a loop?
Hi,
is it possible to show all the related records of a foundset without using a loop?
What do you mean with show?
(show directly the complete count?)
Because the record you show (on screen) will be there ofcourse.
If you just want to get all the complete count.
You don’t have to loop through all the records.
Just set the recordIndex to maxRecordIndex until recordIndex == maxRecordIndex
while(controller.recordIndex < controller.getMaxRecordIndex())
{
controller.recordIndex = controller.getMaxRecordIndex()
}
controller.recordIndex = 1;
jcompagner:
What do you mean with show?
(show directly the complete count?)
Because the record you show (on screen) will be there ofcourse.
For instance: If I have a contacts table I would find all the related email addresses of the current contacts foundset.
ahh you just want the get a array from the current foundset for a specifiek (related) value column?
You have to loop for that yes.
jcompagner:
ahh you just want the get a array from the current foundset for a specifiek (related) value column?
Exactly
jcompagner:
You have to loop for that yes.
Ok: no problems I just wanted to be sure, before writing the method…