Hello,
Main BO has child BO. I do RegBusinessObject() against main BO and in Desinger.Wpf in Dictionary there is only main BO.
How can I add my child BO to dictionary in code instead of doing this manually in Designer?
New Business Objects - defining child business objects in code
New Business Objects - defining child business objects in code
Hello,
You can use following code:
Thank you.
You can use following code:
Code: Select all
StiReport report = new StiReport();
report.RegBusinessObject("Name", object);
report.Dictionary.Synchronize();
StiBusinessObject businessObject = report.Dictionary.BusinessObjects["Name"];
StiBusinessObject child = new StiBusinessObject();
child.Name = "ChildName";
businessObject.BusinessObjects.Add(child);
report.Dictionary.Synchronize();