I am migrating MOSS 2007 site to sharepoint 2010 without UI upgrade. I noticed that document library action tab includes menu called "Edit in datasheet". I need to know how do I hide it from ONLY document library. Please Help.
Another solution. Document Library settings->advance settings-> Allow items in this document library to be edited using the datasheet? = N
A possible way is to edit the Display form for the library DispForm.aspx using Sharepoint Designer and use some client side code (Javascript/Jquery) to hide the button.
If you have access to jquery something like this will do:
$(document).ready(function() {
$("[text='Edit in Datasheet']").remove();
});
Check this article for more details
Related
I am using SharePoint 2013.
I am using a modal dialog with the SP.UI.ModalDialog.showModalDialog method.
I also have a Ribbon in the custom application page.
This all worked in SharePoint 2010, but in 2013 it doesn't work. The ribbon is no longer showing.
How can I resovle this?
In the SharePoint 2013 masterpage the elements that shouldn't be visible in the dialog mode (IsDlg=1) have the "s4-notdlg" CSS class applied.
To solve your problem you have the following options:
Dynamically (using jQuery for example) remove the s4-notdlg class form the div of the.Ribbon section
Use the open-source library SharePoint 2013 Easy Ribbon API. We have tested this library with custom application pages, and it seems to satisfy all our needs.
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.
I have to add a "Content Editor" web part to a list view. The "Content Editor" is required to implement some java script and a html textbox.
The problem is that after adding the web part to the list view the dropdown to switch your current view gets lost. It doesnt matter where you add the web part or if you try it with the designer or IE.
Do you have any ideas on how to solve this? Or is there another way to implement java script into a listview without adding a new web part?
This is the dropdown I mean:
Its a known issue with SharePoint 2010.
You can modify the page using SharePoint Designer to put it back.
http://vintentou.wordpress.com/2010/08/03/missing-dropdown-menu-for-choosing-of-views/
My company has also produced a free add-on that will do this for a whole site.
http://www.pentalogic.net/sharepoint-products/free-stuff/view-rescue
I'm using MOSS (SharePoint 2007) and InfoPath 2007.
I have a Form Library with an attached InfoPath form, and would like to create new items (forms) in this library during a workflow built in SharePoint designer.
I've tried using the "Create List Item" action, but it doesn't assign the correct metadata (the new item looks fine in a view of the list, but can't be used to render the form (the generic "form has been closed" error comes up if you try to view the item)).
I'm not adverse to writing my own custom WFA to do this in .NET if need be, although it'd be nice to find a simpler solution.
Can anyone provide any resources for how to achieve this in SPD, or programmatically? My searches on the topic so far have been unfruitful...
Found the solution to this, thanks to a video on YouTube: http://www.youtube.com/v/bcnC_XwCcAg&hl=en&fs=1&rel=0
For anyone else out there who (like me) might not be able to watch YouTube content where they need this information, here's the process:
Create IP form
Publish to SP Server (as doc lib)
On document library, change settings:
allow management of content types
display in browser
"Fill out" a blank version of the form and save it to the doc lib with name "template"
Open context menu for "template" form and select Download a Copy
Delete "template" form from document library
Open library in windows explorer
Open Forms dir
Paste downloaded copy of "template" form into the Forms dir (as template.xml)
Go back into doc lib settings
turn off management of content types
change template url to template.xml
press OK to save changes
Go back into advanced settings ago, and turn management of content types back on
In SPD, make a WF which uses Create List Item to put an item in that library
And that's it. Just 12 steps needed to publish an InfoPath form so that it behaves as you'd expect, and any SharePoint developer should be familiar with 12-step programs.
Can use my custom page to add/Edit item from sharepoint list?
if yes how? Do i need to do any config changes?
Sure you can! Check Create a custom list article form from Microsoft site. You will use SharePoint Designer 2007 for all the customizations. It also allows you to convert every form to HTML/XSLT and to customize it even further.
In SharePoint Designer, create a new ASPX Page then go to Insert => SharePoint Controls => List Form or Form Web Part and play around to see if it fits your needs.