Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, July 4, 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: Call 'Save' business rule from Javascript
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Call 'Save' business rule from JavascriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Sep 09 1:38 PM
Is it possible to call the 'Save' business rule from javascript? I would like to do some error checking from an external js file and 'save' the form if all checks out. Thanks
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Call 'Save' business rule from JavascriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Sep 09 12:28 AM
Steve:

Seems to me that what you are looking for is for Client Side validation. I don't think that you could call the "Save" business rule without actually Posting the PAge and Saving.

Add your validation code on a Javascript file, attach it to your form and invoke it on the click of the save button. If your validation fails, return false so that the form doesn't get posted.
Now, if your Save business rule requires Querying the DB (e.g. Check for Existing IsPrimary, or to prevent duplicates), you will also need to from your Javascript call a Server Page that executes that code.

[Reply][Quote]
Alec Denholm
Posts: 34
 
Re: Call 'Save' business rule from JavascriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Sep 09 9:53 AM
I think this is similar to something I tried to do, because I had a value changed in java which needed to be saved, server side code could only see the old value etc etc anyway I had the luxury of using custom forms so I just used AJAX to call entity business rules without refreshing the page.

You could use the java function '__doPostBack' to accomplish something like this if you were using external java files perhaps. I don't think you're going to be able to avoid calling the rules from the server though.
[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): 7/4/2025 10:19:02 AM