Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 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: Using a view in a lookup
Maria Amodei
Posts: 24
 
Using a view in a lookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 08 2:08 PM
Is there anywhere I can find documentation on how to use the listed "view" for a lookup? I have a challenge where I'd like to get three pieces of info back from a lookup rather than the usual 2 and I was thinking the view might help. Problem is I can't find any references as to how to use it.

Maria
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Using a view in a lookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 08 3:30 PM
grab the ID value and go out and get the data.....
DIM ADATA(), strID
strID = lueControl.LookupID
IF strID > "" THEN
IF GETFIELDS("fields", "table","conditions fieldID = '" & strID & "' ",ADATA) THEN
3rdField = ADATA(1)

END IF
END IF
[Reply][Quote]
Maria Amodei
Posts: 24
 
Re: Using a view in a lookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 08 3:57 PM
Unfortunately I'm looking up a value in a one to many table off the actual table for the lookup. Basically the user looks up a marketing code to find a fee. The particular fee might have several marketing codes. I want to capture the fee amount, ID of the fee record, and the marketing code the user selected.

What I've done is added a lookup to get the marketing code, then use the ID for the marketing code record to get the fee record ID and amount for the fee lookup. I was hoping for a simpler method as I have about 30 iterations of this. So now I'm creating logic in my code so one routine can do all 30 based on the related object names.

Unless of course someone comes up with something easier!

I was hoping the view would allow me to capture the marketing code to a global to return to the form but I can't figure out how to use a view with a lookup.

Maria
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Using a view in a lookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 08 1:42 AM
Sounds like you are trying to force the lookup to do too many things at once ...

But I am not 100% sure I understand the process.

The user selects a fee and then one of several (associated) Marketing codes?

So you have FeeID, Fee in one table and MarketingID (foreign key to FeeID) and Marketing Code in another?

And you want to be able to display all available Marketing Codes when a user selects a particular Fee and then capture what is selected (in a hierarchical way, similar to Area / Category / Issue on a Ticket)?

Phil
[Reply][Quote]
Maria Amodei
Posts: 24
 
Re: Using a view in a lookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 08 5:08 AM
Actually the user selects a marketing code, which only has one related fee. This works well to get me the fee record ID and the fee amount. The problem was I need to trap the code the user selected as well since more than one code could have gotten them to that fee.

I've solved it with a second lookup to find the code, which brings me the code itself. On popup return of that lookup I capture the record id for the fee and the amount.

At the end I'm still curious as to what the view in a lookup does and how to set one up. I can't find any documentation, or examples, to research this. It could be a handy tool if I knew what it was.

Maria
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Using a view in a lookupYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Aug 08 8:52 AM
I've never seen any documentation on this either (along with a lot of other "undocumented" things .
[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): 8/24/2025 6:24:44 PM