Business Object's FieldNames Enumeration v. Custom Field Properties


Author
Message
Alex Luyando
Alex Luyando
StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 reputation)StrataFrame User (298 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
Replies
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Alex,

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.



Now can you explain in more detail what do you want to accomplish?



In my case CFPs are read only and therefor will not trigger any Changed event, what is the purpose of your CFPs?

Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K 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