﻿<?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?)  » Limited Field Set Used In Business Object</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 17:44:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Limited Field Set Used In Business Object</title><link>http://forum.strataframe.net/FindPost3337.aspx</link><description>Hi Folks&lt;/P&gt;&lt;P&gt;I often have a use for a limited set of fields from a table (i.e., for an employee drop list, I don't need their address, phone, etc. only their ID and Name). How do you recommend doing this? In the past, I have created a function which returns a datatable but then its not strongly typed. I have also used strongly typed datasets but I would rather not use both Strataframe objects and Strongly Typed Datasets&amp;nbsp;so I can keep everything consistant.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clay</description><pubDate>Thu, 05 Oct 2006 15:50:41 GMT</pubDate><dc:creator>Clayton Hoyt</dc:creator></item><item><title>RE: Limited Field Set Used In Business Object</title><link>http://forum.strataframe.net/FindPost3342.aspx</link><description>Clay,&lt;/P&gt;&lt;P&gt;I just&amp;nbsp;create a method on the bo and select&amp;nbsp;the fields I need.&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; FillAllCustomerNames()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.FillDataTable(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"&lt;FONT color=#1f5080&gt;Select CustomerName,Cu_id from customer&lt;/FONT&gt;"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This does leave the possibility that you can screw up be refencing a field that is on the bo but not contained in the uderlying datatable. This hasnt been an issue for me though.</description><pubDate>Thu, 05 Oct 2006 15:50:41 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Limited Field Set Used In Business Object</title><link>http://forum.strataframe.net/FindPost3341.aspx</link><description>Sure ;)</description><pubDate>Thu, 05 Oct 2006 15:43:20 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Limited Field Set Used In Business Object</title><link>http://forum.strataframe.net/FindPost3340.aspx</link><description>That was simple!&lt;/P&gt;&lt;P&gt;Thanks much.</description><pubDate>Thu, 05 Oct 2006 15:42:05 GMT</pubDate><dc:creator>Clayton Hoyt</dc:creator></item><item><title>RE: Limited Field Set Used In Business Object</title><link>http://forum.strataframe.net/FindPost3338.aspx</link><description>Your select statement in your BO could retrieve whatever limited fields you want and can be accessed through the strong-typed field properties.&amp;nbsp; The only time you would receive an error is if you attempt to reference one of the strong-typed field properties that was not included in the SELECT:&lt;/P&gt;&lt;P&gt;SELECT my_Field1 FROM MyTable&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Valid Reference from select statement above&lt;/STRONG&gt;&lt;BR&gt;MyBO.my_Field1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invalid Reference from select statement above&lt;/STRONG&gt;&lt;BR&gt;MyBO.my_Field2 (will produce an error since the field is not in the table)</description><pubDate>Thu, 05 Oct 2006 15:40:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>