Im not understanding how to pass parameters into a template repeater, i have the template setup with a parameter, the template repeater setup with the same named parameter and im attempting to pass the current value of the drop down menu selected into the parameter and then pass that into each individual template through the repeater. For whatever reason even though all of my parameters are all named the exact same it does not pass the value through to the template.
How are you sending the dropdown value to the template instances? Are you rebuilding the driving dataset every time the dropdown value changes? Are you sure that the template repeater repeat mode is set to dataset
and not count
? If you can, show pictures of your configuration.
Sorry, i should have included more information.
Im using a dataset and not count, im querying the data from sql to auto-populate the rows dynamically.
Im not rebuilding the dataset on the dropdown change, but that shouldnt affect the parameters passing into the same dataset right? Something im just not quite understanding is how the parameters are linked on the back end.
So it should work like this:
template (parameter) -linked to- template repeater custom parameter (same name) - bound to- drop down value parameter correct?
I think what the issue is the dataset disregards ALL parameters other than the ones passed in explicitly through the dataset parameters binding. Which means i need to convert this from dataset to count in order to use "custom parameters". Why would this be such a pain in the rear end, all i want to do is pass a single set of parameters through, why must they first be formatted to go through the single-point-of-entry with the dataset parameters.
nope still wrong, passing parameters still doesnt work in count mode.
The template repeater only passes parameters through same-named columns in the dataset. In count mode, the index itself is the only parameter at all.
You will need to dynamically construct your dataset from your dropdown and any other parameters of interest. (You probably want my integration toolkit for this.)
Thanks for the reply,
Here is what im attempting to accomplish, i cannot modify the sql database all datasets that are passed must be "as is".
Im attempting to pass a single int parameter into each template using the custom parameters and the template repeater. With that repeater i will selectively change the background color of some of the templates. Is there any way to pass these values into the template repeater without going through the template dataset?
Is that not clear enough?
Dynamically construct the dataset to include a column for this integer parameter.
Meanwhile, this:
does not require this:
You can bring a dataset from the database to custom property and manipulate that in the client to yield the dataset for the repeater.
I forgot about dynamic building of datasets.
Im assuming this would be a script i would execute to build (or change) when the dropdown changes values. Ill work on that,
Thanks for the help.