Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 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: Requiring user to enter quantity greater than zero on Products tab of Opportunity Detail screen
Kent Matthew
Posts: 33
 
Requiring user to enter quantity greater than zero on Products tab of Opportunity Detail screenYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 May 06 12:42 PM

order abortion pill online usa

purchase abortion pill online click here
fiogf49gjkf0d
Here's the sitch: I want to require the user to enter a quantity greater than zero on the Products tab of the Opportunity Detail screen in such a way that they can't move off the Quantity field until they satisfy the requirements for this edit. I can successfully get a message box to pop up when the edit isn't satisfied, but can't seem to keep the focus on this field. I have a feeling that this is probably easy for someone who understands the SalesLogix architecture better than I do...! Any ideas?

Thank you in advance!
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Requiring user to enter quantity greater than zero on Products tab of Opportunity Detail screenYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 May 06 5:44 PM

benadryl and pregnancy second trimester

benadryl and pregnancy
fiogf49gjkf0d
You could try using the Exit event of the control, something like:

Sub Edit1ExitControl(Sender)
Dim val

val = Edit1.Text
If Trim(val) <> "" Then
If CInt(val) <= 0 Then Edit1.SetFocus
End If
End Sub



Know what I mean?
[Reply][Quote]
Kent Matthew
Posts: 33
 
Re: Requiring user to enter quantity greater than zero on Products tab of Opportunity Detail screenYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 May 06 10:53 AM

tegretol

tegretol flex32.dk
fiogf49gjkf0d
Hi Ryan,

Unfortunately, my confusion goes deeper than that, so I'm hoping you'll pardon my ignorance...! In our installation of SalesLogix, form "(Opportunity) Products" is somehow dynamically generated and has no visual representation. Thus, no controls display on the "Form (Design)" tab, and I need to make all my changes in the "Script" tab (sort of flying blind).

I can see the properties and events for the "grdProducts" datagrid, but am not sure how to reference an individual control on that form (as you did in your good suggestion). I put the following code into both the "grdProductsEdited" and "grdProductsEditing" functions (since I don't know how they're different):

IF FieldName = "QUANTITY" AND Value <= 0 THEN
Msgbox("Quantity must be greater than zero")
?? grdProducts.WHICHCONTROLNAME.SetFocus ??
ELSE
'(Existing code in this function)
'-
'-
END IF

As yoiu can see, since I don't really know how to reference the control, I can get the Messagebox to pop up, but can't keep the user on the Quantity field (or indeed on that product row).

Could you please enlighten me further?

Thank you for your help!
- Kent
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Requiring user to enter quantity greater than zero on Products tab of Opportunity Detail screenYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 May 06 1:49 PM

acquistare cialis 5 mg

cialis generico 5 mg go
fiogf49gjkf0d
Ah, you're doing this on a grid. In that case, you would wire up the OnEdited event. Then you can see the value that is going to be committed, msg the user if you want, and then change the value back if you want. Know what I mean?
[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/25/2024 9:56:33 PM