I've not tried to use them, but have you confirmed they are available for TagUI? Not all FormAPI methods are.I recall one of the manuals mentioned methods that were only available for DCFs and not supported on TagUI. Unfortunately, I can't recall which manual that was.
Are you using the New TagUI - or the old Set Metadata interface for tagging things?I know the thread subject says "TagUI" - but some folks mistake one for the other. The items specified sound very much like they'd either be for the new TagUI or perhaps MetaTagger - I don't believe those are FormsPublisher functions as FormsPublisher doesn't generally have 'Append' or 'Replace' functions. (I haven't done much with TagUI in a while, nor MetaTagger in a longer while, so I cannot say for sure about the above)
* onAfterItemAppend* onAfterItemReplace* onBeforeItemAppend* onBeforeItemReplaceThe problem is... I cant get any of them to fire.
Going back to original post ...How are you trying to get them to fire?I presume they only fire based on certain actions taken through the UI - actions which probably only exist when tagging multiple files at once.The more detailed you are about the actions you're going through to reproduce the problem - the better chance someone else (who has time) can try to reproduce it on their system.
IWEventRegistry.addItemHandler("/record/location/item_name","onAfterItemReplace",handlerName);function handlerName() { alert("Hi ghoti");}
[...]And when you click "copy to all" and the item you specify in the event handlers is updated, the handler should be called. I did not have any luck doing so and an well versed in FormAPI. IWEventRegistry.addItemHandler("/record/location/item_name","onAfterItemReplace",handlerName);function handlerName() { alert("Hi ghoti");}
function init() { IWEventRegistry.addItemHandler("/record/location/aaa","onAfterItemReplace", handler1); IWEventRegistry.addItemHandler("/record/location/bbb","onAfterItemAppend", handler2); IWEventRegistry.addItemHandler("/record/location/ccc","onBeforeItemReplace", handler3); IWEventRegistry.addItemHandler("/record/location/ddd","onBeforeItemAppend", handler4);}function handler1(item) { alert("1: " + item); return true;}function handler2(item) { alert("2: " + item); return true;}function handler3(item) { alert("3: " + item); return true;}function handler4(item) { alert("4: " + item); return true;}