it's possibile to build a report with a dialog form that is shown only if a certain parameter is not set?
for example:
- I made a simple list of items and I want to view them based on their Category ID
- added a datasource with named parameter @pCategoryID (int) in query
- I added Form1 with a combobox with all categories
- in certain cases, from code, I know the desired category, and I can add it to datasource with this code:
Code: Select all
if (newReport.Dictionary.Variables.Contains("@pCategoryID"))
{
newReport.Dictionary.Variables["@pCategoryID"].ValueObject = m_category;
}
there's a way to not show the dialog form is the parameter is already set?
thanks in advance