Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is it possible to do pageby in documents

Status
Not open for further replies.

jpuk

MIS
Aug 28, 2003
11
0
0
GB
Have a large document that would benefit from the pageby functionality but can't find a way to do it and just wanted to know if it was possible to do.

many thanks in advance
 
Not possible, but if you are using documents and you want to filter the elements in the reports, use prompts...

 
Depending on your knowledge of XSL then anything is possible. On the face of it (and completely off the top of my head), it looks like you'll have to:
1. Get the format of the report into something helpful to enable you to manipulate the XML that is generated (ie have the attribute you want to page by as the furthest left hand attribute on the template), probably order by this attribute first and then any subsequent ordering criteria.
2. Go through the XML and locate the elements for your Page-by Attribute and then place these into a drop-down box.
3. Create some javascript that shows/hides rows depending on what is in the drop-down. Off the top of my head, if you give the <TR> tag in the table a name or id of the attribute element you could probably show only that row, subsequent attributes will require the first <TD> tag in the row to have a rowspan in.
4. Add a call to this javascript in the select tag and bobs yer uncle, your an xsl genius and your pay goes up 1%.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top