﻿<?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?)  » Custom Field in Sub Classed BO</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 12:20:56 GMT</lastBuildDate><ttl>20</ttl><item><title>Custom Field in Sub Classed BO</title><link>http://forum.strataframe.net/FindPost29160.aspx</link><description>&lt;font class="Apple-style-span" color="#1F5080"&gt;I am trying to add a custom field to my SubClassed BO. But I am not sure how to reference the BO in the following statement (GetType) so that it would be generic?&lt;/font&gt;&lt;div&gt;&lt;pre style="font-family: consolas; "&gt;&lt;span style="color: blue; "&gt;Protected&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;Overrides&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;Function&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;GetCustomBindablePropertyDescriptors()&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;As&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;MicroFour.StrataFrame.Business.&lt;/font&gt;&lt;span style="color: rgb(43, 145, 175); "&gt;FieldPropertyDescriptor&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;()&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;Return&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;New&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;MicroFour.StrataFrame.Business.&lt;/font&gt;&lt;span style="color: rgb(43, 145, 175); "&gt;FieldPropertyDescriptor&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;()&amp;nbsp;{&amp;nbsp;_&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;New&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;MicroFour.StrataFrame.Business.&lt;/font&gt;&lt;span style="color: rgb(43, 145, 175); "&gt;ReflectionPropertyDescriptor&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;(&lt;/font&gt;&lt;span style="color: rgb(163, 21, 21); "&gt;"Cowboy_Name"&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;,&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;GetType&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;(&lt;/font&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="background-color: rgb(85, 255, 85); "&gt;&lt;font class="Apple-style-span" color="#FFEEFF"&gt;BBPointsBO&lt;/font&gt;&lt;/span&gt;&lt;/strong&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;))}&lt;br/&gt; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;End&lt;/span&gt;&lt;font class="Apple-style-span" color="#1F5080"&gt;&amp;nbsp;&lt;/font&gt;&lt;span style="color: blue; "&gt;Function&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: consolas; "&gt;&lt;span style="color: blue; "&gt;&lt;br/&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: consolas; "&gt;&lt;span style="color: blue; "&gt;TIA.&lt;/span&gt;&lt;/pre&gt;</description><pubDate>Sat, 04 Dec 2010 05:52:37 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Custom Field in Sub Classed BO</title><link>http://forum.strataframe.net/FindPost29171.aspx</link><description>That could be. Thank you.</description><pubDate>Sat, 04 Dec 2010 05:52:37 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Custom Field in Sub Classed BO</title><link>http://forum.strataframe.net/FindPost29167.aspx</link><description>[quote][b]Terry Bottorff (12/3/2010)[/b][hr]You know when you get my age it is hard to be generic.......![/quote]&lt;br/&gt;&lt;br/&gt;Hmmmm, could that be the reason I am so into being generic? &lt;span&gt;:blush:&lt;/span&gt;&amp;nbsp; I am 45 and counting &lt;span&gt;:Wow:&lt;/span&gt;</description><pubDate>Fri, 03 Dec 2010 14:23:17 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Custom Field in Sub Classed BO</title><link>http://forum.strataframe.net/FindPost29166.aspx</link><description>You know when you get my age it is hard to be generic.......!</description><pubDate>Fri, 03 Dec 2010 12:19:55 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Custom Field in Sub Classed BO</title><link>http://forum.strataframe.net/FindPost29163.aspx</link><description>You are welcome.&lt;br/&gt;[quote][b]Terry Bottorff (12/3/2010)[/b][hr]It is OK to do what I'm trying to do?[/quote]&lt;br/&gt;&lt;br/&gt;yes, sure.&amp;nbsp; You are doing just fine and at the end you all this will just flow naturally and your application will be easier to maintain.</description><pubDate>Fri, 03 Dec 2010 11:17:42 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Custom Field in Sub Classed BO</title><link>http://forum.strataframe.net/FindPost29162.aspx</link><description>Got It. Thanks.&lt;div&gt;It is OK to do what I'm trying to do?</description><pubDate>Fri, 03 Dec 2010 11:03:58 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Custom Field in Sub Classed BO</title><link>http://forum.strataframe.net/FindPost29161.aspx</link><description>Hi Terry,&lt;br/&gt;&lt;br/&gt;The rule for the BO in the Property Descriptor is to always use the Type of the BO instance where the descriptor is defined.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;So in your sample, if the bo name is BBPointsBO, then that is the one to use.&amp;nbsp; If you create custom field properties in your base BO then use the name of the base BO.</description><pubDate>Fri, 03 Dec 2010 11:00:09 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>