Control List Item creation/edit with SharePoint Groups
I have a SharePoint Site that holds two SharePoint Groups Clerks and
Accountants
I have a List Called Customer
This list contains columns Name, Surname, Balance.
Clerks
Create Customer and can fill the form except Balance field
Edit customer fields Name and surname but not Balance.
Accountants
Can only Edit Balance and Surname.
NB I do not mind a different solution to this as this is just a scenario I invented to understand how to do things. Nonetheless, I am after no code OOTB solutions and the target is to make things efficient for the users.
Hi.
SharePoint does not support Field level security.
There are some custom solutions (e.g. https://sppex.codeplex.com/) that allow to you to use this functionality.
If you perform a bing search using the key sharepoint field level security you can find some free or commercial solution to solve this issue.
Regards,
Bubu
http://zsvipullo.blogspot.it
Please mark my answer if it helped you, I would greatly appreciate it.
Similar Messages
-
Hi All
I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
Suppose lets consider there are A,B,C,D,E,F,G,H columns.
Now i want to create one form with the fields A,C,E.
When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
Please help me on this as it is very urgent from me..
Thanks in Advance
Sowjanya GHi,
According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
In the workflow, you can add condition and actions as below:
If current item: C equal to Test1
Set E to Test2
Then the value of the filed E will be changed based on the value of the filed C.
In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Hello everyone,
Within a list form, user has to select a value amongst a huge number of availables options.
Instead of using something like a dropdown list, which would be very boring to parse, I would like to display possibles values in a treeview.
To do that, I tried to use an <Sharepoint:SPTreeView bind to a SharePoint:SPXmlDataSource who read data from an XML File.
<SharePoint:SPXmlDataSource runat="server" DataFile="../../SiteAssets/App_Data/myfile.xml" AutoSave="True" XPath="" ID="myDataXml"></SharePoint:SPXmlDataSource>
<SharePoint:SPTreeView runat="server" ID="MyTreeView" DataSourceID="myDataXml" />
But when I try to display the form in my web browser, an error occurs.
Therefore, my question is : Is it possible to display the content of an Xml file as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013 ?
If the answer is yes, how ? Which are the required properties for "SharePoint:SPXmlDataSource" tag and "SharePoint:SPTreeView" tag ?
What are the requirements to use thoses tags ?
Regards,
Florian.
Ps : I dont have access to the server side of the SharePoint site I am working on.Assuming that https://fullsitename is a new URL address did you make sure to update your browser to include it in the Trusted Sites zone? The message you are quoting is exactly the one you get if you don't have it in Trusted Sites.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Rating a List Item using jquery with out using User profile service
Hi,
I dont have access to Central admin and i was not not able to enable USer profile service.
can i rate a list item in Sharepoint 2010 using any jquery plugin
i got the link
http://blogs.msdn.com/b/carloshm/archive/2009/08/24/jquery-rating-in-sharepoint-lists.aspx
But i am not able to find any plugin in it.
Please advice.
Thnaks,
PallaviHi,
According to your post, my understanding is that you wanted to rate a list item using JQuery in SharePoint 2010.
The link you had posted above is for SharePoint 2007.
You can refer to the following articles which about using the JQuery to call the rating service.
http://blog.dennus.net/2011/08/09/using-spservices-and-jquery-to-include-social-rating-control-on-_layouts-page/
https://www.habaneroconsulting.com/insights/Calling-the-Rating-Service-using-jQuery-in-SharePoint-2010-Part-1-of-2#.UxbQxvmSz6k
You can also use the tool of the CodePlex to achieve it.
http://sptoolbasket.codeplex.com/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Open Edit form directly when list item is clicked in Sharepoint 2013 list
Hi,
I have a list web part, wherein the user clicks the item it should open in the Edit form directly. various forum i checked was for SharePoint 2010, as we do not have design mode in SharePoint designer 2013, I am unable to do.. I know
if I the change the form type from default page to edit page, it will work, but not sure about how to go ahead. Could anyone help me to achieve this please....Sunitha,
You can do this with some jQuery and JavaScript. Look at this post:
http://brandonatkinson.blogspot.com/2013/11/open-sharepoint-2013-list-items.html
Basically, add a Script Editor Web Part to the page and include this snippet:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
$(function() {
// Change all display form links to edit form links
$('.ms-vb a[href*="listform.aspx"]').each(function(){
var link = $(this).attr('href');
link = link.replace("PageType=4", "PageType=6");
$(this).attr('href', link);
</script>
Brandon Atkinson
Blog: http://brandonatkinson.blogspot.com -
hi All,
I have a requirement for updating the contact list from CSV file and updating/ adding and deleting the changes in the SharePoint list using PowerShell script. List is also synced with outlook.
The problem arises, when we delete an item from the list using PS, the item (which was earlier synced with outlook) is not getting deleted from outlook.
Strange behavior : when we perform the same deletion operation manually from the SharePoint UI, every thing works fine as required.
Please refer the below PS
#Adding the records from SharePoint not in CSV file
if($flag -ne 1)
Get-Member -InputObject $csvRow -MemberType NoteProperty | ForEach-Object {
$property = $_.Name
$newItem.set_Item($property, $csvRow.$property)
$newItem.Update()
#Deleting the records from SharePoint not in CSV file
CreatePSLog "Deleting the records from SharePoint not in CSV file"
foreach($itm in $List.items)
$del = 0
$items | ForEach-Object {
if($itm["SAP Ansprechpartnernr"] -eq $_."SAP Ansprechpartnernr")
$del++;
if(!$del)
$List.GetItemById($itm.Id).Delete()
$List.Update();
$Web.Update();
many thanks in advance, Please suggest as I am completly stuck on this :(
Regards, Arun kumarHi Kumar,
Please remove the codeline $List.Update();, then run your code again, it works for me.
You may need to firstly delete the synced contacts list within Outlook to remove those undeleted accounts, then re-connect the SharePoint contacts list to outlook, then run your modified Powershell code.
Thanks
Daniel Yang
TechNet Community Support -
Custom List Form creation using Powershell - SharePoint 2013
Hi,
I have a custom List called 'IssuesList' with 4 fields - "IssueTitle","IssueID","IssueDesc","Status"
While displaying display form I should show 3 fields expect Issue ID i.e. IssueID should be hidden.
and on edit form only Status field should be editable. So using SharePoint designer I created respective Edit form and display forms and changed XSLT to control the display mode on the fields.
I have everything scripted in powershell till now - creation of custom list, publishing pages, webparts etc. however I am looking for how to provision or associate these 2 list forms with IssuesList after I create the list in new site.
I have restrictions on using wsp and site/list template due to business needs. So I need to know if there is any way I can upload these 2 files after I create custom list in powershell and associate them as defaultdisplay and defauteditforms?
Please advise.Hi,
Per my understanding, you might need to apply these custom forms to a list after list creation using PowerShell.
With PowerShell with SharePoint Object Model, we can hide fields on list forms.
The similar thread below with code snippet will provide more information about this:
https://social.technet.microsoft.com/Forums/en-US/ee6fc2eb-197f-4144-94fa-8a4e438675d9/hide-a-field-from-edit-form-list?forum=sharepointgeneralprevious
If there may be other requirements except for hiding fields, as you have limitation on using custom solution package(which should be preferable in such scenario),
a workaround I can provide is that, after list creation, you can add Content Editor Web Part contains the CSS style or JavaScript to the form pages of a specific list, it will help you hide/disable the specific elements, this can be achieved programmatically.
The code below can add a Content Editor Web Part to the DisplayForm of a list(though in C#):
public static void AddCEWP()
SPLimitedWebPartManager manager = null;
SPFile file = null;
using (SPSite site = new SPSite("http://sp"))
using (SPWeb web = site.RootWeb)
try
web.AllowUnsafeUpdates = true;
file = web.GetFile(web.Url + "/Lists/List018/DispForm.aspx");
manager = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
ContentEditorWebPart webPart = new ContentEditorWebPart();
XmlDocument xmlDoc = new XmlDocument();
XmlElement xmlElement = xmlDoc.CreateElement("HtmlContent");
//xmlElement.InnerText = "<strong>Hello World!</strong>";
//write the custom CSS style or JavaScript here
string content = "<style>your custom style here...</style>";
xmlElement.InnerText = content;
webPart.Content = xmlElement;
manager.AddWebPart(webPart, "Top", 0);
manager.SaveChanges(webPart);
web.Update();
catch (Exception ex)
//Utility.SPTraceLogError(ex);
finally
if (manager != null)
manager.Dispose();
web.AllowUnsafeUpdates = false;
About how to hide fields on Standard List Forms using jQuery:
http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
http://stackoverflow.com/questions/10010405/how-to-hide-a-field-in-sharepoint-display-form-based-on-the-field-name-jquery
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Patrick Liang
TechNet Community Support -
BCS New Item creation - Column with Name 'ID' does not exist.
Hello All
I´m creating a BCS and i´m getting a strange error. I have created all the operations and created a list based on the external contente type. In my table the column ID is the primary key with identity.
When I use the new item form I get the following error. But the new item is created.
[ArgumentException: Column with Name 'ID' does not exist.]
Microsoft.SharePoint.BusinessData.Infrastructure.GenericAdapterObject.get_Item(String key) +19563585
Microsoft.SharePoint.BusinessData.Infrastructure.RuleInterpretingTypeReflector.Get(ITypeDescriptor typeDescriptor, ITypeDescriptor instanceRootTypeDescriptor, Object instance) +59
Microsoft.SharePoint.BusinessData.Infrastructure.CompositeIdentifier.GetIdentity() +668
Microsoft.SharePoint.BusinessData.Runtime.EntityRuntime.Create(IEntity thisEntity, IFieldValueDictionary fieldValues, Identity identity, AssociationEntityInstancesDictionary associationInfo, ILobSystemInstance lobSystemInstance) +2386
Microsoft.SharePoint.BusinessData.MetadataModel.Static.Entity.Create(IFieldValueDictionary fieldValues, ILobSystemInstance lsi) +82
Microsoft.SharePoint.SPListDataSource.InsertItem(SPListItem itemToInsert, IDictionary dictValues) +1671
[SPException: Failed to create a list item for this external list based on the Entity (External Content Type) '...' in EntityNamespace '....'. Details: Column with Name 'ID' does not exist.]
Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex) +23989128
System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +4064980
Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +378
Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +24
Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +691
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Thanks for the help,
Regards,
AndréHello All,
I already found the problem and it was an error in a trigger in the database.
Thanks.
Regards,
André -
How to save users added to list using people picker to sharepoint Group
Hi
I have created List with some people picker columns and now when I save a list,the data is saved to list as well as the users in particular column will be added to particular sharepoint
group. Is there any sharepoint out of box solution for this or I need to do it programmatically. Kindly provide me any procedures or solutions as you know.
1) how to bind the particular sharepoint group to the particular column
2) How to add users to the particular sharepoint group
Thanks
Razvi444Hi Razvi444,
There is no out of the box way to achieve this.You need to write a custom event receiver ,inside event receiver
event, you
can check column (people picker value) and add it to desired group if that user not exist already.
Thanks -
Get list items using spservices for sharepoint 2013
Hi,
I have a requirement like below.
I have 2 sharepoint custom list with some columns.
List1:listA
List2:listB
Now when i open the listB new item form i want some of the field values from listA should auto populate in Textboxes of listB new form.
Is there any ways to implement this?
Regards,
PooviHi Poovi,
You can achieve this using jQuery to get the SharePoint list items. Refer the below articles. It has explained how to get list items using jQuery and auto populate a text-box from a list item as a source.
You can put this code in list forms through SharePoint Designer. The articles explain about auto populating text box of web part but similarly you can implement it for list form, because nevertheless the text boxes are same.
http://www.c-sharpcorner.com/UploadFile/sagarp/sharepoint-2010-jquery-autocomplete-textbox-containing-list/
http://tomvangaever.be/blogv2/2011/07/sharepoint-2010-autocomplete-with-list-items/
Please remember to click 'Mark as Answer' if the reply answers your query or 'Upvote' if it helps you. -
Hi,
I have a .NET application that uses SSRS ReportViewer 2012 control to render reports deployed on SSRS 2012 integrated with SharePoint 2010. I am getting error "the report execution '' has expired or not found". The same code works when I connect
to SSRS 2008 R2 integrated with SharePoint 2007. I investigated the issue and it seems the JavaScript that pings the SSRS server before it expires is missing from rendered HTML.
Let me know if there is a way to fix this issue.
following is the code:
ASPX:
<formid="form1"runat="server">
<rsweb:ReportViewerAsyncRendering="true"
KeepSessionAlive="true"ID="test"runat="server"></rsweb:ReportViewer>
<asp:scriptmanagerrunat="server"></asp:scriptmanager>
</form>
Code Behind:
if(!IsPostBack)
this.Session.Clear();
test.Reset();
test.ProcessingMode =
ProcessingMode.Remote;
test.KeepSessionAlive =
true;
test.ServerReport.ReportServerUrl =
newSystem.Uri("https://webappname/_vti_bin/reportserver/");
test.ServerReport.ReportPath =
https://webappname/RS_Reports/REportEngineTest.rdl;
ReportServerCredentialscred =
newReportServerCredentials();
test.ServerReport.ReportServerCredentials = cred;
report server credentials:
publicICredentialsNetworkCredentials
get
// Use default identity.
returnnewNetworkCredential("user",
"pwd",
"domain");What's the meaning of webappname, are you mean the sharepoint site?
I think this issue can be caused by the incorrect url. You can refer to the following link:
http://msdn.microsoft.com/en-us/library/ms154497(v=sql.110).aspx
Familyabc -
SQL Server Standard Edition with Sharepoint 2013 Enterprise
Hi there,
I need some help figuring out what will be the ideal SQL Server Standard Edition that can run all features for SharePoint 2013 Enterprise Edition. I ordered CAL licenses for a Sharepoint 2013 Enterprise Server (Supports 500 users). Now I need to find out
if it is worth upgrading SQL server to the following:
Upgrade to SQL Server Standard R2 2012 or upgrade to SQL Server Standard 2014? Basically, I am looking for the pros and cons?
-Esteban
Microsoft manager to programmer: You start coding. I'll go find out what they want ...Hello,
PowerPivot for SharePoint is a feature available only if SQL Server Enterprise Edition and Business Intelligence Edition is used. Reporting Services of SQL Server Standard has also some limitations that will impact SharePoint 2013.
Additionally, SQL Server Standard Edition do not offer AlwaysON, database snapshots and online index rebuild.
To me, the biggest difference between SQL Server 2012 Standard Edition and SQL Server 2014 Standard Edition is that SQL 2014 Standard now supports 128 GB of RAM. SQL Server 2012 Standard is limited to 64 GB.
https://msdn.microsoft.com/en-us/library/cc645993.aspx#CrossBoxScale
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Deleting a List Item with Very Huge Amount of Versions
A faulty workflow flooded list items with 50K+ versions on SharePoint List. Attempts to open the list item/delete/edit via SharePoint UI/PowerShell failed! Programmatic iterations to delete versions/items trys to consume complete server memory and
fails.
Deleting the complete list is successful, but that results in SharePoint timer jobs fail and places Lots of Block in the database, which stops SharePoint sites from loading.
Any help please?SP 2010 and 2013 support a max of 50,000 versions. Accessing more than 5000 items at a time causes SQL Server to escalate from row locks to table locks, which will generally bring SharePoint to a stop. You will need to write code that can bring back subsets
of the data, and the only approach I can think of is a CAML query. But, I can't find any examples of working with versions using CAML.
You could just change the Throttling settings in Central Admin from the default of 5000 to 50000 and then run your code during off hours.
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
Allow All Users To Add List Items But Only Certain users To Edit Them (SharePoint 2013)
How do we allow all users to add items to a list, but only allow certain users to edit the list items? Site is SharePoint 2013. We have tried creating custom permissions. That does not seem to work.
I've setup a custom list on my SharePoint Foundation using a custom permission level to accomplish this. I setup a custom permission level on the site called 'Add Only to Lists' which allows adding an item to the list and setup the group with
the default read and the custom permission level and it works. The users in the group get the add item but do not get edit item, not even items they created themselves.
Any users who should have full edit permissions can be setup under the normal edit/contribute/design permission level and work normal.
Below is the Role Definition pulled via PowerShell and Role Assignments on the list in question. As well as a picture showing what it looks like to something assigned that role level.
Role Definition
Name : Add Only to list
Description : Can add items to a list but cannot edit or delete
Type : None
Hidden : False
Order : 2147483647
BasePermissions : ViewListItems, AddListItems, Open, ViewPages
List Role Assignments
Member : Home Visitors
RoleDefinitionBindings : {Read, Add Only to list}
Parent : IT Equipment Request
ParentSecurableObject : IT Equipment Request
The user can create a new item, but cannot edit items - not even items he created. -
In SharePoint 2010 I created workflows that used the 'Create list Item' Action, which then set the Content Type ID (so I could create documents of various types in a document library).
We just switched to the SharePoint 2013 platform, and now the drop down for Content Type ID is blank in all of the workflows that are still using the SharePoint 2010 platform. Is there any way to create a list item with specific content
type? Even if I could just input a string into that field instead of using this blank drop-down. Please help!Hi Sarah,
According to your description, my understanding is that you cannot create a new list item with a specific content type using SharePoint 2010 Platform Workflow.
I tested the same scenario in my environment, and the Create List Item worked fine with the specific content type.
How did you create the content type?
Please check if the content type is added to the list/library the workflow associated with.
Best regards.
Thanks
Victoria Xia
TechNet Community Support
Maybe you are looking for
-
Incoming messages going to wrong folder
I have no rules set for mail and I have messages that should be in my inbox automatically showing up in another folder. I think I previously had a rule set but have deleted all of my rules and the problem persists. Does anyone know of other settings
-
Report Query - XML data source empty
Hello! I built a report query, using the wizard, under Shared Components and when I test the query using bind variables I get the correct data, but as I click Apply Changes and get to the screen where it gives me the option to Download the data sourc
-
InDesign thumbnails in Bridge CS4
I've noticed that some InDesign CS2 and CS4 files do not show thumbnails in Bridge CS4. I tried the Build and Export Cache function in the Tools menu and nothing changed. Any suggestions? Also, I would be interested in a Bridge extension for harvesti
-
IPhoto Book - extra large size choice
I have about 325 photos selected for an iPhoto book for my husbands birthday gift. I wish to order the extra large size but it does not show up as one of the choices. All choices indicate 8 1/2 x 11". Can you assist? thank you.
-
Viewing and printing attachments
Hi all I think perhaps I am being exceptionally thick but I am trying to view and print attachments from an email. Previously, I used to click on the attachment, open and then print it - hey presto, easy! Now, however, the only option when I click is