﻿<?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 » Enhancement Requests  » BO.GetFieldDescription improvement</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 21 May 2026 17:28:04 GMT</lastBuildDate><ttl>20</ttl><item><title>BO.GetFieldDescription improvement</title><link>http://forum.strataframe.net/FindPost15893.aspx</link><description>Is nice to see that the newer versions have improvements on DDT/MS_DESCRIPTION, some time ago I post a question about it on http://forum.strataframe.net/Topic10737-13-1.aspx and Ben say that DDT not support it yet.&lt;br&gt;
These days, I try to get the MS_description to set column headers descriptions automatically from it and some sort of this stuff. I see that the DDT imports it, the BOMapper Map it to an "Description" attribute of the property of the field. Now I Try to get it with the "GetFieldDescription" method of the businessobjects&lt;br&gt;
&lt;br&gt;
I see the help (2 hours later that I was implement it :w00t:) to see that it exist, this say:&lt;br&gt;
&lt;br&gt;
[quote]GetFieldDescription Method (FieldName)&lt;br&gt;
--------------------------------------&lt;br&gt;
Returns the extended description for a field name (i.e. Customer's Last Name) from the description attribute on the field property. [b]If the Description() attribute is missing, the actual field name will be returned[/b]. &lt;br&gt;
[/quote]&lt;br&gt;
I see that all the properties that map fields from BO have a Description attribute, but when MS_Description doesn't have a value, this value are "" (Empty), and when I call MyBO.GetDescription I get a empty value (and not the one from the MyBo.somefieldname)&lt;br&gt;
&lt;br&gt;
I "fix" that with this code:&lt;br&gt;
MyDescription = _MyBO.GetFieldDescription("MyField") '&lt;-- it retrieve a empty value&lt;br&gt;
If String.IsNullOrEmpty(MyDescription) Then&lt;br&gt;
      MyDescription = _MyBO.GetPropertyDescriptor("MyField").DisplayName&lt;br&gt;
End If&lt;br&gt;
&lt;br&gt;
It worked Ok, but I suppose that it is good that if GetFieldDescription detect a empty description atttibute, it retrieve the "somefielname" property string :) &lt;br&gt;
&lt;br&gt;
Thanks for the great support :) &lt;br&gt;
&lt;br&gt;
Fabian.</description><pubDate>Fri, 25 Apr 2008 13:49:50 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: BO.GetFieldDescription improvement</title><link>http://forum.strataframe.net/FindPost15901.aspx</link><description>I known this and this is awesome :) but I was try to say that when It not have a description (it leave blank) and the MS_Description is blank, the BO Mapper create an empty "Description" attribute on the field properties, and then the method GetFieldDescription of the created business object retrieve an empty string ("") and not the fieldname. :) only this, I fixed that with the previosly posted "fix" but only post it. &lt;br&gt;
&lt;br&gt;
I like to generate automatic code witout creating a table dictionary to tables, and tt is great that the MS_Description is imported on DDT / BOM, I don't need really more that it  :)&lt;br&gt;
&lt;br&gt;
Thanks Trent for the fast fastest response.</description><pubDate>Fri, 25 Apr 2008 13:49:50 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: BO.GetFieldDescription improvement</title><link>http://forum.strataframe.net/FindPost15895.aspx</link><description>You can already do this.&amp;nbsp; It was an enhancement that was released with the 1.6.5 build.&amp;nbsp; If you open up the customization for a field within the BO Mapper, you can override the field level description with any value regardless of the database.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/2a42edfe-0009-45d2-81cd-9a97.png"&gt;</description><pubDate>Fri, 25 Apr 2008 13:26:32 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>