GithubHelp home page GithubHelp logo

Comments (10)

akrantz avatar akrantz commented on September 14, 2024

Yes, AsyncStorage can be used to write the configuration info from the taskpane code and then be read from the custom functions code.

You need to bundle the JavaScript for custom functions into a single file. The code here uses webpack for this.

from excel-custom-functions.

alaincao avatar alaincao commented on September 14, 2024

Ok, I see, that's what I feared. Thank you for the response.

So my question becomes: will there ever be some kind of "push notifications" between the CustomFunctions and taskpane contexts like Office.context.ui.messageParent() that is used between popup windows and their parent?

Sorry, another one: where are stored the AsyncStorage values (when used from the online Excel) ?
In the browser's local storage or would it require some HTTP requests to some server ?
i.e. what would be the performance impact of using them / what would be the stored values lifetime?
I haven't found an answer to this in the documentation.

from excel-custom-functions.

keyur32 avatar keyur32 commented on September 14, 2024

Hi @alaincao, yes, we are working on a 'dispatch' model so you don't have to continuously poll. This will be a way to send messages and won't persist to disk. We'll share info during our Custom Functions call, but will not on our V1. Fill this out if you want to join our weekly call and I'll reach out: https://aka.ms/customfunctionscall.

On Excel Online (and currently on Mac), AsyncStorage uses the browsers localstorage. I'll make a note for @davidchesnut / @mscharlock to add this to docs. thanks!

from excel-custom-functions.

Reezaali avatar Reezaali commented on September 14, 2024

Internal bug# 3281128

from excel-custom-functions.

davidchesnut avatar davidchesnut commented on September 14, 2024

Just an update that we published info about the Storage object usage of browser localstorage on the Mac (around May 1). See https://docs.microsoft.com/office/dev/add-ins/excel/custom-functions-save-state. @keyur32 I'll remove myself from the assignee list on this issue. Thanks!

from excel-custom-functions.

zliebersbach avatar zliebersbach commented on September 14, 2024

@keyur32 Thanks for the updates on this issue! Just wondering what the current status is on the new "dispatch" model? We have some functionality ready to go with this feature 🙂

from excel-custom-functions.

keyur32 avatar keyur32 commented on September 14, 2024

We are working on the documentation and release for insiders right now :)

from excel-custom-functions.

ElizabethSamuel-MSFT avatar ElizabethSamuel-MSFT commented on September 14, 2024

@davidchesnut Any update on this? Thanks.

from excel-custom-functions.

davidchesnut avatar davidchesnut commented on September 14, 2024

Hi @alaincao, following up on this thread, we have a preview feature that allows you to put the custom functions in the same context as the task pane, so they are both effectively using the same DOM. You can then share data or call functions as needed. For more information see Tutorial: Share data and events between Excel custom functions and the task pane (preview). This is the planned solution to your question going forward. Please let us know if you have any feedback on this approach. Thanks!

from excel-custom-functions.

keyur32 avatar keyur32 commented on September 14, 2024

Marking closed as it looks to not have had any response since last note. Please re-activate if further help is still needed. The feature David mentioned above, was using the Shared Runtime, and is also now generally available. Thanks!

from excel-custom-functions.

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.