StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
executescalar in middle (be part) of transaction
executescalar in middle (be part) of transaction
Post Reply
Like
1
executescalar in middle (be part) of transaction
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Fabian R Silva, -
Fabian R Silva, -
posted 12 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
I need to execute a "executescalar" on a transaction to get the last invoice number again (if someone get the number that the actual invoice have... change it before save on this transaction)
I have:
...(try)...
BusinessLayer.TransactionBegin("invoiceTr", IsolationLevel.ReadCommitted);
var nextNumber = invBO.GetNextNumber(invBO.IdTalonario, DataSourceKey); //
<--- THIS METHOD call a EXECUTESCALAR VALUE.... freezes and timeout after some seconds...
invBO.Numero = invBO.HastaNumero = nextNumber;
saveUndoResult = invBO.Save(true);
...
...
...(rollback/commit)...
Tags
executescalar
transaction
Edited
12 Years Ago by
Fabian R Silva, -
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
executescalar in middle (be part) of transaction
Fabian R Silva, -
-
12 Years Ago
Hi Fabian, Please post the code for the GetNextNumber method as...
Edhy Rijo
-
12 Years Ago
basically it receive a data from the bo to be saved (idTalonario) and...
Fabian R Silva, -
-
12 Years Ago
The GetHastaNumeroProximo method should be in the ComprobantesBO...
Edhy Rijo
-
12 Years Ago
-
Fabian R Silva, -
-
12 Years Ago
I see that I was wrong on what I tried to accomplish, I will explain...
Fabian R Silva, -
-
12 Years Ago
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search