12/19/2025 5:48:32 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.
|
|
|
|
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! |
|
|
|
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();
|
|
|
|
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. |
|
|
|
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!
|
|
|
|
|
|
|
|