﻿<?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 » WinForms (How do I?)  » Custom Field property c# - getting the table based bo to see the column</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 01:14:55 GMT</lastBuildDate><ttl>20</ttl><item><title>Custom Field property c# - getting the table based bo to see the column</title><link>http://forum.strataframe.net/FindPost30844.aspx</link><description>&lt;span&gt;:w00t:&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;I'm missing something basic.&amp;nbsp; I have a CFP. Is there anything wrong with this? ( the four columns referenced are part of the BO )&lt;br/&gt;&lt;br/&gt;After this BO is populated from a browsedialog, should I see a mykey column populated as shown below?&amp;nbsp; &lt;br/&gt;&lt;br/&gt;If not, what do I have to do to make that happen?&amp;nbsp; &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[code]&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #region Custom Field Properties&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Description("mykey"), Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string mykey&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; get&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string _mykey = this.Symbol + this.Cntry_code + this.from_date.ToString() + this.thru_date.ToString();&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _mykey;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; }&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Provider property descriptors for the custom bindable fields&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override FieldPropertyDescriptor[] GetCustomBindablePropertyDescriptors()&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; //-- Return the array of property descriptors&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new MicroFour.StrataFrame.Business.FieldPropertyDescriptor[] &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { new ReflectionPropertyDescriptor("mykey", typeof(boiSource100Symbology))};&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endregion&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br/&gt;[/code]&lt;/span&gt;</description><pubDate>Fri, 09 May 2014 13:21:38 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Custom Field property c# - getting the table based bo to see the column</title><link>http://forum.strataframe.net/FindPost32567.aspx</link><description>&lt;br/&gt;&lt;br/&gt;&lt;div&gt;This may work&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;a href="http://forum.strataframe.net/Topic28258.aspx?Keywords=Custom%252BField%252BProperty"&gt;http://forum.strataframe.net/Topic28258.aspx?Keywords=Custom%252BField%252BProperty&lt;/a&gt;</description><pubDate>Fri, 09 May 2014 13:21:38 GMT</pubDate><dc:creator>Danny Doobay</dc:creator></item><item><title>RE: Custom Field property c# - getting the table based bo to see the column</title><link>http://forum.strataframe.net/FindPost30849.aspx</link><description>PLEASE !&lt;span style="text-decoration: line-through;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;I have a CFP, mykey.&amp;nbsp; It works fine.&amp;nbsp; The bo sees when I use it for the the browse dialog.&amp;nbsp; When I fill the bo from the browse dialog and requery my listview the column mykey is there with the proper values.&lt;br/&gt;&lt;br/&gt;The mykey property is there on the BO with the proper value.&lt;br/&gt;&lt;br/&gt;BUT there is no column in the datatable, the currentdatatable or the tableview, so I cannot navigate in the business object to the row with the value I seek in mykey.&amp;nbsp; (Again, I am trying to navigate in the BO based on moving in the listview.&amp;nbsp; Like autonavigate except I can't use that here as it wan't a PK and this bo has a 4 column compound pk which is why i am doing this in the first place)&lt;br/&gt;&lt;br/&gt;If I base my BO on a view,&amp;nbsp; so I can manufacture the column, how do I use the BO for CRUD?&amp;nbsp; &lt;br/&gt;&lt;br/&gt;I imagine I could use getenumerable and iterate the BO looking for the property, but that seems pretty ugly.&lt;span style="text-decoration: line-through;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;Is there are good place to slap an additional column on the BO right after it instantiates so the CFP has a place to put the data?&lt;span style="text-decoration: line-through;"&gt;&lt;br/&gt;&lt;/span&gt;</description><pubDate>Fri, 03 Feb 2012 08:36:58 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Custom Field property c# - getting the table based bo to see the column</title><link>http://forum.strataframe.net/FindPost30848.aspx</link><description>Thanks, Eddy,&amp;nbsp; I think I'll try the Currentrow thing as I seem to remember that was the way to make it work ( boy it's been a long time since i did serious SF )</description><pubDate>Thu, 02 Feb 2012 18:16:36 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Custom Field property c# - getting the table based bo to see the column</title><link>http://forum.strataframe.net/FindPost30847.aspx</link><description>[quote][b]Charles R Hankey (2/2/2012)[/b][hr]The problem I'm seeing is that my currentview for the BO does not have the mykey column.&amp;nbsp; I thought creating the CFP would create that column in the view??[/quote]&lt;br/&gt;It should have the CFP.&amp;nbsp; Put a break in the CFP Get and see what are the values of&amp;nbsp; &lt;span style="font-family: monospace;"&gt;&lt;/span&gt;this.Symbol, this.Cntry_code,&amp;nbsp; this.from_date.ToString() and&amp;nbsp; this.thru_date.ToString()&lt;br/&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl03_lblFullMessage"&gt;&lt;/span&gt;If you don't get any value, see if the BO has any record, if so, try using this.CurrentRow.Item("Symbol") instead of the property.</description><pubDate>Thu, 02 Feb 2012 17:31:58 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Custom Field property c# - getting the table based bo to see the column</title><link>http://forum.strataframe.net/FindPost30846.aspx</link><description>The problem I'm seeing is that my currentview for the BO does not have the mykey column.&amp;nbsp; I thought creating the CFP would create that column in the view??</description><pubDate>Thu, 02 Feb 2012 17:17:52 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Custom Field property c# - getting the table based bo to see the column</title><link>http://forum.strataframe.net/FindPost30845.aspx</link><description>Hi Charles,&lt;br/&gt;&lt;br/&gt;Sorry, but I don't see anything wrong with the CFP.&amp;nbsp; Check your Browser Dialog, it should work straight forward.&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;</description><pubDate>Thu, 02 Feb 2012 16:15:27 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>