Coder Social home page Coder Social logo

Comments (3)

davidchesnut avatar davidchesnut commented on July 29, 2024

Hi @nvazhayil,

I suspect you are running into a bug where Office sends the same event.source.id no matter which button you click on. This only happens on the web. I wrote a function named runRibbonAction in the commands.js file which checks event.source.id and because it is always btnSubmit that is the only function called.

This is because I mapped all actions for all buttons in the ribbonJSON.js to idRibbonAction. Mapping all the buttons to a single action is what confuses Office in the case of web. The workaround is to instead create a separate action for each button. You'd need an idRibbonSubmit, idRibbonRefresh and so on in the "actions" section of the JSON and map each button to each individual action.

There's a fix in the works so that the original code in this sample will work on the web, but if it looks like that will take awhile, I'll update this sample to avoid creating any confusion.

Hope this helps!
David

from office-add-in-samples.

nvazhayil avatar nvazhayil commented on July 29, 2024

Hi David,

Are there any logs that are created/updated for this feature? I intend to use contextual tabs extensively. It will be helpful if there is a logging mechanism that captures issues if any.

Thanks.

from office-add-in-samples.

davidchesnut avatar davidchesnut commented on July 29, 2024

Hi @nvazhayil,

Just wanted to let you know this has been fixed. Can you please let us know if you are still seeing any issues? Sorry for the late follow-up on this. To answer your question on logging bugs, we track all customer reported bugs at https://github.com/OfficeDev/office-js/issues. If you find anything that looks like a bug, please let us know at https://github.com/OfficeDev/office-js/issues. Thanks!

from office-add-in-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.