Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Caller.address should also provide the workbook name #137

Closed
TheWass opened this issue Apr 15, 2019 · 3 comments
Closed
Assignees
Labels
Type: product feature request Office JS feature request that should be posted to UserVoice

Comments

@TheWass
Copy link

TheWass commented Apr 15, 2019

I'm working on a set of Custom Functions which needs to store data tied with an individual document. There currently is the AsyncStorage feature to interlink with the Taskpane, and the Taskpane can grab the settings data off of the document. However, the AsyncStorage is shared across all documents. Having a document identifier would allow data in AsyncStorage to be tied to specific documents.

Could you add a document ID or similar mechanism which uniquely identifies the document that the custom function is running on?

@keyur32
Copy link
Collaborator

keyur32 commented Apr 17, 2019

Thanks. We will consider this, I see how the caller.address capability doesn’t include the workbook name so becomes hard to create the association. One idea could be to set a key in async storage for the value you want to store. On the taskpane you could also write that key to the document settings object and retrieve it afterwards.

@TheWass
Copy link
Author

TheWass commented Apr 18, 2019

Thanks for your response! I had considered that, and I'll probably go with that solution for the time being, the trouble occurs when you have multiple workbooks open simultaneously. All of the workbooks read from the same Async storage. The dispatch feature you mentioned here will also help in that endeavor.

@keyur32 keyur32 self-assigned this May 1, 2019
@keyur32 keyur32 added the Type: product feature request Office JS feature request that should be posted to UserVoice label May 1, 2019
@keyur32 keyur32 changed the title Feature request: Document Identifier Feature request: Caller.address should also provide the workbook name May 1, 2019
@keyur32 keyur32 assigned RuoyingLiang and unassigned keyur32 Oct 31, 2019
@keyur32
Copy link
Collaborator

keyur32 commented Jul 30, 2020

Closing this issue for now. Since you can now get the worksheet name via the Shared Runtime (initialize your taskpane, get worksheet name, save it to a global, and then access it from your function).

@keyur32 keyur32 closed this as completed Jul 30, 2020
millerds added a commit to millerds/Excel-Custom-Functions that referenced this issue Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: product feature request Office JS feature request that should be posted to UserVoice
Projects
None yet
Development

No branches or pull requests

3 participants