cascading parameters with null values
I have three parameters, the first is required the second and third are nullable. Each parametr has the same available values. After selecting the first parameter, it is not available in the 2nd and 3rd. After selecting the 2nd, it is not available in the 3rd, unless the 2nd value is null. But if the 2nd is null, the 3rd must be null. That is where I need help.
May 4th, 2011 1:51pm

<DataSet Name="dsGetColumn3"> <Query> <DataSourceName>ArmorF</DataSourceName> <CommandText>select null name union select name from sys.columns where object_id = object_id('fvw_EventStatistics') and name &lt;&gt; 'TimeStamp'</CommandText> <rd:UseGenericDesigner>true</rd:UseGenericDesigner> </Query> <Fields> <Field Name="name"> <DataField>name</DataField> <rd:TypeName>System.String</rd:TypeName> </Field> </Fields> <Filters> <Filter> <FilterExpression>=Fields!name.Value</FilterExpression> <Operator>NotEqual</Operator> <FilterValues> <FilterValue>=Parameters!Column1.Value</FilterValue> </FilterValues> </Filter> <Filter> <FilterExpression>=Fields!name.Value</FilterExpression> <Operator>NotEqual</Operator> <FilterValues> <FilterValue>=Iif(Parameters!Column2.Value="","XYX",Parameters!Column2.Value)</FilterValue> </FilterValues> </Filter> <Filter> <FilterExpression>=Fields!name.Value</FilterExpression> <Operator>In</Operator> <FilterValues> <FilterValue>=Iif(Parameters!Column2.Value="",System.DBNull.Value,Fields!name.Value)</FilterValue> </FilterValues> </Filter> </Filters>
Free Windows Admin Tool Kit Click here and download it now
May 4th, 2011 5:23pm

Hi, Could you please brief a more, your question is not clear. Thanks, Shobhit
May 5th, 2011 12:45am

Hi gao.seng, For your requirement use 3 datasets for those 3 parameteres. For 1st parameter use 1st dataset which have all the values. For 2nd parameter use 2nd dataset which have all the values except what you selected in the 1st parameter. For 3rd parameter use 3rd dataset which have all the values except what you selected in 1st and 2nd parameter. let me now if you hav any queries. Thanks, Naveen.P
Free Windows Admin Tool Kit Click here and download it now
May 5th, 2011 1:10am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics