Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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: Filter Lookup
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Filter LookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Oct 06 3:09 PM
fiogf49gjkf0d
Is it possible to set the sort order of a lookup? I am filtering a lookup
with the following code:
strState=pklState.text
lveJurisdiction.LookupRestrictField="AccountID"
lveJurisdiction.LookupRestrictOp="IN"
lveJurisdiction.LookupRestrictValue="(select distinct a.accountID from
account a, " & _
"address ad, c_opportunity co where a.accountID=ad.ENTITYID and
co.state=ad.state " & _
"and co.state='" & strState & "' and a.subtype='Agency' )"

Thanks
Steve K.
[Reply][Quote]
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Re: Filter LookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Oct 06 7:48 AM
fiogf49gjkf0d
Couldn't you add an ORDER BY to the lveJurisdiction.LookupRestrictValue assignment.

For example

veJurisdiction.LookupRestrictValue="(select distinct a.accountID from
account a, " & _
"address ad, c_opportunity co where a.accountID=ad.ENTITYID and
co.state=ad.state " & _
"and co.state='" & strState & "' and a.subtype='Agency' ORDER BY a.account)"


John G.
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Filter LookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Oct 06 8:15 AM
fiogf49gjkf0d
Good try - I tried it but the lookup won't return any records. I think because this is just the restrict value.. Any other thoughts? Thanks
[Reply][Quote]
John Gundrum
Posts: 632
Top 10 forum poster: 632 posts
 
Re: Filter LookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Oct 06 8:18 AM
fiogf49gjkf0d
Well the other thought is this... is there another property for the veJurisdiction object. Maybe LookupOrderValue ?

John G.
[Reply][Quote]
Zeph
Posts: 37
 
Re: Filter LookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Oct 06 9:34 AM
fiogf49gjkf0d
Looks to me like the search field is the same as the order by field. If thats an option you can change this in the lookup manager.
[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 © 2024 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): 11/26/2024 8:31:57 PM