Popup window inside a task pane add-in - ms-office

I have a task pane add-in in Office.
I have an item in the task pane, and a delete button. Now, when users click on the delete button, I want to pop up a small window to ask if users are sure about the deletion. If yes, we continue; if no, we go back to the current page.
It is like the Window confirm() method for a web page.
Does anyone know how to pop up this small window in the task pane add-in?
Additionally, if I want users to choose an option in this popup window (eg, choosing a colour between blue or red) before continuing (let's forget yes or no), how could we realise this? More generally, is it possible to create a custom confirm box?

As you design and build web apps for Office 365 or add-ins for Office and SharePoint, you can take advantage of the Office UI toolkit to make your experience look and feel like Office. The Office UI toolkit has key plug and play components that will make it easy to create web experiences that connect to and integrate with Office.
One of the controls offered by Office Fabric JS package is Dialog which has a lot of customization. I believe you'll find one suitable for your task.
Yet another option is to use any UI package which has variety of UI controls, for example jQuery mobile. And finally you may just write your own control.

Related

Designing a ribbon button in OfficeJs using manifest

Is it possible to add spacing in between ribbon buttons? I cant seem to design the ribbon in anyway and am constricted to OfficeJs standards.
I would like to design my ribbon, I am currently developing using AngularJS and have created my own custom ribbon but still cant design or add spacing on my buttons.
You can place any controls for your custom ribbon on the task pane. But ribbon customizations in Office applications (made by web add-ins) allow the following control types:
Simple buttons - trigger specific actions.
Menus - simple menu dropdown with buttons that trigger actions.
There is no property for configuring spaces and etc. Read more about possible ribbon customizations in the Add-in commands for Excel, PowerPoint, and Word article.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.

How to show Taskpane selected data in ribbon command using officejs

We are populating list of users in dropdown list Task pane UI. When we are selecting the user in the list we were able to show selected user in taskpane itself.
Also we wanted to show the selected user in ribbon command Menu like in attached screen shot.
The screen shot which took from Excel DNA with .net application the same wanted to achieve in Excel add-in using OfficeJS.
The Fluent UI extensibility level leaves much to be a desire for Web add-ins. See Add-in commands for Excel, PowerPoint, and Word for more information.
If you need to implement dynamic ribbon customizations you need to consider developing a VSTO based add-in instead.
this feature is not yet available with add-in commands. One capability we just announced on the community call was "contextual tabs api". This will be available soon for public preview where you will be able to test it. Please stay tuned for our next community call for an update.

Custom Ribbon tab missing in Excel

I tried searching for this question but couldn't really find a similar problem.
I have an excel file in which I created a custom ribbon tab and made copies of this file.
Image of the tab
In some of those copies, the tab has gone missing. I was earlier using Excel 2016 and recently migrated to Microsoft 365 and downloaded the latest version of Office. I am not sure if this is causing the problem since some files do still have the custom ribbon.
Thanks a lot for your help in advance.
Regards
Do you get any UI errors when the tab is missed?
By default, if an add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear.
To show VSTO Add-in user interface errors you need:
Start the application.
Click the File tab.
Click Options.
In the categories pane, click Advanced.
In the details pane, select Show VSTO Add-in user interface errors, and then click OK.
If you deal with documents with embedded customizations, make sure the protected mode is off when the document is opened. See What is Protected View? for more information.

Crm Dynamics Plugin to call a contact

I am new to dynamics crm programming. Therefore I am having difficulties in understanding few basic things. I am trying to write a plug-in that would call a selected contact when a custom menu button is clicked. All I can understand is I have to create a menu button on the ribbon and handle its events however I cannot find how to create a menu button programmatically. I should be able to do this because when our software is installed and configured for a crm server the UI of the crm pages needs to be updated automatically. The flow is like this. Go to contacts, select a contact and when you click the custom menu button (should be available on the ribbon after our product's installation) the option to call home, office or mobile should be presented to the user and then the call should be placed to the contact. How can I achieve this? Is it handling the javascript events or are there any readily available API to handle the ribbon menu items?
The Ribbon is defined in the Ribbon XML of the solution. You can't programmatically create a button on the fly (although you can use javascript to hide/disable it). Try the Ribbon Editor to get your feet wet with the ribbon.
From there you can use javascript on the click of the button to perform whatever functions you need.

Multi-phase MS Office Application Level Add-Ins

I am tasked with upgrading a current add-in, and creating a new add-in for Office Excel. The requirements dictate that these solutions be implemented as application level add-ins as opposed to document-level. Each solution is isolated in a separate group within the same proprietary tab on the Office Ribbon.
Is is possible to have multiple application-level add-in solutions or must these be contained within one Visual Studio solution. If they must be contained within a single solution what would be the best practice for tabling (and hiding from the end-user) the solution that is still a work in progress? \
---APPEND---
To clarify, I will define each programmatic entity to be accomplished as a task. Each task is contained within a single group on the Ribbon. All tasks/groups are on the same custom ribbon "tab". How do I release these projects individually to end-users? I should be able to release Task-A to to end-users without worry about the status of Task-B even though they are on the same ribbon tab?
There is no issue in having all the application addin under single solution, I preferred to have it in a single solution in my projects.
With regards to hiding from the end user, if you are going for Click once deployment then just publish the addins which are ready for release. Even if you go for MSI you should be able to do the same by deploying only the addins which are ready to release.
You could also hide the ribbon tabs if they are not completed yet. Hope this answers your question.
Reply to your Appended Question:
In our project we just hide the buttons from the ribbon by setting Visible = False so that the QA or enduser could not be able to see this hidden button. Eventhough there is unfinished/untested code they are never invoked.

Resources