Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 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 Restriction not working
R
Posts: 3
 
Lookup Restriction not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 13 6:28 PM

Hello,
I am trying to setup a lookup restriction based on the value of a field on a form.


Here is my setup:
LookupMain Table:
TICKET
LookupID:
UNIT_INSTALLS:WEW_TICKET_ID (the primary key of the ticket is stored here)
LookupRestrictAlways: checked
LookupRestrictField: "ACCOUNTID"
LookupRestrictOp: "= (SELECT ACCOUNTID FROM TICKET WHERE ACCOUNTID ='" & lueInstaller.Text & "') AND "1" ="
LookupRestrictValue: "1"


With this setup, clicking the search button should bring up all the tickets associated with the specific account ID, but it doesn't. Any ideas what I'm doing wrong?
I used this article as my reference: http://customerfx.com/pages/crmdeveloper/2004/02/10/329.aspx


Thanks in advance.

[Reply][Quote]
Leon Gort
Posts: 127
 
Re: Lookup Restriction not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 13 6:28 PM

That article is referring to adding multiple restriction which it seems you don't need. Your LookupRestrictOp should just be  "=" and set the LookupRestrictValue = lueInstaller.Text on the form change event (or wherever appropriate)

[Reply][Quote]
R
Posts: 3
 
Re: Lookup Restriction not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 May 13 12:37 PM

Thank you,


I'll try that and let you know.

[Reply][Quote]
R
Posts: 3
 
Re: Lookup Restriction not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 May 13 1:36 PM

I tried your suggestion and it doesn't work. It seems that it is not reading the object lueInstaller.Text

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Lookup Restriction not workingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 May 13 7:02 PM

What's lueInstaller.LOOKUPID bound to? If you do a MsgBox lueInstaller.Text & " " & lueInstaller.LookupID  what do you get?

[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/22/2025 9:39:11 AM