Business Object's FieldNames Enumeration v. Custom Field Properties


Author
Message
Alex Luyando
Alex Luyando
Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)Advanced StrataFrame User (682 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 1.2K
Hi all -



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...





if (e.FieldChanged == boITransactions.boITransactionsFieldNames.Override_Flag)

....





It's looking to me, however, like CFPs are not part of the enumerated business object fields? Is that correct?



TIA


________________
_____/ Regards,
____/ al
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)StrataFrame Developer (37K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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.



For example, in the Set of the CFP, you would call your custom method / event. This is ultimately all that the field events do.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search