I have some dropdowns with their options bound to a dataset. When the dataset updates the dropdowns are left showing the "Select..." text. Is there a way to have them default to an option in the dataset?
I did find some posts using selectedValue property but I guess that is for the View dropdown and isn't it read only?
Wouldn't that binding stop you from selecting something other than the first option? I figure you'd need a property change script on the data binding, then set the selected value to the first result when it changes.
The Options should have and is a dataset but the value should just be a value. ???
No error after removing the "["value"]" from the end but the dropdown can not be set to anything and is now always blank and the report is looping or updating over and over.
When I click on it, it has the correct dataset or options but whatever is selected it just goes blank again.
One issue was the expression tags updating the datasets was running fixed rate. I changed then to event driven and it's no longer looping but it seems the last step to update the dropdowns selection is not happening.
Just seeing the post from @pascal.fragnoud and it seems to work now with the Dropdown_Lineup.props.value expression binding.
Not sure what the working code would be for the change script would be.
The dropdown value expression binding worked well until today. For some reason it now updates every second even though nothing has changed, so the report just keeps loading over and over. I was working on an unrelated button on the Perspective screen and the report just started loading.
The other day I had to change the memory tag expression that creates the dataset for the dropdown from fixed rate execution mode to event and the fixed the looping until today.
I don't know how it was working before. I even did a gateway restore from yesterday and the reports still loop. ???
Looking at the memory tags expression, there is a poll rate argument in the runScript function and it was set to 1 second. It seems it's not decided that this is a change and is updating the report even thought the values passed to the report unchanged. What the?