Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 2025 
 
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 - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Populate text box from TLookupEdit
Andrew Grandin
Posts: 272
 
Populate text box from TLookupEditYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Sep 09 4:08 AM
I am trying to populate a text box with the choice a user makes from an TLookupEdit on Account Name. Whether this occurs automatically once the choice has been made or on button press i dont mind.

I have tried TheLookup.Text but obviously that didnt work. As this is on the Activity Details view form of an existing activity i have also tried Activity.AccountName but this displays the last Account Name to be saved against the Activity and not the one the user has chosen in the TLookupEdit.

Any ideas?
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Populate text box from TLookupEditYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Sep 09 1:42 PM
1. you need to have access to the form.

2. OnPopupReturn event will give you the answer or the 'hook' to get the answer.
luecontrol.TEXT contains the field value that was specified in the Lookup. lueControl.LookupID will contain the ID field value that was specified in the Lookup. These both can be changed (but the change will affect ALL screens that use this lookup!).

3. If the text doesn't contain what you want....you can quick fire off a script that gets the data based on the ID returned in LookupID....we do that a lot. You can use GetField or GetFields oran ADO recordset to get the data desired.
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: Populate text box from TLookupEditYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Sep 09 3:57 AM
Thanks for pointing me in the right direction, i have it working now using the lookupid in the getfield sql statement.

Many Thanks.
[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 © 2025 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): 8/29/2025 3:14:38 PM