1 To get $attributes used in his example do this:

    c_longint($attributes)
    $attributes := merge collections(form variables; query params)

Only if you are not using fusebox. My example was a fusebox example, it is done for you by fusebox.



2) If no records are returned in the rowset and you still execute the batch code, then $batch("Start") and $batch("End") will be both be 0. Therefore the for loop will execute at least once giving you an empty row.

Just one way around this would be to test for these values and if true increment $start ($start++) so that the loop never executes.

You should check the RowSet size yourself. Personally I never want to show a bunch of column headers with no rows, I replace the whole thing with a message that says there are no rows.

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to