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: Application.BasicFunctions.LookupItemWithConditionByID - Multiple conditions?
Sel Feena
Posts: 7
 
Application.BasicFunctions.LookupItemWithConditionByID - Multiple conditions?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Dec 12 3:58 AM
fiogf49gjkf0d

Hi all,


I am currently playing with script to bring up a lookup dialog, which will change depending on the datagrid being clicked. This is fine, and so far I have:


strFeeType = Mid(Sender.Name, 8) & " Pass"

Set Lookup = Application.BasicFunctions.LookupItemWithConditionByID("EVXCOURSEFEE:CourseFees",True,"EVXCOURSEFEE:EVXCourseID",courseID,"=",strFeeType)


This works fine for Grids that represent one specific type of Fee (Bus Pass, Visitor Pass, etc.), but I also have to script for an 'Other' Grid, which holds several types at once. My question is, is it possible to achieve something like the following:


 


Set Lookup = Application.BasicFunctions.LookupItemWithConditionByID("EVXCOURSEFEE:CourseFees",True,"EVXCOURSEFEE:EVXCourseID",courseID,"NOT IN","(Bus Pass, Visitor Pass, Meal Pass)")

Any pointers/insights much appreciated!


 


EDIT:


Never mind, found Serg Zhidelyov's comments in the Total Control Lookups article, the below works just great.



Set Lookup = Application.BasicFunctions.LookupItemWithConditionByID("EVXCOURSEFEE:CourseFees",True,"EVXCOURSEFEE:FeeType",courseID," NOT IN ('Bus Pass','Visitor Pass','Meal Pass') AND EVXCourseID = ","")


 


 

[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 4:05:06 PM