Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 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: Creating an Advanced Lookup / QBE for a Custom Entity
Jeff Weight
Posts: 219
 
Creating an Advanced Lookup / QBE for a Custom EntityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Mar 10 11:50 AM
All,

I did a few searches to see if I could find an answer to this question, but I find I'm running into a dead end. I have a requirement to create a QBE, or Advanced Lookup form, for a completely custom entity - custom table, custom MainView, etc. I'd prefer not to go the "Quick Find" route if possible, as there are some fields that require more complex search capabilities than databinding will allow.

I've already attempted to use Application.BasicFunctions.CreateTempAdHocGroup and CreateTempGroup, but with very little success. CreateTempAdHocGroup only seems to open the correct mainview, but then only loads the first group created for the mainview, which is a group with no conditions. CreateTempGroup opens the MainView and creates a group called Lookup Results (despite trying to give it a different name), but the group is always empty. If I provide an ID, it'll display that record, but the group count is 0, and the other records that should be found in the query aren't visible. After a little research, it seems these two functions were only built for T/A/C/O. What a letdown if that's really the case.

Here's the code I was using:

strSQL = "(SELECT AT.Advisor_TeamID " & _
"FROM Advisor_Team AT WITH (NOLOCK) " & _
"JOIN Contact C WITH (NOLOCK) ON AT.PrimaryContactID = C.ContactID " & _
"JOIN Address AD WITH (NOLOCK) ON C.AddressID = AD.AddressID " & _
"JOIN C_Contact CC WITH (NOLOCK) ON C.ContactID = CC.ContactID " & _
"JOIN Account A WITH (NOLOCK) ON C.AccountID = A.AccountID " & _
strATM & strCT & strWhere & ")"

Application.BasicFunctions.CreateTempGroup "Advisor_Team", "Lookup Results Test", "Advisor_TeamID", " IN ", strSQL, ""



Has anyone been able to do something similar - without a 3rd party tool - to at least imitate the Advanced Lookup for a custom entity? Any ideas welcome.

System: SalesLogix Version 7.5.1 Windows Client

Thanks!
[Reply][Quote]
Jeff Weight
Posts: 219
 
Re: Creating an Advanced Lookup / QBE for a Custom EntityYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Mar 10 2:02 PM
Nice! I see that over 20 people have already looked at this, but no responses. I love asking fun questions.

So, problem solved - I was right about the CreateTempAdHocGroup function, but turns out I was wrong about the CreateTempGroup function. It won't let you set a custom group name, but everything else worked as (should be) expected. Two things made the above SQL not work correctly:
The "AT" table alias for Advisor_Team (that was a surprise) and
The "WITH (NOLOCK)" table hint (not that much of a surprise)

I went through and removed the "WITH (NOLOCK)" table hints and changed all of the table alias' to A1 through A5. No more problems.

Sorry for the noise for today!
[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/8/2025 5:03:12 AM