Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 29, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: LookupEdit Not displaying data
Dean
Posts: 12
 
LookupEdit Not displaying dataYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 May 07 11:54 AM
fiogf49gjkf0d
I have altered the Ticket table to include Builder Account. So now there are two fields that reverence the Account table: AccountID and C_Builder_AccountID.

I have created a new lookup on the System -> Ticket Detail form to pull in the Builder Account. The lookup does work in that it does a lookup and save the ID to the table but as you scroll from record to record the builder lookup Edit control does not populate with the account data. The builder AccountID is being saved to the database but just does not populate the control. If I use the Text property of the control then the lookup is populated but then you cannot do a lookup (i.e. the lookup button is no longer available). Do you know why? Do you know how to solve this?

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: LookupEdit Not displaying dataYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 May 07 2:57 PM
fiogf49gjkf0d
That is a common problem with some crappiness with the LookupEdit. There are many ways around it, but I usually just do this:

1) Add an include script "SLX Database Support"
2) On the Change event of the form add this code (assuming the control is named "lookupedit1" and it is an account lookup):

lookupedit1.Text = GetField("account", "account", "accountid = '" & lookupedit1.LookupID & "'")


Make sense?

-Ryan
[Reply][Quote]
Dean
Posts: 12
 
Re: LookupEdit Not displaying dataYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 May 07 3:07 PM
fiogf49gjkf0d
Hay that worked... thanks a ton...
[Reply][Quote]
Kevin Hoelzel
Posts: 6
 
Re: LookupEdit Not displaying dataYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Oct 08 2:21 PM
Ryan, I have a simliar issue except when the custom lookup is clicked, the lookup window will not display data. I've added this to the Insert new Contact Account form.

Lookup = COMPANY:NAME (This is a custom table for sotring company business units)
LookupMainTable = COMPANY
LookupMode = lmTable

All other properties are default. I ran profiler, It shows there was an unknow error and gives the SQL passed to the provider. I ran that SQL through Query Express connected to the provider, it returns rows without error.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/29/2024 11:43:14 PM