Tag Info

Hot answers tagged

10

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 ...


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

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

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

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

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

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

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" ...


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

Is this what you're looking for? http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2013/03/10/leveraging-sharepoint-dialogs-in-apps-for-sharepoint.aspx


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

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 ...


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

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