Using child fields in a business object

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v7)  /  Re: Using child fields in a business object

DynamicPDF CoreSuite for .NET (v7) Forum

Hi,

Does DynamicPDF ReportWriter for .NET (dplx template) support child fields in the bound business object?  For example, if I'm binding a Contact object that has an Address object exposed as a public properties could I create a RecordBox in the dplx with the field specified as:

Address.City

I've tried something like this and got a parser exception, so I'm assuming the answer is no but I thought I'd ask.

Thanks,

Chris
Posted by a ceTe Software moderator
Hello Chris,

It is not possible to specify the child object properties directly (as Address.City) in the RecordBox. Exposing the child object property as a property in the main object should work.

For example, you could create new property “City” in the main object as shown below that exposes the desired child object property. Then add “City” to the RecordBox field.

public string City
{
     get { return Address.City; }
     set { Address.City = value;  }
}

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 5:05 PM.