8/16/2025 3:29:39 AM
|
|
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 the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Validation in web client
Posted: 12 Nov 08 1:06 PM
|
Hi All,
I also aksed this in the BP forum and got no answer until now and also thought that some of you might have intresting ideas here. I face the problem, that I have to validate controls before I save a form. Some controls can be set to requried if you always need data in them. Some, like datepickers can not be set to required even not with the method of editing some scripts. And sometimes you have the case that some controls are required when others are filled. I have an example where we developed a kind of service module where you can add jobs for a serivce. On the form is a checkbox "Customer request exists". When this checkbox is checked the text control is enabled. Also I must besure, that some text is entered into this control. If not, I want to tell the user to insert some text. To reduce server traffic I want to do a single validation rule for the form. What I did is to add an invisible label to my quickform. I reconfigured my save button to have no dialog result and to execute a c# snippet. I instaciated an entity object and called my ruel which returns a string which includes an error text. Problem now is, that I am not able to close my form. Is this a good way of validating a form? What are other people doing if you can not set fields to required? Would be happy to hear suggestions and perhaps also see how to close my form after calling the save method.
Thanks for your ideas! |
|
|
|
Re: Validation in web client
Posted: 13 Nov 08 3:31 AM
|
Hi Alexander,
Thats a reasonable enough way of doing it - if you are just struggling with closing your form, just use:
| DialogService.CloseEventHappened(sender, e);
When you have passed validation.
Thanks, Nick |
|
|
|
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!
|
|
|
|
|
|
|
|