Hello,
I am getting close but not quite there. I have been at this problem for a few days so I decided it was time to reach out here. What I am trying to do is pass multiple IDs from a table (originated from a database) into a query that will display the ticket information into a PDF.
What I have so far is a table that calls a popup that then initiates a report. This is working with hardcoded ticket IDs.
--I apologize right here because I don't know how to frame my question well.--
I am slowly working my way, step by step, to the end goal. Where I am at now is between the popup screen and the PDF report creation. I think I am passing a dataset but on the report side I am unsure how to utilize it. I have a for loop that builds the WHERE clause for the query.
For example: ticket_ids = ticket_ids + " OR t1.id = " + str(73555)...so on and so forth
First question is how to do I find the number of rows being pass through idList2?
I have watched a few videos and this one was particularly helpful (Scripting Data Source Video at Inductive University). I am still missing something.
Passing out idList2 as a dataset.
Hardcoding the dataset inside the popup's parameters.
5 Rows x 1 Column
The dataset (idList2) LIVES
Scipt inside the report. The query in the script works. Where I am stuck is how to find the length of idList2. From there, I am sure it will become clear how I can put the ticket ID from the dataset.
Thought on this one?
Cheers fellow Perspective friends and happy weekend!