Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 16, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Validation in web client
Alexander Pfingstl
Posts: 43
 
Validation in web clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
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!
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Validation in web clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[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/16/2025 1:38:19 AM