Tag Info

New answers tagged

0

You can create a custom action to call an application page (ASPX).You have instructions in this link. In this page, you can put code to download the file. Something like this: void Page_Load(object sender, System.EventArgs e) { if (Request.QueryString["file"] != null) DescargarDocumento(Request.QueryString["file"].ToString()); } private void ...


0

Follow these steps: 0) Create Custom Action - http://www.sharepoint-journey.com/custom-actions-in-sharepoint-2013.html 1) Download file: http://stackoverflow.com/questions/17057074/how-to-download-upload-files-from-to-sharepoint-2013-using-csom 2) Upload file: https://msdn.microsoft.com/en-us/library/aa478985.aspx


0

I used the following and it works to enable/disable the button when only one item is selected. <CommandUIHandlers> <CommandUIHandler Command="GCMS.CreateActionCommand" EnabledScript="javascript:var EnableDisable = function() { this.clientContext = SP.ClientContext.get_current(); ...


1

The location attributive "CommandUI.Ribbon.ListView" will make the button appear in List view only. Its CommandUI.Ribbon.DisplayForm which shows it in Display form. You have perhaps some old artifact in the site. Try it on a new site collection and see what happens.


1

If the list contains only one content type then in the CustomAction you need to define following three properties: RegistrationType="ContentType" RegistrationId="YourContenttype" Location="CommandUI.Ribbon.ListView" In the CommandUIHandlers, there is EnabledScript attribute which helps in enabling and disabling a button. You can refer to an .js file which ...


1

The problem with your hide custom action is that the Rights attribute says that the custom action must be active for every user having the ViewListItems permission, even if they have further permissions (like EditListItems) as well. AFAIK, there is no declarative way to restrict the custom action using sime kind of exclusive OR (XOR), for example, for ...


1

CommandUIHandler has not only Command and CommandAction attributes but also EnabledScript attribute. It may contains javascript function returning true/false. You may use javascript CSOM to get content type of the item(s) and enable/disable your button. Hiding button completely is different story and is not usual in SP. <CommandUIHandler ...


0

It's possible but, it'll add a few extra steps to your Workflow. If you are using the "SingleTask" activity you should have the TaskID for the task that was created. Create this task targeting a content type that has a Person or Group field that will be used to collect the extra approver. With the TaskID you can read information that was filled in the task ...


1

Best way to add Authorization to a Custom Action button in SharePoint Designer is to add the required rights access in the "Rights mask:". For a list of available Rights Mask that you can use see: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx.


0

You can use EnabledScript parameter in CommandUIHandler, where you can put javascript code and check if specific page/list/view is loaded. Example: <CommandUIHandler Command="Ribbon.ListItem.CustomGroup.Controls.BtnSayHello.Command" CommandAction="javascript:alert('Hello');" EnabledScript="javascript: function isEnable(){ ...



Top 50 recent answers are included