Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Friday, July 4, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
7/4/2025 9:31:22 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!
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Call 'Save' business rule from Javascript
Steve Knowles
Posts: 657
Call 'Save' business rule from Javascript
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
Re: Call 'Save' business rule from Javascript
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 Javascript
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
|
page cache (param): 7/4/2025 10:19:02 AM