first off, thanks alot, this looks as intended. Can u provide some details of what you actually changed ? For example how you were able to rename RechnungenBO.cs to RechnungenReportBO.cs without breaking everything ?
I will try to create it from scratch again. I really need to know the way of getting there.
I used CustomBuisnessBindingSource to create the BBS and BO('s) within the ReportBinding namespace.
Thanks alot for your help.
I'm facing some difficulties over here, since I don't speak neither German nor C#.
But I got to make your project work. Had to delete the instance of your RechungenBBS from the form, as there was some error there, I guess with namespaces or such. Also repaired some code and inheritance of BO, and it looks like working now:
Private Shared _AreCustomDescriptorsEvaluated As Boolean = False
/// <summary> /// Determine if the custom descriptors are going to be evaluated /// </summary> /// <remarks></remarks> protected override bool AreCustomDescriptorsEvaluated { get { //-- Establish Locals bool r = _AreCustomDescriptorsEvaluated; //-- Do not eval the desciptors again _AreCustomDescriptorsEvaluated = true; //-- Return results return r; } }
Actually i allready have that:
namespace
{
#region
#endregion
_AreCustomDescriptorsEvaluated =
}
The one with the red underline is where i put the custom property for Rechpositionen.
Now when i run the project, i get a null-reference exception at the line:
r.Add(
"The Object reference not set to an instance of an object."
I have uploaded the new source code here:
http://www.ready3.net/ReportSS2.zip
r.AddRange(
_Rechpositionen.SourceBO.Filter =
http://forum.strataframe.net/FindPost20704.aspx
You will basically create a new property in your parent BO that will represent your child BBS:
thanks, that solved this issue. however, i am now having the issue, that the child-related information is not accessible within the report designer.
what i get is this:
But what i really WANT to get is something like this:
Any Idea ?
Thanks !!
You need to get an instance of your BBS onto your form. One way of doing it is to make your BBS show up in the toolbox and drop it on the form. For that, add the ToolboxItem attribute to your BBS code:
Then, rebuild your project, which will make your BBS appear in the toolbox. Drop it on your form and you will be able to choose it from the ReportManager Data Sources list: