Comments (10)
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.
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.
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.
Internal bug# 3281128
from excel-custom-functions.
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.
@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.
We are working on the documentation and release for insiders right now :)
from excel-custom-functions.
@davidchesnut Any update on this? Thanks.
from excel-custom-functions.
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.
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)
- Custom functions do not run unless I press Enter HOT 5
- How to create an add-in with custom functions HOT 1
- How create a custom function for excel
- console.log() for a Custom Function in Shared Runtime goes nowhere HOT 2
- Custom Function Auth Bearer Token POST requests do not work HOT 26
- Can browserslist be updated beyond ie 11 HOT 3
- [Help] how to combine Angular template with custom functions HOT 9
- Custom function not loading HOT 19
- Cells with custom functions not calculating / refreshing on opening the workbook HOT 2
- Custom functions with TODAY() autorefresh when unrelated cells change HOT 1
- Express with Custom function HOT 4
- Sample function is slow to execute HOT 8
- Test scripts are not removed from package.json in custom function projects HOT 1
- Custom Function gets stuck on BUSY after correcting an error in Excel for Web HOT 7
- Module 'request' (used in test) is depreicated and has a vulnerability
- Javascript function making an api call to http://localhost:8080 vs https://app.mydomain.com
- Default project generated using `yo office`has invalid manifest because it uses name instead of GUID as ID HOT 7
- Custom function cache issues HOT 1
- CustomFunctions StreamingInvocation with websocket not working after websocket disconnected
- Issue with custom functions in web excel deployed as custom apps in admin center HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excel-custom-functions.