View previous topic :: View next topic |
Author |
Message |
medbiller
Joined: 20 Dec 2007 Posts: 39 Location: Arroyo, PR
|
Posted: Mon Jul 29, 2013 1:43 am Post subject: Lookup field () cannot be used because the table (dtProcs1) |
|
|
Hi,
I have a Virtual Tree that apparently works fine, but when debugging the application we get the following message in VS2010's Inmediate window, when the vTree data source is set.
VirtualTree: Lookup field () cannot be used because the table (dtProcs1) does not have a parent relation on this field (proc1From).
This message is repeated 10 times. proc1From is one of the columns. The LookupField property is blank (not used) in any of our vTrees. By the way, how is this used & for what?
But mainly how can we get rid of the message above.
Thanks. _________________ Medical billing & records developer. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jul 31, 2013 10:12 am Post subject: |
|
|
The LookupField property is used to specify a field in a related table that should be displayed for a given cell. If the field of the table being bound to is a reference into a related table (and there is a relation defined in the DataSet) then you can specify the field in the related table that should be displayed.
It looks like a minor bug in the DataRowCellBinding may be causing this incorrect error message. It looks like the LookupField property is being assigned somewhere to an empty or blank string (probably due to you editing the field at some stage) and this is not being recognised by the code as the same as a null value. We will fix this in the next minor release. To work around the problem simply search your code (including designer generated code) for LookupField and delete any lines of code assigning blank or empty values to it. _________________ Infralution Support |
|
Back to top |
|
|
medbiller
Joined: 20 Dec 2007 Posts: 39 Location: Arroyo, PR
|
Posted: Wed Jul 31, 2013 11:14 am Post subject: LookupField = '' Caused warning message in imediate window |
|
|
Yes indeed. I found the statement DataRowCellBinding190.LookupField = "" under the column proc1From block in the designer code. Changed it to DataRowCellBinding190.LookupField = Nothing and all is well. Thanks. _________________ Medical billing & records developer. |
|
Back to top |
|
|
|