Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 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: Lookup restrict values
Bill
Posts: 71
 
Lookup restrict valuesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 May 08 2:00 PM
I need to restrict a lookup on two conditions. Is there an easy way of scripting this? This is what I have so far and it meets one of the restrict conditions, now I need to restrict it by date also.

strStartDate = now
strTR_COURSEID = txtCourseId.Text

lueClassName.LookupRestrictField = "TR_COURSE:TR_COURSEID"
lueClassName.LookupRestrictOp = "="
lueClassName.LookupRestrictValue = strTR_COURSEID


Thanks,
[Reply][Quote]
Shawn O'Ferrall
Posts: 21
 
Re: Lookup restrict valuesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 May 08 7:26 AM
No.

And, if this is 7.2.1, I've encountered a bug with lookups and lookup restrictions - they are not honored on subsequent lookups (in the same instance) and if run against particularily large tables, the cause a freezing behavior. I have an open ticket with Sage for this now, but I've been too busy to follow up. I wound up re-coding a lookup by hand (new form that looks like a lookup) and from there I can restict on two vaules.

If your lookup restrictions are static, you might consider creating a view and building your lookup off the view.

Good luck!

[Reply][Quote]
Matt Dockins
Posts: 159
 
Re: Lookup restrict valuesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 May 08 8:14 PM
you have to use the lookuprestrictop = "IN" and a sql select for the lookuprestrictvalue

In some cases it can really slow performance of the lookup
[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/23/2025 6:01:55 PM