sBeginner ? Fill BO with view


Author
Message
Jon Olson
Jon Olson
StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)StrataFrame Beginner (17 reputation)
Group: Forum Members
Posts: 15, Visits: 17
How can I fill the BO with view data?
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Me.FillDataTable("SELECT * FROM [viewname]")

or

this.FillDataTable("SELECT * FROM [viewname]");

A business object's internal DataTable is not typed, so you can pull data from any number of columns into the business object.  So, you can take any bo, whether it has been mapped to the view or not and retrieve data into the bo.  However, if you try to save, that might cause you some problems Wink

If you ever want to retrieve a column value that does not have a corresponding strong-typed property on the BO, you can access the column through this:

bo.Item("fieldname")

or

bo.Item["fieldname"] //-- C#

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