﻿<?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 BO field</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 22:16:20 GMT</lastBuildDate><ttl>20</ttl><item><title>Custom BO field</title><link>http://forum.strataframe.net/FindPost3570.aspx</link><description>I&amp;nbsp;added a Custom code to my field for a lookup but now I get an error saying I need a fieldpropertydescriptor. How do I fix this (vb.net project)</description><pubDate>Mon, 16 Oct 2006 08:48:32 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Custom BO field</title><link>http://forum.strataframe.net/FindPost3616.aspx</link><description>Inside the curly braces, just separate the return objects with a comma... it adds them to the array.&lt;/P&gt;&lt;P&gt;This:&lt;/P&gt;&lt;P&gt;New FieldPropertyDescriptor() { } &lt;/P&gt;&lt;P&gt;Tells it to create a new array of type FieldPropertyDescriptor.&amp;nbsp; Whatever you put in the curly braces are items in the newly created array (ReflectionPropertyDescriptor is a subclass of FieldPropertyDescriptor).&amp;nbsp; So, it needs to look like this:&lt;/P&gt;&lt;P&gt;Return New FieldPropertyDescriptor() { New ReflectionPropertyDescriptor("Ctr", GetType(boCalc)), _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New ReflectionPropertyDescriptor("Ftr", GetType(boCalc)) }&lt;/P&gt;&lt;P&gt;Any others that you add just need to be separated by commas.</description><pubDate>Mon, 16 Oct 2006 08:48:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Custom BO field</title><link>http://forum.strataframe.net/FindPost3613.aspx</link><description>I tried adding a second custom field to the BO, I am not sure how to add the code to make it work&lt;/P&gt;&lt;P&gt;I tried somthing like this but doesnt work&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/FONT&gt;&lt;FONT size=2&gt; GetCustomBindablePropertyDescriptors() &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; FieldPropertyDescriptor()&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Return&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; FieldPropertyDescriptor() {&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; ReflectionPropertyDescriptor(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Ctr"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;GetType&lt;/FONT&gt;&lt;FONT size=2&gt;(boCalc))}&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Return&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; FieldPropertyDescriptor() {&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; ReflectionPropertyDescriptor(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Ftr"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;GetType&lt;/FONT&gt;&lt;FONT size=2&gt;(boCalc))}&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;Function&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 16 Oct 2006 08:35:52 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Custom BO field</title><link>http://forum.strataframe.net/FindPost3592.aspx</link><description>Excellent, I'm glad you figured it out.&amp;nbsp; We usually post everything in VB.NET, but I think the person that that post was answering was a C# guy...&lt;/P&gt;&lt;P&gt;As for the Type.GetType(boCalc), it's a shared (static) method on the System.Type class, and it only accepts strings, but the GetType(boCalc) is a language keyword, so it accepts the type and knows how to compile it.&lt;/P&gt;&lt;P&gt;And you figured out the creating a new array rather than returinging only a single instance. :)</description><pubDate>Fri, 13 Oct 2006 16:17:22 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Custom BO field</title><link>http://forum.strataframe.net/FindPost3586.aspx</link><description>&lt;FONT size=2&gt;&lt;P&gt;Okay I figured it out.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/FONT&gt;&lt;FONT size=2&gt; GetCustomBindablePropertyDescriptors() &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; FieldPropertyDescriptor()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Return&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; FieldPropertyDescriptor() {&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; ReflectionPropertyDescriptor(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Ctr"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;GetType&lt;/FONT&gt;&lt;FONT size=2&gt;(boCalc))}&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;Function&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 13 Oct 2006 14:58:19 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Custom BO field</title><link>http://forum.strataframe.net/FindPost3584.aspx</link><description>Thanks, I saw that before actually. I am just not&amp;nbsp; sure how to convert that to vb.net&lt;/P&gt;&lt;P&gt;This is what I have so far but it doesnt like boCalc.&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Function&lt;/FONT&gt;&lt;FONT size=2&gt; GetCustomBindablePropertyDescriptors() &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; FieldPropertyDescriptor()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Return&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; ReflectionPropertyDescriptor(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Ctr"&lt;/FONT&gt;&lt;FONT size=2&gt;, Type.GetType(boCalc))&lt;/FONT&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;Function&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 13 Oct 2006 14:41:03 GMT</pubDate><dc:creator>Jon Olson</dc:creator></item><item><title>RE: Custom BO field</title><link>http://forum.strataframe.net/FindPost3572.aspx</link><description>Sorry, Jon, I'm just too lazy to type it again...&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost3479.aspx"&gt;http://forum.strataframe.net/FindPost3479.aspx&lt;/A&gt;</description><pubDate>Fri, 13 Oct 2006 13:14:21 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>