Problems because of changed behaviour with datasource relations
Posted: Tue Jul 22, 2008 2:51 pm
I just want to upgrade from StimulReport.Net V2007.1 to V2008.1 but have some serious problems with some changed behaviour in the Stimul software:
I use BusinessObjects as DataSource for my report. My business object structure is a simple composition like:
class Person {
public string Name;
public Address Adr;
}
class Address {
public string City;
public string Street;
}
I build the datasource schema once programatically by registering a completely filled prototype object of the above type with the report and a subsequent call of StiReport.Dictionary.Synchronize().
After that the corresponding schema in the report dictionary looks correctly like
MyDataSource
Person
Name
Adr
City
Street
Person_Adress
...
Now my problem:
When I register a new person object with a StiReport.RegData() call everything works fine if and only if this object does have an address part. If the Adr property is null, I get an exception
"Column '_parentID' does not exist in Data Source '...' and relation '...' can't be created! "
With V2007.1 I've no problems with null parts in my business object but with V2008.1 my code won't longer run.
I thought this might be the same problem as http://forum.stimulsoft.com/Default.aspx?g=posts&t=1335 but also a current prerelease build didn't work.
Can you help? Any ideas?
Frank
I use BusinessObjects as DataSource for my report. My business object structure is a simple composition like:
class Person {
public string Name;
public Address Adr;
}
class Address {
public string City;
public string Street;
}
I build the datasource schema once programatically by registering a completely filled prototype object of the above type with the report and a subsequent call of StiReport.Dictionary.Synchronize().
After that the corresponding schema in the report dictionary looks correctly like
MyDataSource
Person
Name
Adr
City
Street
Person_Adress
...
Now my problem:
When I register a new person object with a StiReport.RegData() call everything works fine if and only if this object does have an address part. If the Adr property is null, I get an exception
"Column '_parentID' does not exist in Data Source '...' and relation '...' can't be created! "
With V2007.1 I've no problems with null parts in my business object but with V2008.1 my code won't longer run.
I thought this might be the same problem as http://forum.stimulsoft.com/Default.aspx?g=posts&t=1335 but also a current prerelease build didn't work.
Can you help? Any ideas?
Frank