ShortCutKey on NavigatePage - microsoft-dynamics

I've got a question about the ShortcutKey Property.
When I add a Shortcut to an Action on a Card- or Listpage.
-> The Shortcut works perfectly.
But when I add a Shortcut to an Action on a NavigatePage.
-> The same Shortcut used above doesn't work for example for the Action "back".
Structure of my NaviagtePage
Does anyone know how to solve this problem? (BC190, OnPrem)
ShortCutKey = 'Shift+Ctrl+D';

Apparently, this is the Business Central menu design. Shortcut keys apply only to menu actions. Quoting Microsoft documentation:
ShortcutKey Property
Sets a shortcut key for selecting a menu item.
Wizard pages do not display menu ribbon, but show actions as buttons in the footer bar, so shortcut keys don't work on these actions. There is no official confirmation in any documentation, but it can be indirectly confirmed by the structure of wizard pages in the Microsoft BaseApp, none of which have action shortcuts defined.

Related

ISecurityInformation "Show advanced permissions" link

The ISecurityInformation interface can be used to display permissions for:
an object,
a group, or
a user name.
If the SI_ADVANCED flag is set when calling GetObjectInformation, the Advanced button becomes available.
After clicking Advanced:
a Principal can be selected
and then the View or Edit buttons become available (also contingent on the flags set when GetObjectInformation is called).
Clicking Edit or View will bring up the Permission Entry dialog. On this dialog there is another link that says Show advanced permissions.
Regardless of the flag combination that I set when initializing dwFlags, I am unable to get anything to display on the second Advanced permissions dialog.
To see the information that I am attempting to glean, right-click on any file in Windows Explorer then select
Properties
Security
Advanced
[any Principal]
View
Show advanced permissions.
I am trying to gain access to this same information from within my implementation of ISecurityInformation. I have tried just about every flag listed in the documentation of the SI_OBJECT_INFO, and various combinations, with no success. Changing these flags does alter the layout of the Permission Entry dialog but the actual content of the Advanced permissions area is always blank.
Is there something else that I need to initialize when instantiating the ISecurityInformation interface?
I was able to resolve this by updating the implementation of GetAccessRights as shown at http://www.codeproject.com/Articles/10811/The-Windows-Access-Control-Model-Part. The problem lied with the implementation of GetAccessRights, not GetObjectInformation.

Dynamics ax menu items

As we know Menu Item is of three type (Display,Action & Output). In action type we we write classes which runs in background. Action type menu item is attached to a form but in the drop down the menu item is not appearing, what could be the problem? Is there any property which sets action menu-item to show or not?
Please note that it is a scenario based question. I don't have any code for this to share. Thanks
It could be several things.
First of all, are you testing with a user having System Administrator role? If not, security will apply. Then, if your menu item isn't allowed in one of your roles (menu item in a privilege which is in a duty which is in a role you have), you can't see it.
The other common issue is form personalization. So, in the contextual menu over your form, choose personalize and with buttons on top right, restore the form. You will have to close and reopen the form then.

O365 Custom Ribbon Action - Disable button until item selected

I'm trying to only enable my custom ribbon button when an item is selected, but it looks like you can't do JavaScript in O365 from everything that I've read. Is this true? Is there no way to enable/disable a button based on the item(s) selected?
You can use custom Page components to do that. There's an execellent article in DIWUG magazine issue 6 on how to do it. http://www.diwug.nl/DIWUG_SharePoint_eMagazine6.pdf

how to set the rights for placeholder ribbon

beginner question for sitecore about settings the right.
So I have an item is open in the page editor.
The renderings on the page has bunch of icons on the ribbon. One of them called 'select the parent element (element name)'.
In my case when I click on it, I am presented with the placeholder with button 'add here' and the ribbon with some component buttons that a user can use to add the controls.
So, QUESTION:
"how I add access to the button on that ribbon for certain role? Where do I set it up? "
For some certain role that placeholder's ribbon is completely empty, including there is no button 'select the parent element' even though
i know there is a parent element.
thank you very much for help,
HF
Here are the screenshots (no icons on the placeholder ribbon, and the user's rights:
enter image description here
And here is how that looks for the admin:
All the settings for the Page Editor are held in the Core database. So in the Sitecore Desktop, switch to the core database and open up the Content Editor.
Navigate to : /sitecore/content/Applications/WebEdit
This item holds the items that make up the page editor. To edit the ribbon menues, go to:
/sitecore/content/Applications/WebEdit/Ribbons
I don't remember seeing that particular button in the Core database, so this is likely a built-in feature that requires the user to have one of the built-in permissions.
The first thing I would check is that Designing is turned on. Have the user go to the 'View' tab in Page Editor and make sure they have checked the 'Designing' checkbox.
If that doesn't work, it sounds like the user you have does not have design access to the page. I would examine the inherited roles using the User Manager and check if they have the Sitecore Designer role inherited.
It is possible they just need to be provided the correct role in the system so that they can access the buttons.
Have you tried the "Sitecore Client developing role"?
Also, for the blue arrow drop list location, in order for the rendering button to show up in that location, you have to check whether the button in the webedit folder under core database(/sitecore/content/Applications/WebEdit/Default Rendering Buttons). The Type field needs to be "Common" in order to show up in the blue arrow droplist.
Example can be the "Edit related item" (/sitecore/content/Applications/WebEdit/Default Rendering Buttons/Edit related item) shows up in the blue arrow droplist.

How to hide the list ribbon in XSLT List Web part in SharePoint 2010?

In SharePoint 2010, I have a custom list "Clients" on a site. On the home page of the site, I have added a Clients List Web Part. When I access the home page in a browser and click anywhere in that list, it displays the "List Tool" ribbon group which has "Items" and "List" ribbons. I do NOT want these ribbons at all when clicking on the list. How do I achieve this? Should I disable the click event on the list so these ribbons do NOT appear? How do I disable the click event on the list? Or What should I do to hide these ribbons when clicking on the list?
Basically I want it to behave same as content query web part. In content query web part, if you click anywhere in it, it doesn't show up any extra ribbons. I want the same behavior with list web part.
Thanks
Hitesh
One approach would be to follow the tutorial outlined in this blog post: Remove actions from the ribbon: SharePoint 2010
The end result is a UserControl that you can place on any page and "trim" (i.e. hide) certain portions of the Ribbon: entire tabs, or individual groups or buttons on the ribbon.
If you follow the prescribed solution from the blog, then you would add the following lines in your Page_Load event:
SPRibbon ribbon = SPRibbon.GetCurrent(this.Page);
if (ribbon != null) {
ribbon.TrimById( SPRibbon.ListTabId );
ribbon.TrimById( SPRibbon.ListItemTabId );
}
Additional ribbon element IDs can be found at:
As referenced in the CMDUI.xml XML file
As defined by public fields on SPRibbon (used in example above)
Of course, the downside to using this approach is that the particular ribbon elements you hide are hard-coded in the UserControl. To get around this, I used the UserControl as a basis to create a Web Part that allows you to define which ribbon elements to hide via a property. It works great and is generic enough to be applicable to many different scenarios.