How to update the data in a BO


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Is there any way to refresh the data in a BO, without explicitly calling the appropriate Fill method? I.e. I'm changing sequences of items, basically just swapping the value of a sequence field. After I'm done, I need to update the BO so the data in the table is correct. I'm currently using a stored procedure to do the work (cause it was already built). I'm calling this from an object that doesn't know how the BO was filled, so I don't have access to that information. Maybe the BO doesn't either. If not, I suppose what I need to do is do the swapping in the BO, on the data table, then I can refresh the controls right?
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
The BO does not cache the last query.  If you are going to sub class the BusinessLayer, then you could add this functionality any time the FillDataTable or FillByStored procedure methods are called to remember the command.  You could then add a method on your interface to "Requery" the BO.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
OK. I don't think that would have made sense, but our discussion of interfaces in the save post helps alot and I do get it BigGrin Thanks!
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