none
Office.EventType.BindingDataChanged doesn't fire RRS feed

  • Question

  • I working o Word app using Office.js.  I'm trying to read the data from a binding that has changed.  BindDataChanged event is never fired when I make changes data of the binding.  TheBindingSelectionChanged works, just not the BindDataChanged.  Any help would be greatly appreciated.

    Below is my code:

    function handleAttachListener() { Office.select("bindings#myBinding").addHandlerAsync( Office.EventType.BindingSelectionChanged, onBindingSelectionChanged); Office.select("bindings#myBinding").addHandlerAsync( Office.EventType.BindingDataChanged , onBindingDataChanged); } function onBindingSelectionChanged(eventArgs) { write(eventArgs.binding.id + " has been selected."); } function onBindingDataChanged(evenArgs) { write("in onBindingDataChanged"); write(eventArgs.binding.id); eventArgs.binding.getSelectedDataAsync("text", function (asyncResult) { write(asyncResult.value); }); }

            function write(message) {
                $("#output").append(message + "<br>");
            }


    Friday, October 4, 2019 8:16 PM