11/25/2024 11:23:59 PM
|
|
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!
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.
|
|
|
|
Requiring user to enter quantity greater than zero on Products tab of Opportunity Detail screen
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!
|
|
|
| |
|
Re: Requiring user to enter quantity greater than zero on Products tab of Opportunity Detail screen
Posted: 04 May 06 10:53 AM
|
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
|
|
|
| |
|
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!
|
|
|
|
|
|
|
|