BO IsDirty set to false after failed save


Author
Message
Andrew Harper
Andrew Harper
StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)StrataFrame User (280 reputation)
Group: StrataFrame Users
Posts: 87, Visits: 3.3K
Did this issue ever get resolved or has someone got a work around?

I am seeing exactly the same behaviour in my web form when saving using a transaction.

TIA

Andy
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I have not been able to reproduce this.  It would be helpful if you produced a small sample with instructions on how to reproduce your problem.  Thanks.
Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
Before first save,

Object has a row which has Added state, then save.

Save operations returns "AbortWithBrokenrules" but dirty set to false. ??? When object has a row with added state.

Ertan Deniz
Ertan Deniz
StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)StrataFrame User (177 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I have the same problem as well.

Submit twice for save button,

First save operation, I 've got normally AbortedWithBrokenRules,

But Second save, I've got Success. (This is wrong. The return value have to be AbortedWithBrokenRules)

What is going wrong ?

Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Any update?



Thank you
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Thanks for the update.



While I'm here, I'll add that when running the sample probject, you'll see the behavior by filling only one of the fields and hitting submit twice, the first time you should see AbortedWithBrokenRules and the second time Success.



Thanks again
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I am sorry I have not yet responded to this post.  I have not had a chance to look at it.   Everything came flying at me all at the same time.  We have been dealing with some server issues as well as some strange forum posts lately which has slowed down the "pipe."  We still have this on the stack to look at.  Sorry for the wait.
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Trent,



Do you think my solution is appropriate or is this something that needs to be fixed in Strataframe?



Thank You,

Govinda
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Looks like I spoke too soon. I can't just remove the command to Rollback the transaction because the second time the submit button is clicked the transaction is still active and calling the BeginTransaction command causes the following exception "A transaction with the key [DEF_TRANS_KEY] is already started".



So I tried calling Commit instead and that seems too work.



I don't think this is the greatest behavior when dealing with transactions, because I should be able to call the RollbackTransaction method where I was calling it. Are the developers looking into this? If so, do you need anything else from me?
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
I will probably just remove that rollback command
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search