I have an Outlook Add-in created with VSTO. Using the Ribbon Designer I have created a tab with three buttons on it. (Environment: Outlook 2010, .NET 4.0, VSTO latest runtime)
When one of the buttons is pressed a modeless dialog is opened. As long as the user is working on this dialog I do not want him to be able to press the button again. So basically I want to gray out the button till the dialog is closed. How can I do this?
For whatever reason, in the button click handler, if I do this.button1.enabled = false; it is just not working. Am I missing something about the way ribbons work.
Thanks
You need to re-render the control using IRibbonUI.InvalidateControl(controlID) or IRibbonUI.Invalidate(). See MDSN on how to dynamically update the Fluent UI for reference. This is done for performance reasons so that you can change all your Fluent UI settings and then re-render all control changes at once. However, if you are only changing one UI element (as you indicate) this can seem confusing and unnecessary.
Related
I am developing an Outlook Web Addin using Fabric UI.I have run into couple of issues which are given as follows:
The following is my outlook web addin screen shot:
1:
Issue #1 : I do not have access to addin title "My Test Outlook Web Addin" from within my code. I want to change the CSS properties of the title but I do not seem to have access. This title is defined in an XML file.
Issue #2: I have "Save" and "Cancel" buttons. In their call backs I need to perform some task and close the addin dialog. But I am not able to close the addin dialog. I can close the addin by clicking 'X' icon on the top, but not from within my code.
Issue #3, How to get file types icon with plane JS? (https://developer.microsoft.com/en-us/fabric#/styles/web/file-type-icons)
I am not using React or AngularJS. I am using Core fabric UI with plane JS.
Any help on these issues and on how to control properties of outlook web addin is highly appreciated.
Thanks!
For Issue #1: It is currently not possible to change the styling of the title bar. We track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered when we go through our planning process.
For Issue #2: You can use the closeContainer API to close the add-in task pane.
I am writing an Outlook Add-In (Web version, Desktop) and so far I was able to add a link to my app in the contextual menu (see screenshot below - highlighted in yellow). This work well, but it is almost impossible to find the add-in and this is resulting in a ton of customer support calls. I was wondering if there is a way to add the button next to "Send", "Discard", or after the "Elipsis" buttons. This way the add-in would be more visible.
I was thinking about directly modifying the DOM if it is not possible, but I would prefer to not do that.
You can add a button there neither from a web based JS addin nor from a COM based addin for the desktop version of Outlook.
I'm working on an Outlook 365 Add-in. I have a working Manifest XML that shows an icon with the icon responding to a function click. How would I go about adding a checkbox to the compose new email ribbon to the right of the button similar to the example below? I know how to do this VSTO, but looking how to do this using the Office 365 Add-in Javascript implementation. Thanks for any help!
The developer wants to create a ribbon button with checkboxes on it. Unfortunately - this is not possible through office-js manifests.
You can check the add-in commands (ribbon buttons for office-js) documentation from here: https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/design/add-in-commands.md
From the documentation:
Control types
Simple buttons - trigger specific actions.
Menus - simple menu
dropdown with buttons that trigger actions.
That capability doesn't exist today in office-js framework.
I would like to put an image banner on one of my WiX dialogs that when clicked opens a web page for our product support, in case users have trouble with the installation. I think I know how to open the web page but the problem is registering the click event. Is there a way to do this?
From my own attempts I've concluded that a "bitmap" type control won't let you detect clicks. Do I have any other options, like making a pushbutton with a picture on it and hiding the borders so it looks good? I've not been successful with this.
I'm using WiX 3.5.
I think you can't do what you want with internal MSI UI for which WiX provides interface.
You can create a button with image on it but you can't hide the borders of the button.
Starting from Windows Installer 4.5, there's ability to include custom UI elements, see Using an Embedded UI for reference. Another option is using External UI, where you develop UI as a regular application and handle notification messages from MSI.
This is probably one of those questions with an obvious answer, but when I customize a form in CRM it appears in a pop-up without toolbars.
How can I enable the IE toolbar so that it will enable me to easily determine the html elements I need to manipulate in the Javascript?
I'm using IE7 by the way.
Cheers,
Peter.
Hit F11, copy the full url, open new IE window (with toolbars and such) paste url.
Also, make sure that under Settings->Administration->System Settings->Customization "Open Microsoft Dynamics CRM in Application Mode" is unchecked.
Application Mode will always try to hide toolbars and menus.