Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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 invoke
lorenzo
Posts: 35
 
lookup invokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jun 11 6:57 PM
fiogf49gjkf0d

Hi.


I neede to add a default search value at a look up.


I called it like this, 



if lblPeopleID.Caption <> "" then


  strShow =   lblPeopleID.Caption


else


  strShow = "<Enter PeopleID>"


end if


 


 strID = LookUpByName ("Contact:Peopleid",strShow)


  IF strID <> -1 THEN


    objBASIC.SetCurrentContactID strID


  END IF



 


everything works, it shows the lookup and looks for the information, but im having a proble, when i execute the lookup like this:


Application.BasicFunctions.DoInvoke "Lookup", "Contact:Peopleid" 


In this way it shows a check that says "create a temporaly group containing all results"


My problem is that i need to add the defult value like the first way, and using the second way (doinvoke) there is no alternative parameter and i need the funcionality that the checks made.


What can i do?


Thaks for your help.


 


 


 


 


 


 

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: lookup invokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 11 8:16 AM
fiogf49gjkf0d

Try this instead:


With yourLookup


            .LookupRestrictField = "{COLUMNAME}"
            .LookupRestrictOp = " like " ' or = <> etc.
            .LookupRestrictValue = "yourSearchValue"
            .InitPopupText = "yourSearchValue"
            .Popup


End With

[Reply][Quote]
lorenzo
Posts: 35
 
Re: lookup invokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 11 10:54 AM
fiogf49gjkf0d

i will try.


Why this kind of problem happens?


I mean, the lookup form is a modal form from slx? o there is way that i can modify this form.


Thanks

[Reply][Quote]
lorenzo
Posts: 35
 
Re: lookup invokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 11 11:08 AM
fiogf49gjkf0d

Im sorry but im not very familiar with SLX.


How can i create an lookup object?


someting like this?


Dim objLook


SET objLook = Application.createobject("Lookup")


 


This does not work.


Thanks

[Reply][Quote]
lorenzo
Posts: 35
 
Re: lookup invokeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Jun 11 11:27 AM
fiogf49gjkf0d

I dont think that this solves the way that i call the lookup to get the check box visible

[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): 7/5/2025 7:00:49 AM