Using &count in openagent

I have a web app that uses multiple $$ViewTemplate forms for view display.

Each uses the “lines to display” property to limit the # of entries on each page.

I populate one section of the site with HTML Print statements in an agent, using ?openagent.

I would like to limit the # of entries returned by this agent, to match the rest of the views.

I have looked for using &count, but do not see where to use the value in the HTML I am generating.

Any ideas?

Thanks

Becky

Subject: Your agent must read the parameter

The context document passed to the agent contains the CGI variables, including querystring. Your agent code will have to decode the arguments and figure out how many lines to print.

Subject: re: Your agent must read the parameter

Andre

Thanks so much for your reply. I can get the count value out of the querystring…but then what?

How do I use that value within my print statements to indicate how many lines to print and when to start a new page?

Thanks

Becky

Subject: you don’t use the value in print statements…

…you use them in the logic that surrounds the print statements to figure out which documents to fetch out and how many documents to iterate through before you quit.