Add a custom Ribbon group to an existing OOB Sharepoint Ribbon tab at run time - sharepoint

How can I Add a custom Ribbon group to an existing OOB Sharepoint Ribbon tab at run time?
I have a custom web part and I want to add a custom group to Ribbon.Documents Contextual tab at run time.

You need to provision tab definition using custom actions, and then in you server code use SPRibbon.MakeContextualGroupInitiallyVisible and SPRibbon.MakeTabAvailable to show up you tab.
Also you can use CKS.Dev extension for visual studio it contains templates which have some markup and code to help you to start.

You can use Javascript to create buttons. Here is the helpful link
http://www.ro.umt.com/blog/2013/11/14/creating-sharepoint-ribbon-elements-in-javascript/
if you look at the createTab() function you see you can create new group using this function CUI.Group .

Related

SharePoint 2013 - Custom Alert me form in Blogs

For SharePoint 2013 blogs alert me, I need to develop a custom form with less options as shown here. Another reason to go for custom form is better UI.
Current thoughts:
1. Develop a dynamic form using Bootstrap as user clicks on custom alert button
2. Using JSOM to make an entry in alerts
Question - Is it possible to make entry using JavaScript?
My research till now:
http://sitename/_vti_bin/alerts.asmx doesn't have add/update methods.
It has just view & delete methods.
One of the blog published in 2013 says alert doesn't support Client
object model.
http://www.learningsharepoint.com/2013/09/17/client-object-model-doesnt-support-creating-sharepoint-2013-alerts/
Technet Discussion
https://social.technet.microsoft.com/Forums/sharepoint/en-US/43d801d4-0e89-4ec5-9d6c-b36f8106fc0d/how-to-create-and-delete-alerts-using-client-object-model-or-even-web-services
Learn about Alerts
Alert web-service
https://msdn.microsoft.com/en-us/library/bb249933.aspx
Alert methods
https://msdn.microsoft.com/en-us/library/websvcalerts.alerts_methods
Calling web-service using JavaScript
https://weblogs.asp.net/jan/calling-the-sharepoint-web-services-with-jquery
Conclusion
From above data, it doesn't seem possible to achieve custom form for alerts using CSOM.
You need to use Custom Action to hide or overwrite the default ribbon button Alert Me.
Create an Application page with you custom logic/forms and use a new Custom Action to Show this forms

Acumatica Customization (Framework vs ERP) not consistent with TXX guides

I was asked to create a new maint page where data could be added. Just like in the T100 series part1:Maintenance pages. Immediately a few issues arise, why in the Acumatica ERP project I am unable to complete the steps done in the Framework application? I tried to add a new item -> PXgraph option(as described in the instructions) was not available, I couldn’t even add my own c# class from scratch the option was not listed. Instead it just listed page options(will add screenshots below). I attempted to create a new .cs file outside the scope of the project and import it into the file and it wouldn’t recognize it as an available file to import. In the end I attempted to manually drag and drop the file into the Objects folder I wanted the file to be a part of.
VERSUS ERP Add new item
Secondly, I created a new ListView in the page. I was not able to choose my Typename:SO.SOusrPhoneExtMaint.cs file from the list of options. I have rebuilt the project numerous times to see if that was the issue. I manually added the TypeName by going into the source of the aspx and typing it my graph. When I tested the graph I got the following errors that “Invalid type PX.Objects.SO.SOUsrPhoneExtMaint specified for datasource.” My question is why is there a discrepancy between the framework and the erp application for customization and how do I customize the graphs and pages if they don’t take the same approach as the TXX development guides. If I am doing something fundamentally wrong I'd like to know what is the right approach.
I recommend that you use the Customization Project Editor for any customization of Acumatica ERP.
To add a custom form, perform the following actions:
Navigate to the Customization Projects form (SM204505; System > Customization > Manage)
Select an existing customization project or create a new project by clicking "+" on the form toolbar
Click the project name to open the project in the Customization Project Editor
On the navigation pane of the editor, select SCREENS to open the Customized Screens page
On the page, click ADD SCREEN > CREATE NEW SCREEN to open the Create New Screen dialog box
Fill all the required fields and click OK to obtain workable template of your custom form
The New Screen wizard creates the form template and includes it as the following items in the customization project:
two File items - .aspx page code for the new form
a Code item - code template for business logic controller
a Page item - the link to the new page content, which you can further develop by using the Layout Editor
a SiteMapNode item - the site map object of the new form
(For an example see Lesson 11: Creating a Custom Form of the T300 Acumatica Customization Platform Training Guide)
Further you can develop the items by using the tools you prefer.
The custom form will be added to Acumatica ERP after the project is published.

Adding HTML controls to SharePonint 2010 quick launch

We are migrating Lotus Notes application to SharePoint 2010. There are around 200 views on navigation pane of Lotus Notes. In order to provide similar kind of look and feel on SharePoint I am thinking to add dropdown on quick launch of my site.
Is it possible to add HTML controls like dropdown and add a functionality to navigate to respective view? Or else what could be the better solution for this case?
Thanks,
Pratima
You can use the ASP.NET placeholders available in the masterpage to host a control or WebPart beside the Quick Launch. The actual QuickLauch is generally customized by JavaScript unless you want to replace it with a completely new class.

Possible to auto-check "Open in new window" for inserting links in SharePoint 2010?

I'm looking for a way to auto-check the box for "Open in new window" when inserting a link using the Insert tab in the site ribbon of SharePoint 2010.
Is there a way to configure this in the SharePoint settings available through the browser? If not, are there steps I could take in SharePoint Designer?
No, you will not be able to set this setting in any easy way.
You will need to either use Javascript to always check this checkbox, or use a delegate control enabled on all sites.

Insert Link/Picture "From SharePoint" grayed out in the ribbon

In the ribbon, I want to insert a picture or a link into a content page, but the "From Sharepoint" button is grayed out and I can only upload an image or insert a link "From Address". My field is rich text. I'm using SharePoint 2010.
How can I make the link available?
Thanks
Do not muck with the ribbon to make this work!
Totally depends on how you want to use it.
First of all, the Publishing feature must be active on Site Collection level and on the site where you want to add your rich content.
Then, if you activate the Wiki Home page feature you will have the SharePoint option availabe on the page.
If you want to use it in a custom list, it gets a bit more complicated.
The normal Rich Text field greys out the SharePoint option. And you can not add the Full HTML with publishing field directly to a custom list. So the solution is to create a new site column based on the Full HTML field. And then add that site column to the custom list. This field is part of the publishing infrastructure. So only available on SharePoint Server 2010
Unless you have the "SharePoint Server Publishing feature" under "Site Settings" -> "Site Features" activated, these options are not made available to you.
Usually ribbon button is grayed out if you didn't add CommandUIHandler element for it in your CustomAction XML.
For more details, you can see this MSDN article:
http://msdn.microsoft.com/en-us/library/ff458385.aspx
Also, you can find useful this article (with sample code and screenshot):
http://blogs.msdn.com/b/jfrost/archive/2009/11/06/adding-custom-button-to-the-sharepoint-2010-ribbon.aspx

Resources