Just based on your description, my guess is that the OnEditFinish event is going to be best suited for your use case. However, could you elaborate a bit more on exactly what you'd like this method to do?
Aras Labs Software Engineer
Thanks Chris for the reply.
I have a 3 Fields on form corresponding to 3 properties.
data type of property 1 is "Item"
data type of property 2 is Foreign which is pointing to some property of Property 1
Data type of property 3 federated
I need to populate property 2 value on property 3. I was trying with field event of property 2 (on change) to populate value of property 2 on property 3. But since it is foreign , it is disabled. Field events doesn't work.
Same thing i tried with property 1, but that is search dialog where field event doesn't serve the purpose.
Now, trying with Property events, where only onsearchdialog is getting triggred on property 1.
I hope this gives clarification.
Any suggestion chris.
Thanks in advance
I'm not sure I fully understand this use case. Typically, foreign and federated properties are disabled entirely since the data is pulled from another source. These properties are never "edited" because they don't really hold the value themselves. Because of this, you won't be able to launch any edit events from these properties.
If you're trying to do some kind of validation of the data for your foreign and federated properties, you will need to add your edit events onto the data source of these properties.
I agree with you on foreign and federated property.
In use case above, as foreign property is from Property 1 which is of datatype Item which supports field events and can be edited by selection through search dialog or simply entering text(keyed_name).
Field events work good when text is entered but when value is changed by selecting a item through search dialog, field events not serving the purpose.
The same i was trying with property event. Only onsearchdialog event - method is getting triggred. Other events like onedit,oneditfinish or oncellchange not getting triggred.
Hope it gives clarification
I would expect that the event would fire even if the value was being populated from a search dialog. I'll file this as an issue internally. For the time being, I'd recommend finding an alternative approach to accomplish the same functionality you're looking for.
If you're trying to do some kind of validation of the data, it might be better to simply limit the items that a user can select from in the search dialog. You can look at this blog post for some examples of how to do this kind of filtering of a search dialog.
It might also be better to handle this inside of an onBefore or onAfterUpdate server event. Using a server event will also help run the logic if the item ever gets edited from some other server method or from another application.
Server events sounds good.
Event is not getting triggered when populated through search dialog.
I was not trying to restrict value but get the value when user finishes the selection. I will try with server events.
Thanks for help and please let me know if there is way out through Field/Property events as well