﻿<?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?)  » GetCustomBindablePropertyDescriptors</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 08:51:15 GMT</lastBuildDate><ttl>20</ttl><item><title>GetCustomBindablePropertyDescriptors</title><link>http://forum.strataframe.net/FindPost11317.aspx</link><description>I am attempting to create a custom field on a BO that consists of 2 columns, the persons first name&amp;nbsp;and the persons&amp;nbsp;last name.&lt;/P&gt;&lt;P&gt;I have created the custom field property as...&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt; FirstAndLastName&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;/summary&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;///&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#808080 size=2&gt;&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;[&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Browsable&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT size=2&gt;),&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;BusinessFieldDisplayInEditor&lt;/FONT&gt;&lt;FONT size=2&gt;(),&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Description&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"FirstAndLastName"&lt;/FONT&gt;&lt;FONT size=2&gt;),&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DesignerSerializationVisibility&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DesignerSerializationVisibility&lt;/FONT&gt;&lt;FONT size=2&gt;.Hidden)]&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt; FirstAndLastName&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;get&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;{&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; (System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.CurrentRow[&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"FirstName"&lt;/FONT&gt;&lt;FONT size=2&gt;] + &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;" "&lt;/FONT&gt;&lt;FONT size=2&gt; + (System.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;String&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.CurrentRow[&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"LastName"&lt;/FONT&gt;&lt;FONT size=2&gt;];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;But, I'm having issues with creating the discriptor.&amp;nbsp; The problem is that when I run the form, I get a null reference exception.&amp;nbsp; The code I'm using (straight from other examples) appears to be missing something...&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&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;override&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;FieldPropertyDescriptor&lt;/FONT&gt;&lt;FONT size=2&gt;[] GetCustomBindablePropertyDescriptors()&lt;/P&gt;&lt;P&gt;{&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; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;FieldPropertyDescriptor&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; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;ReflectionPropertyDescriptor&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"cust_fullname"&lt;/FONT&gt;&lt;FONT size=2&gt;, GetType()) };&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;The problem appears to be in the GetType method.&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; I know this has to be a simple one.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 05 Sep 2007 08:58:15 GMT</pubDate><dc:creator>Doug Birtell</dc:creator></item><item><title>RE: GetCustomBindablePropertyDescriptors</title><link>http://forum.strataframe.net/FindPost11341.aspx</link><description>Yep, syntax is different for C#... typeof(Type), not GetType(Type).</description><pubDate>Wed, 05 Sep 2007 08:58:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: GetCustomBindablePropertyDescriptors</title><link>http://forum.strataframe.net/FindPost11327.aspx</link><description>LOL....not at all...I figured you would see it pretty quick...and I was right :D</description><pubDate>Tue, 04 Sep 2007 14:16:53 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: GetCustomBindablePropertyDescriptors</title><link>http://forum.strataframe.net/FindPost11318.aspx</link><description>Never mind.&lt;/P&gt;&lt;P&gt;I'm an idiot.</description><pubDate>Tue, 04 Sep 2007 12:36:25 GMT</pubDate><dc:creator>Doug Birtell</dc:creator></item></channel></rss>