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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drill to a document

Status
Not open for further replies.

omarmtz

Programmer
Nov 22, 2002
75
MX
How could i do for making that in a report the user could drill to a 'document' not to a template??

I use xsl and according to TN5600-007-0030, i can add an image or something that i could use for making a link, and with Document.asp?DocumentID=..... i can link to a document, but only one thing not work... i need that depending on the row (id) where the image is located, the documents were filtered by an id.

example
Country Cost
<link><image>USA $30
<link><image>France $15

where <link> Document.asp?DocumentID=....

and when you click in the image... the following Document appear (i need a Document cause i need to view several reports)

Document!!!
Report 1
City Cost
New York $15
San Diego $15

Graph 1
....

Report 2
Region Cost
....
....
 
omarmtz,

In your xsl add in a paramater with the attribute element (not the row); ie document.asp?1234&promptparam=xyz

Then you need to create some funky prompt xsl(s) for the reports in your document object that takes information from the querystring and populates the prompt answer.

With javascript you could then 'click' the execute report button so the user doesn't have to, and the document will return.

Easy peasy :eek:)
 
where should the javascript code be?? In the xsl of the prompt??, or in the asp's???

 
put the javascript in the xsl prompt. syntax will be something like.

document.PromptForm.PromptGO.click()
 
I have done what you told me, but it doesn't work, because when the xsl is formatting the xml, it tries to submit the button, and it displays errors...
 
you probably need to put some validation behind the click code so it only executes if the form has been answered.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top