Closed gerrychong closed 3 years ago
@lliu113 Lillian is this your area? Please let me know if I need to reassign! Thanks in advance, double EL
@gerrychong - sorry for the late response to this! I took a look at your manifest, there seems to be nothing wrong with the context menu portion but the manifest itself has issues (e.g. schema violations).
The manifest you used has since been deleted, my guess is that it was stale. Let me follow-up internally to see if there is a better add-in template for you to use.
Thanks! Lillian
@gerrychong here is more info on the error you hit - https://docs.microsoft.com/en-us/office/dev/add-ins/testing/troubleshoot-development-errors?view=excel-js-preview#getting-error-this-add-in-is-no-longer-available
@gerrychong - I'm going to go ahead and close this issue for now. Please reactivate if you have any additional questions. Thanks!
In response to the issue I was having Angela from MS provided me with these working examples:
This one adds a parent menu with children to the cell context menu :
</ExtensionPoint>
<bt:Images>
<bt:Image id="icon1_16x16" DefaultValue="https://wikipedia.firstpartyapps.oaspapps.com/wikipedia/images/wikipedia_32x32.png"></bt:Image>
<bt:Image id="icon1_32x32" DefaultValue="https://wikipedia.firstpartyapps.oaspapps.com/wikipedia/images/wikipedia_32x32.png"></bt:Image>
<bt:Image id="icon1_80x80" DefaultValue="https://wikipedia.firstpartyapps.oaspapps.com/wikipedia/images/wikipedia_32x32.png"></bt:Image>
</bt:Images>
<bt:ShortStrings>
<bt:String id="residLabel" DefaultValue="Wikipedia Menu"></bt:String>
<bt:String id="residLabel2" DefaultValue="Wikipedia Button"></bt:String>
</bt:ShortStrings>
and a slight variation adds a single menu button (note that this one the control added is a 'button' and not a 'menu'.
I had done the exact same thing as the second option and it had not worked, but it ended up that I was naming my resid's MenuLabel and MenuDescription, when I changed the above to use these resid's it also stopped working.. weird. But I wanted to put these working examples here for anyone that finds this issue is a search
An error occurred when I tried to use this manifest item https://docs.microsoft.com/en-us/office/dev/add-ins/reference/manifest/extensionpoint
Expected Behavior
ContextMenuCell - Displays the item on the context menu when the user opens the context menu (right-clicks) on a cell on the spreadsheet
Current Behavior
Unable to run while creating ContextMenuCell
Steps to Reproduce, or Live Example
yo office ->Office add-in Task pane project using React framework->TypeScript->Excel->(Insert ExtensionPoint creating OfficeMenu) `
VS CODE :npm start Error:This add-in is no longer available:add-ins inserted during development are only available during debugging from Visual Studio. Please open your project in Visual Studio and re-run your application, or deploy your add-in into a valid catalog and re-insert.
Your Environment
Manifest.xml
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
`