Forum Discussion
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
Hi Arg,
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.
Chris
- ArG7 years agoIdeator I
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
- ArG7 years agoIdeator I
Hi Chris,
I achieved it through server events - OnBeforeUpdate,OnAfterAdd and OnAfterUpdate.
Thanks for the suggestion.