Hi
I have a crystal report where i need to change display of field objects dynamically based on drop down control selection from c#.Actually i can do this without any effort if i would take a parameter and getting data based on this. but here i should not add any parameters to this old proc .
So, i have taken a empty formula field and assigned text to it like this from my aspx page:
if( ddl.selecteditem.value == 5)
{
crystalReport1.DataDefinition.FormulaFields["Test"].Text = "0";
}
else
{
crystalReport1.DataDefinition.FormulaFields["Test"].Text = "1";
}
Now, using this formula in another formula to check ( if it's zero then "Employee" else "department" data)
but this is not working. giving error as " this formula field is unknown".
please tell me how to correct it or any other way to do this.
Thank you.