Tag Info

Hot answers tagged

12

Fun stuff, I was checking this site since I stopped answering SO SharePoint questions for a few years now and this was the first thing in the list, a very interesting oversight during the "host web Feature" option for CustomActions. What a detailed investigation! Luckily I have a solution for you. WEB STANDARDS TO THE RESCUE CHO CHOO With Microsoft ...


4

It should work: <UrlAction Url="javascript:void(window.open('http://www.google.com','_blank'))"/>


3

You can do that with HideCustomAction. You can get GroupId and HideActionId from the action itself. The custom action is as below (taken from C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\FEATURES\IPFSSiteFeatures\FormSettings.xml) <CustomAction Id="IPFSSettingsListEditPage" RegistrationType="List" ...


3

I totally agree that this is inconsistent and a bit misleading. Assuming that tranforming the solution to the Sandbox is a none starter, a few thoughts... You could maybe re-scope the feature to the Web (I'm assuming that it is currently the scoped at the Site) and the just activate it on the root web. That would probably raise another issue though as I ...


2

If it is a single administrative action, you can simply use SharePoint Designer for creating a ribbon button: http://msdn.microsoft.com/en-us/library/ee558387.aspx For performing your field update, you can then use workflow or Application Page with query string parameters. If you need reusable solution (for wsp), I recommend you to use SharePoint 2010 ...


2

This can be accomplished by duplicating the CustomAction xml section. Just copy the entire custom action section and paste below 1st CustomAction xml section and change RegistrationId to the next RegistrationId you want it to show up in.


2

What you're really looking for, is SharePoint 2010 Fluent Ribbon API. It is a Codeplex project, which simplifies work with ribbon. It has in-depth documentation, including huge amount of samples and screenshots. The only bad thing about this solution, is that you should rewrite your XML ribbon definition to FluentRibbon ribbon definition. But code ...


2

As a general rule, XML attributes aren't designed to have more than one value. Interestingly, the attribute seems to be optional, so it may be possible to apply it to a great many places at once by leaving it out (probably too many). My only other suggestion would be to do a good old fashioned copy-paste and have one CustomAction element for each ...


2

MOVED FROM COMMENT BY @chris-m (marked as CW) Solution: Turns out the issue was caused by the configuration of the scope rule, ContentSource = NameOfContentSource (which we had incorrectly named after the ECT). The name was misleading because a content source represents an external data source not an individual ECT. Over time we added several ECTs that ...


2

Not to my knowledge as those would have to be deployed as features so they'd be available in SPD. Users don't have that ability to deploy features in BPOS.


2

Use __doPostback method on the client: __doPostback('myPostBack',''); Then, on server you should have something like this: const string myPostBackId = "myPostBack"; public override CreateChildControls() { // ... if (this.Page.Request["__EVENTTARGET"] == myPostbackId) { string textBoxValue = this.Page.Request["__EVENTARGUMENT"]; ...


2

You have misunderstanding of using CustomActionGroup. It uses for creating groups not in ribbon, but in sharepoint pages, for example in site settings. Chris O'Brien has written good blog posts about ribbon customization here. And if you have doubts how to create ribbon button or group, it is good idea to digg into cmdui.xml (this file contains definition ...


2

Create a custom ASP.NET page e.g. ApplPage1.aspx and then let user navigate to this page like this, <UrlAction Url="_layouts/TestProject/ApplPage1.aspx"> Now in your Page.Load event of ApplPage1.aspx, check user's identity using, SPWeb theSite = SPControl.GetContextWeb(Context); SPUser theUser = theSite.CurrentUser; string strUserName = ...


2

If your SP app has a remote web in the solution, you can store the image in you remote app and use the token ~remoteAppUrl to correctly resolve the URL to that image. For some reason MS wired up ~remoteAppUrl correctly but did not do the same for ~appWebUrl. Hopefully they will fix that in the future.


2

I didn't really expect anyone to "chase this down" for me, so I spent some time doing a lot of digging on my own. The short answer (as of January 2013) is "no" - there doesn't appear to be any way to leverage tokens like ~appWebUrl in the Image32by32 and Image16by16 attributes. The way that the image attributes are processed is inherently different than the ...


2

I was originally going to suggest this location: Ribbon.WikiPageTab.PageActions But i did a quick search and this guy's blog has more detailed information. http://sanderschutten.blogspot.com/2010/05/adding-buttons-to-mss2010-ribbon.html


2

There is out of the box support for opening a dialog from custom action. Add following attributes to the CustomAction XML node -- HostWebDialog : Set it to true if you want to open a dialog HostWebDialogWidth: Width of the dialog HostWebDialogHeight: Height of the dialog For more information go to my blog here. Hope this would help you.


1

This can be achieved to a certain extent if you, for example, create a list view with appropriately formatted list items and a SharePoint Designer custom action with a javascript like javascript:{ (function() { var myctx = SP.ClientContext.get_current(), selected = SP.ListOperation.Selection.getSelectedItems(myctx), list = []; for (var item in ...


1

As you could maybe see from links exposed by Robert, these are quite fixed (even more than MSDN Ids http://wiki.customware.net/repository/pages/viewpage.action?pageId=69173255) as defined in the platform. To my knowledge, you cannot add your own, but you could add your own items or hide items via Custom Actions. You could use the Control Delegate ...


1

It's definitely possible. Open the document library in SPD. You will have "Custom Action" button on the ribbon, where you can select "List Item Menu" custom action: Then, on the form which appears, use vertical scrollbar (many people don't notice it's there) to scroll the contents of the form down. You will see "Rights" box there: Unfortunately it's ...


1

You could also create an application page which you pass the GUIDs of the selected items via a JavaScript redirect. currentsite/_layouts/AppPage?GUIDS=guid1,guid2&ReturnURL=/Pages/currentpage. Have your code complete the request then redirect to the list view via the ReturnUrl paramater.


1

Have a look at Chris O'Brien's samples and his excellent series of posts on developing Ribbon UI: Samples Series first post


1

I would suggest you deploy your content types declaratively using FEATURES so that you have same content type id everywhere. This will not only help you in this particular case but many other places as well.


1

You have reconnected your SharePoint Designer to the site after you deployed it?


1

Looks like you have a Web-scoped feature. You should try to change your feature scope to Site.


1

It can still be easy depending on what you want to do. SharePoint Designer supports the ability to add custom actions to the Ribbon menu without having to write any code that can navigate to a form (with query parameter tokens), start a workflow, or open any url and it provides a simple dialog UI for customizing the button. Open SharePoint Designer Open ...



Only top voted, non community-wiki answers of a minimum length are eligible