Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » $fieldarray problem (A little problem with the $fieldarray parameter in some "_cm_" methods)
$fieldarray problem [message #2387] Tue, 15 December 2009 12:23 Go to next message
detectedfrost is currently offline  detectedfrost
Messages: 1
Registered: December 2009
Junior Member
Hello,I got this little problem:

I have 2 tables courses and students;

There is a parent relationship between the tables.

Snr table is : courses
Jnr table is: students

In the List1 of courses i want to see also the number of students attend the relative course.

I used _cm_getExtraData, doing a count of row in table students and
_cm_ChangeConfig to add the new field, 'partecipants', in the $fieldarray wich contains the count of students.



The problem is:

$fieldarray cointains only the first entry of the table courses.
How i can get the rest of data (rows)?
I hope I've been clear.

Thank you,

Fabio
Re: $fieldarray problem [message #2388 is a reply to message #2387] Tue, 15 December 2009 13:49 Go to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
Both _cm_getExtraData() and _cm_ChangeConfig() are called once per iteration, and only need the first record. If you wish to perform processing on every record in the list then use either the _cm_post_getData() or _cm_getForeignData() methods.

Previous Topic: Multiple Checkbox Control
Next Topic: Sub totals and Page Breaks
Goto Forum:
  


Current Time: Thu Mar 28 12:51:15 EDT 2024

Total time taken to generate the page: 0.01057 seconds