Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 6, 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 - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: Lookup Edit
Patrick Murphy
Posts: 1
 
Lookup EditYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Jun 07 11:12 AM
How can I pass lookup parameters by VBscript? I would use radio buttons to change the lookup from contact last name to account lookup.

thx
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Lookup EditYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jun 07 6:39 AM
One way we have done this is to employ 2 (two) different lookups. Have one visible... the other not. Use the RadioGroup event and check the index to see which lookup should be visible (or not).

Less messy.
--
rjl
[Reply][Quote]
Lawrence Reid
Posts: 63
 
Re: Lookup EditYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jun 07 9:15 AM
Here is an example I used to change the lookup based on the lookup id of another lookup. This could be modified to check the value from the radio group instead of a lookup.
Sub lueAccountChange(Sender)
If lueAccount.LookupID = "" Then
lueBillingAddress.LookupRestrictValue = txtAcctID.Text
luePaidFrom.LookupRestrictValue = txtAcctID.Text
Else
lueBillingAddress.LookupRestrictValue = lueAccount.LookupID
luePaidFrom.LookupRestrictValue = lueAccount.LookupID
End If
End Sub

select case rgHowPaid.ItemIndex
case 0
lueBillingAddress.LookupRestrictValue = txtAcctID.Text
luePaidFrom.LookupRestrictValue = txtAcctID.Text
case 1
lueBillingAddress.LookupRestrictValue = lueAccount.LookupID
luePaidFrom.LookupRestrictValue = lueAccount.LookupID
end select
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Lookup EditYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jun 07 7:14 AM
2 control way:
A - Create two lue's: lueContact/lueAccount and place them on top of each other
B - Design Time: uncheck lueAccount.Visible
C - Design Time:Radio group: Set index to 0
D - Code tied to RG (off the top of my head.. NOT tested...):

Sub RC(Sender)
If Sender.Index = 0 Then
If lueAccount.Visible = True Then
Exit sub 'saves a screen repaint
Else
lueAccount.Visible = True
lueContact.Visible = False
End If
Else
If lueContact.Visible = True Then
Exit sub 'saves a screen repaint
Else
lueContact.Visible = True
lueAccount.Visible = False
End If
End Sub

--
rjl
[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): 6/6/2025 9:54:36 PM