By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Crystal Related Problem

P: n/a
Hi,

I am OK with crsytal reports normally VS2003/CR 9.0 but I wanted to use a
parameter to prevent specific columns appearing programmatically. I use a
dropdownbox on the web form to select what parameter I want. Now if I run
the report for the first time with DisplayTotalCost selected, I can see its
effects in the report, If I now select RevexOnly, and run the report again,
this remains as DisplayTotalCost. Its allmost as if it preserves the
viewstate and knows will not allow this to be altered in subsequent
postbacks.

Any ideas would be greatefully accepted

If Me.drpCostbase.SelectedValue = "RevexOnly" Then

crpt.SetParameterValue("DisplayTotalCost", "RevexOnly")

Else

crpt.SetParameterValue("DisplayTotalCost", "DisplayTotalCost")

End If


Nov 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dont worry, I was right and I found how to disable the viewstate.
"Goofy" <me@mine.comwrote in message
news:es**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am OK with crsytal reports normally VS2003/CR 9.0 but I wanted to use a
parameter to prevent specific columns appearing programmatically. I use a
dropdownbox on the web form to select what parameter I want. Now if I run
the report for the first time with DisplayTotalCost selected, I can see
its effects in the report, If I now select RevexOnly, and run the report
again, this remains as DisplayTotalCost. Its allmost as if it preserves
the viewstate and knows will not allow this to be altered in subsequent
postbacks.

Any ideas would be greatefully accepted

If Me.drpCostbase.SelectedValue = "RevexOnly" Then

crpt.SetParameterValue("DisplayTotalCost", "RevexOnly")

Else

crpt.SetParameterValue("DisplayTotalCost", "DisplayTotalCost")

End If


Nov 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.