Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lookup field () cannot be used because the table (dtProcs1)

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
medbiller



Joined: 20 Dec 2007
Posts: 39
Location: Arroyo, PR

PostPosted: Mon Jul 29, 2013 1:43 am    Post subject: Lookup field () cannot be used because the table (dtProcs1) Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jul 31, 2013 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
medbiller



Joined: 20 Dec 2007
Posts: 39
Location: Arroyo, PR

PostPosted: Wed Jul 31, 2013 11:14 am    Post subject: LookupField = '' Caused warning message in imediate window Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group