Hi
I have a parameter where both the Available Values and the Default values get their data from the same query.
The Available Values and the Default values are supposed to get refreshed when one or both data parameters are altered above.
When the report is first run both the Available Values and the Default values are put right.
But when I change the date parameter only the Available Values are updated according to the current date selection.
But the Default values are not are updated according to the current date selection.
I am puzzled about this as both the Available Values and the Default values get their data from the same query.
This situation exist both on the report server and the SSDT.
I have tried to delete the report from the report server and deploy it again.
Currently I set the advanced parameter option "Always refresh" on the Advanced tab.
So just to sum up my situation:
Available Values and the Default values get their values from the same query.
When the report is first run both Available Values and the Default values are put right.
But later when date selection is changed only Available Values are updated.
Default values keeps the old values selection.
Below I will paste the code from my parameters:
<ReportParameter Name="prmLocationsAvailable">
<DataType>String</DataType>
<DefaultValue>
<DataSetReference>
<DataSetName>dtsLocationsAvailable</DataSetName>
<ValueField>LocationCode</ValueField>
</DataSetReference>
</DefaultValue>
<Prompt>Locations</Prompt>
<ValidValues>
<DataSetReference>
<DataSetName>dtsLocationsAvailable</DataSetName>
<ValueField>LocationCode</ValueField>
<LabelField>LocationName</LabelField>
</DataSetReference>
</ValidValues>
<MultiValue>true</MultiValue>
<UsedInQuery>True</UsedInQuery>
</ReportParameter>
I have a parameter where both the Available Values and the Default values get their data from the same query.
The Available Values and the Default values are supposed to get refreshed when one or both data parameters are altered above.
When the report is first run both the Available Values and the Default values are put right.
But when I change the date parameter only the Available Values are updated according to the current date selection.
But the Default values are not are updated according to the current date selection.
I am puzzled about this as both the Available Values and the Default values get their data from the same query.
This situation exist both on the report server and the SSDT.
I have tried to delete the report from the report server and deploy it again.
Currently I set the advanced parameter option "Always refresh" on the Advanced tab.
So just to sum up my situation:
Available Values and the Default values get their values from the same query.
When the report is first run both Available Values and the Default values are put right.
But later when date selection is changed only Available Values are updated.
Default values keeps the old values selection.
Below I will paste the code from my parameters:
<ReportParameter Name="prmLocationsAvailable">
<DataType>String</DataType>
<DefaultValue>
<DataSetReference>
<DataSetName>dtsLocationsAvailable</DataSetName>
<ValueField>LocationCode</ValueField>
</DataSetReference>
</DefaultValue>
<Prompt>Locations</Prompt>
<ValidValues>
<DataSetReference>
<DataSetName>dtsLocationsAvailable</DataSetName>
<ValueField>LocationCode</ValueField>
<LabelField>LocationName</LabelField>
</DataSetReference>
</ValidValues>
<MultiValue>true</MultiValue>
<UsedInQuery>True</UsedInQuery>
</ReportParameter>