Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: Definig the root directory within the LookupEdit Control
Ivan
Posts: 1
 
Definig the root directory within the LookupEdit ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Mar 08 5:35 PM
I have a requirement to allow a user to select a word template from within Saleslogix.
I am using the LookupEdit control with LookUpMode = lmFile
When the control displays the lookup directory window, the directory displayed is always the last directory that I chose a file from.
The templates will always exist below a Library directory (the root directory) although the templates may exist in a sub directory
For example;
C:\directory1\directory2\directory3\Library\Sub Directory 1\Template Directory\

I have been trying, unsuccessfully to configure the control so that it always starts at Library directory

Any ideas would be greatly appreciated

Regards
Ivan
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Definig the root directory within the LookupEdit ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Mar 08 8:04 PM
Not possible with the LookupEdit. You can take another approach as outlined in the following:

http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=61
http://saleslogixblog.com/rfarley/archive/2007/08/08/37945.aspx

Hope this helps.

-Ryan
[Reply][Quote]
Douglas Walker
Posts: 27
 
Re: Definig the root directory within the LookupEdit ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Aug 11 11:17 AM
fiogf49gjkf0d

To followup on this one for others attempting something like this, even though it is a few years later.


I found a bit of a workaround if you don't want to go the route that Ryan stated above.  Not sure if it will work on older versions though, as I'm running 7.5.3. 


I found that if you manually typed into to LookupEdit the location you wanted to go to, without a filename, it would not open the lookup.  However, if you typed in anything after your directory location, it would open the lookup.  So I took the following steps:


1. Set LookupAutoPopup to True


2. Enter the following (or something similar) on the OnEnterControl event:


FormLookup.Text = "C:\Forms Recieved\Choose a file"


The result is that your lookup opens up in the directory "C:\Forms Recieved\ , with the text "Choose a file" in the File name section. 


This may not be the best way to achieve this type of result, but it does the job with minimal programming required. 


Hope this helps someone else out!

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Definig the root directory within the LookupEdit ControlYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Aug 11 11:20 AM
fiogf49gjkf0d

Pretty tricky Smile good idea.

[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): 2/23/2025 10:00:22 PM