Fill By Stored Procedure


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Does the stored procedure return the value as a second result set, or is it returned as an output parameter?  You could probably add a parameter to your stored procedure as an output parameter and set the value of that parameter to the record count.  After the stored procedure is executed, the SqlParameter will be filled with the value.
Peter Jones
Peter Jones
Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)Advanced StrataFrame User (520 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi,

I guess you could just use the BO's ExecuteScalar method to return the record cound.

Cheers, Peter

Tim Dol
Tim Dol
StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
I'm filling a business object based on a stored procedure that handles paging of data.  The business object is filled correctly but there is a section in the stored procedure to return the total record count, which is not related to the records count in the business object.

Example: I may have 100,000 records in the customer file but I am only requesting 1000 at a time. The stored procedure returnss the 1000 records into my business object and also return a total record count of 100,000 so I can display the page count.  How can I return this value to my business object when I call the stored procedure?

Thanks,

Tim

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