Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Sunday, July 6, 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/5/2025 11:32:05 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!
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: v7.5.1 - Delete button gives "Cascade" error
Jim Mizia
Posts: 49
v7.5.1 - Delete button gives "Cascade" error
Posted: 18 Jun 09 8:51 AM
I have two 1:M tables under the Account entity. Each table has a corresponding AddEdit form, and each AddEdit form has a control with a "Delete" button on it (which deletes the current record and then returns the user to the calling grid on the Account detail page).
One of these buttons works fine. The button on the second form gives the following error:
"deleted object would be re-saved by cascade (remove deleted object from associations)[Sage.SalesLogix.Entities.CProductSummary#QOKTTA0033D8]"
I believe that I set up the properties on the control box and buttons exactly the same way. Can anyone tell me what might be causing the error?
Thanks for any help!
[
Reply
][
Quote
]
Mike LaSpina
Posts: 116
Re: v7.5.1 - Delete button gives "Cascade" error
Posted: 18 Jun 09 12:34 PM
I've run into this before when dealing with some complex relationships. My workaround was to dissociate the entity from the parent before doing the delete. Assuming your entity is hanging off of account, your code would look something like this:
IMyEntity me = this.BindingSource.current as IMyEntity;
me.Account.MyEntities.Remove(me);
me.Delete();
[
Reply
][
Quote
]
Jim Mizia
Posts: 49
Re: v7.5.1 - Delete button gives "Cascade" error
Posted: 18 Jun 09 3:15 PM
Thanks for the input.
I actually ended up correcting this error by changing the properties of the data source that is imbedded on the account tab form that launches the AddEdit form with the problem. I changed the “Use Smart Selection" property to TRUE, and now the Delete button on the AddEdit form works without issue.
Not sure why it worked, but sometimes results are all that one can ask for.
Jim M.
[
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/6/2025 12:17:40 AM