I have an Access database with the following ribbon XML:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" loadImage="LoadImages">
<ribbon startFromScratch="false">
<contextualTabs>
<tabSet idMso="TabSetFormReportExtensibility">
<tab id="tabContextual" label="My Contextual Tab">
<group id="contextualGroup" label="My Group">
<labelControl id="myLabels" label="Sample"/>
<button id="btnDemo" size="large" label="Demo"/>
</group>
</tab>
</tabSet>
</contextualTabs>
</ribbon>
</customUI>
My understanding is that this particular ContextTab will show when a form is opened but I cannot get any ContextTabs to show when I open any form at all.
Is my understanding wrong or is there an error in the XML?
Also, should this code indeed show a ContextTab when a form is opened, how would you show a different context menu for a different form? As I see it, the XML above will open that ContextTab when any form is opened and that appears to be driven by the ribbon so how does the ribbon decide which ContextTab to open for which form (should there be more than one ContextTab defined!!).
Thanks
First of all, make sure that your custom ribbon UI is loaded by the host application. Try to set a breakpoint in any callback and see whether it is triggered or not.
Second, make sure you don't get any UI errors. By default, if a 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. Read more about that in the How to: Show Add-in user interface errors article.
Related
Prerequisites:
- JSF 2.1
- Primefaces 5.2
- Glassfish 3.1
Story:
I need my user to confirm FacesMessages of the errortype before he is allowed to keep working. For this i need some sort of modal message or dialog.
Question:
Is there some way of makeing a p:messages or a p:growl modal and confirmable?
What i've tried so far:
I've created a modal dialog which contains a p:messages component and a button to confirm/close the dialog again. The problematic with this solution is, that i have a lot of cases errormessages are shown and i have to open the dialog for each one individually. Besides that some errormessages are created by validators, some by the "required"-flag and some directly in the code. This makes it even harder to cover all cases. Id prefer to put the function into the component which displays the message (growl or messages).
Like most of dynamics crm programmers know, we can add "web resources that are not associated with any entity" to the sitemap. If such a customization is made, when user clicks that link, web resource will be opened and the buttons in the application ribbon will be added to the ribbon section of the dynamics crm.
What I am wondering is if there is any way I can hide this global buttons that are in the application ribbon based on the web resource on the page.
Let's say I added more than one web resources to my sitemap, namely a.htm and b.htm. Let's say I have a custom button named x in the application ribbon. Right now x is displayed both for a.htm and b.htm, but in reality I would like to hide the button when user clicks on b.htm from the sitemap.
Is there a way to accomplish that?
You could use the following (unsupported) code to hide the Ribbon button (the 'Run Workflow' button in this example):
var btnRunWorklfow=top.document.getElementById("account|NoRelationship|Form|Mscrm.Form.account.RunWorkflow-Large");
btnRunWorklfow.style.display='none';
You can also use ribbon editor available in codeplex to disable your button based on your javascript.
Refer to: http://crmvisualribbonedit.codeplex.com/
I figured there is no supported way of doing this.
I maintain a fairly large ms-access 2003 application. One of the recent changes that I was asked to make was to add a popup dialog box to warn used of a particular situation when the opened a form which is itself a pop up (although not modal) form.
Unfortunately, the new popup modal form comes up behind the original one, getting the user interface into an impossible position (you cannot close the modal dialog box because it is hidden, but you cannot move the others out the way because the modal dialog is preventing you).
I've temporarily made the new box come up to the very side of the screen but it is far from ideal.
Is there a way to specify the Z index of a form so I can control the layering? (or any other solution)
The only way to control this is by the order in which you open the forms.
I.e. you have to first open the original popup form, then open the new modal popup.
You could also consider using MsgBox() instead of the new form.
How do i hide all queries/Modules from left hand side of the Access objects in order to prevent user to access them.
You can make objects hidden by right clicking on object>View Properties > Attributes: Hidden = True
you can hide the navigation pane by going to File>Options>Current Database>Navigation>uncheck the 'Display Navigation Pane" box
And you can hide most of the stuff on the ribbon by File>Options>Current Database>Ribbon and Toolbar options> uncheck "Allow Full Menus"
The problem with all of this is that none of it is permanent. Any user can show the navigation pane by hitting F11 or show full menus by right clicking on the quick access toolbar and getting into the access options.
You can automatically do all of this on startup using an autoexec macro but again, a clever person can get around all of it.
You could compile your Access app into an 'MDE' or 'ACCDE' (compiled executable) file: http://www.utteraccess.com/wiki/index.php/Creating_MDE,_ADE,_and_ACCDE_Files
I followed this link to create custom ribbon tab/group/controls in a custom web part.
The custom ribbon tab/group/control renders when web part is displayed on the page, however, all the buttons are disabled.
What I did:
During OnLoad event, initialized List of IRibbonCommand with all my button command id; initialized page component and registered with SPRibbonScriptManager; registered ribbon scripts for getglobalCommands, commandEnabled, and handleCommand.
During OnPreRender event, use SPRibbon to load XML and RegisterDataExtension for the whole structures; use SPRibbon to MakeTabAvailable and set InitialTabId.
PageComponent script has been registered and initialized properly. Tab/Group/Control are displayed but buttons are disabled and the info indicates 'the control is currently disabled'. I am the site administrator and have full permission so security is not a problem.
Any idea?
I fixed the problem: it is important to register all commands with script manager before running page component initialization code via script.