I am trying to build my first dynamic report. I have a variable [formName] and my final reporting page will adjust dynamically based on the default value I pass in.
I have also been able to create an initial page with a text box allowing me to pass in a dynamic [formName] that is entered by the user.
What I really need is a way to have a drop down box populated with a list of options which are coming from a table because the options are changing over time as new forms are created with new "Form Names".
Can anyone tell me what the process is to have a Combo Box on a page that is pulling its values from a table or list and passing which passes that value to my variable [formName]?
The only option I see is to create a select box but then you have to manually enter each possible option.
The problem at this point is that the only option to get values into the combo box is to manually enter them.
Regarding report with a dynamic list box values, there is no mention of the possibility below in Reporting documentation, but it is used in some factory reports.
So, as I described it already past year in this post below, you must fill the 3 XPath fields in the Advanced tab being positioned on your Listbox element, in the Page activity of your report; and of course set the Context initialisation field with the value "From the context" :
Thanks so much for your help! I had found these advanced options yesterday, but wasn't sure how to use the "Options" box. I was trying to put the full xpath to the parameter in the label and value and had left the options section blank. Thank you for you help.
So now what I'm getting is a blank drop down list, which I expect means my xpath is just wrong. From what you had crossed out in your post I can't quite figure out how to solve the problem. Maybe you would be willing to take a look and help further?
What I did was connect a query on the report canvas to my page with the drop down list:
Next I looked at the Preview in debug mode to get the XML output:
Here is what I have in my xpaths in the advanced setting for by drop down list: