version 1.0.2005.1 final (self-servicing)
VS2005 asp.net 2.0
Hiya,
I have an issue that is similar to a diferent problem that I haven't quite managed to crack yet.
I need to create a typedList that displays values from a self-referencing table.
<schema>
tblPerson
personId
personName
motherId FK tblPerson.personId
countryId FK tblCountry.countryId
</schema>
I have created my typedList via the designer.
It now displays all the fields, including (countryName).
So, I know that I can get the relations to work via the designer.
The issue is that I can't get it to display the name of the "mother" of the person in question.I have:
1) added the tblPerson (twice)
2) created the alias (mother)
In the "fields mapped on entity fields", I have selected the "mother.PersonName" field.
I generate the llblGenPro project, which in turn, reloads the newly generated c# dal project in my solution.
I then rebuild and run my visual studio solution.
The column header for the "mother.personName" is visible in the grid as "personName_"
The actual value for the column is the SAME as that of the person..it should be the mother's name that is displayed here.
I can confirm that:
1) the relationships in the database are correct.
2) the motherId in tblPerson reflects a valid value.
Can anyone help me troubleshoot this?
As I say, this is similar to a previous problem that I had, but I've had to back up and make it a bit simpler, so that I can eventually get my head round it.
Any advice appreciated.
many thanks,
yogi