﻿<?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?)  » Business Object's FieldNames Enumeration v. Custom Field Properties</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 16 Sep 2026 21:44:31 GMT</lastBuildDate><ttl>20</ttl><item><title>Business Object's FieldNames Enumeration v. Custom Field Properties</title><link>http://forum.strataframe.net/FindPost23259.aspx</link><description>Hi all -&lt;br&gt;
&lt;br&gt;
I have a few Custom Field Properties, and am using a single FieldPropertyChanged() event. I wanted to test the incoming e parameter with something like...&lt;br&gt;
&lt;br&gt;
[codesnippet]&lt;br&gt;
if (e.FieldChanged == boITransactions.boITransactionsFieldNames.Override_Flag)&lt;br&gt;
   ....&lt;br&gt;
[/codesnippet]&lt;br&gt;
            &lt;br&gt;
It's looking to me, however, like CFPs are not part of the enumerated business object fields? Is that correct? &lt;br&gt;
&lt;br&gt;
TIA&lt;br&gt;</description><pubDate>Mon, 01 Jun 2009 08:25:38 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Business Object's FieldNames Enumeration v. Custom Field Properties</title><link>http://forum.strataframe.net/FindPost23294.aspx</link><description>Thanks Edhy and Trent (and sorry I didn't reply earlier to your reply, Edhy). &lt;br&gt;
&lt;br&gt;
I am using a single event to handle field changes, and need to test if the event was raised by changes to any of several business object fields in order to call/not call a method for additional data processing. &lt;br&gt;
&lt;br&gt;
Most of the fields I am testing are fields created by the BOM so I test using the &lt;myBO&gt;FieldName. enumerations v. e.FieldChanged. For the two Custom Field Properties I need to hard-code the test for the CFPs' fieldnames (not a biggie) and use the CFPs' SET( ) to trigger the call to the same method that the FieldChanged( ) handles for the BOM fields. It just means for two paths for maintenance if column/field names are changed in the future--one for BOM fields, another for CFPs. Don't love it, but it's ain't the worse thing I've seen. &lt;br&gt;
&lt;br&gt;
Overall it's all good! &lt;br&gt;
________________&lt;br&gt;
_____/ Regards,   &lt;br&gt;
____/ al      &lt;br&gt;</description><pubDate>Mon, 01 Jun 2009 08:25:38 GMT</pubDate><dc:creator>Alex Luyando</dc:creator></item><item><title>RE: Business Object's FieldNames Enumeration v. Custom Field Properties</title><link>http://forum.strataframe.net/FindPost23279.aspx</link><description>Edhy is correct in that they will not be part of that event as they are, as you mentioned, custom.  So the BO in this regard doesn't reflect over any CFPs (as this would be slow).  So you are better off creating a single method that you call or even raise the event your self as these events are created on the BO.  Most likely you will just want to create another method to funnel all calls through.&lt;br&gt;
&lt;br&gt;
For example, in the Set of the CFP, you would call your custom method / event.  This is ultimately all that the field events do.</description><pubDate>Mon, 01 Jun 2009 07:11:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Business Object's FieldNames Enumeration v. Custom Field Properties</title><link>http://forum.strataframe.net/FindPost23260.aspx</link><description>Hi Alex,&lt;br&gt;
Custom Field Properties can not be part of the BO.FieldNames enumerations because the BOM does not know anything about them, all this is hard coded by the BOM in the bo.designer file.&lt;br&gt;
&lt;br&gt;
Now can you explain in more detail what do you want to accomplish?&lt;br&gt;
&lt;br&gt;
In my case CFPs are read only and therefor will not trigger any Changed event, what is the purpose of your CFPs?</description><pubDate>Thu, 28 May 2009 16:26:25 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>