It is not documented and I am worried that it is impossible, but how can I automatically change the selection on a choice object using FormAPI. For an orcontainer, there is an optional second parameter to the addInstance method that does it, but it seems that there is no equivalent for choice. Anyone have any idea? Or even a hack?TS 6.7.1, Solaris 9
For anyone else facing this, I have a durty hack that seems to be effective:function changeChoice(item, choiceName) { top.datacapture.handleOrPopupChoice(item.itemImpl.instanceID, choiceName, false);}And to catch events when a new choice is selected:top.getDCFrame().formframe.document.getElementById("or_addmenu_" + choiceItem.itemImpl.instanceID).onclick = myHandlerFunc;
Boris, no that doesn't work. Changing the choice option does not trigger any events. I tried them all. NB to all Templating developers: always use orcontainers and never use choice!!