Nester ilist in a class
Hi,
I'm currently in the process of evaluation your reporting solution.
Here are the classes I'm using to test:
Let' say i have 3 patients and each patients have 3 phone numbers.
I want to be able to list the patient's address followed by all their phone numbers like this:
[Patient.Address.Street]
My problem is show the phone numbers.
Everything has to be done by code.
I've manage using your demos to list all the patient addresses but the nested list is giving me trouble.
Can you help me?
Best regards
Nicolas
I'm currently in the process of evaluation your reporting solution.
Here are the classes I'm using to test:
public class Address
{
public Address(
string street,
string city,
string province,
string postalCode)
{
Street = street;
City = city;
Province = province;
PostalCode = postalCode;
}
public string Street { get; set; }
public string City { get; set; }
public string Province { get; set; }
public string PostalCode { get; set; }
}
public class PhoneNumber
{
public PhoneNumber(
int areaCode,
int number)
{
AreaCode = areaCode;
Number = number;
}
public int AreaCode { get; set; }
public int Number { get; set; }
}
public class Patient
{
public Patient(
Address address,
List<PhoneNumber> phoneNumbers)
{
Address = address;
PhoneNumbers = phoneNumbers;
}
public Address Address { get; set; }
public List<PhoneNumber> PhoneNumbers { get; set; }
}
I'm try to achieve the following behavior:Let' say i have 3 patients and each patients have 3 phone numbers.
I want to be able to list the patient's address followed by all their phone numbers like this:
[Patient.Address.Street]
[Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.Address.Street][Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.Address.Street][Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
[Patient.PhoneNumbers.AreaCode] [Patient.PhoneNumbers.Number]
My problem is show the phone numbers.
Everything has to be done by code.
I've manage using your demos to list all the patient addresses but the nested list is giving me trouble.
Can you help me?
Best regards
Nicolas
Comments
Some FR code is to manipulate bands: MasterData and DetailData.
I attach an example and final result.
Mick
I can't seem to find the Engine object.
i have the Engine namespace with a ReportEngine class, but ReportEngine has no method available.
Best regards,
Nicolas
Mick