﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » How to create a BO for a SQL View</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 05:50:43 GMT</lastBuildDate><ttl>20</ttl><item><title>How to create a BO for a SQL View</title><link>http://forum.strataframe.net/FindPost15781.aspx</link><description>I would like to create a BO for a SQL View which will be bound to an UltraGrid via a Business Binding Source. So far, I have created all my BOs and configured them through the Database Deployment Toolkit.&amp;nbsp;However, it looks like I can only do this for tables and not views.&lt;/P&gt;&lt;P&gt;I have created a BO manually and inserted the SQL statement to query the view. However, when I add a BBS for the BO and bind it to my UltraGrid, no column information is displayed in the grid. The BO is not passing schema information to the grid at design time.&lt;/P&gt;&lt;P&gt;1. Is there an easier way of creating a BO for a SQL View rather than manually creating the entire BO?&lt;/P&gt;&lt;P&gt;2. How do I tell the BO to give the correct schema information to the UltraGrid at design time?&lt;/P&gt;&lt;P&gt;Thanks in advance.</description><pubDate>Mon, 21 Apr 2008 10:08:52 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: How to create a BO for a SQL View</title><link>http://forum.strataframe.net/FindPost15793.aspx</link><description>Excellent! Will give it a try later.&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Mon, 21 Apr 2008 10:08:52 GMT</pubDate><dc:creator>Aaron Young</dc:creator></item><item><title>RE: How to create a BO for a SQL View</title><link>http://forum.strataframe.net/FindPost15785.aspx</link><description>[quote]Is there an easier way of creating a BO for a SQL View rather than manually creating the entire BO?[/quote]&lt;/P&gt;&lt;P&gt;Yup...pull the schema from the SQL Server directly instead of trying to use the DDT.&amp;nbsp; The DDT does allow you to create and deploy views, but instead of totally rewriting the logic behind SQL server parsing and retrieving the columns of the view, we thought it much easier to just pull a view schema from SQL Server.&amp;nbsp; So on a BO that you intend to use as a view, choose the SQL Server option instead of the DDT (be sure to set the configuration properties for the SQL Server in the project properties), choose the view, and you are good to go.&lt;/P&gt;&lt;P&gt;[quote]How do I tell the BO to give the correct schema information to the UltraGrid at design time?[/quote]&lt;/P&gt;&lt;P&gt;Well, in this case I am sure that you do not have all of your properties created like the BO mapper would, thus they don't show up.&amp;nbsp; If you map like I mentioned above the columns will show up.&amp;nbsp; But if you want to do it manually in the future for a custom property, then you will need to create a custom property, add the associated attributes, and it will appear.&amp;nbsp; There are a ton of posts and docs concerning creating a custom property.&amp;nbsp; But that would be what happened in this case.</description><pubDate>Sun, 20 Apr 2008 20:29:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>