Home
TeamSite
TeamSite, LiveSite and OpenDeploy
onReplicantBeforeAdd & onReplicantAdd on same event ?
Andy Knipp
I need to either not allow a replicant to be added or change it when it is added. I was hoping to do this:
IWEventRegistry.addItemHandler("/Root/Container/TextField", "onReplicantBeforeAdd", checkReplicantIsValid);
IWEventRegistry.addItemHandler("/Root/Container/TextField", "onReplicantAdd", checkReplicant);
The first event fires but not the second (even when the onReplicantBeforeAdd returns true and it does add the replicant. Basically the 2nd event needs to adjust the items in the container.
If this is not supported/doesn't work then I guess I will use the 2nd event and remove the replicant that was added. Prefer not to, any ideas ?
Closing thread it is OnReplicantAdded
Find more posts tagged with
Comments
There are no comments yet