Share Point Custom List - Submit item to folder

hello,
I have create a custom list on my SharePoint 2013 site and customized the infopath form. I have disabled the submit/Save buttons on the ribbon and set the Form Submit settings to rules and actions. I have then added "Save" buttons on the form that
have actions to submit to the list's Main data connection.
There are three departments that will use this list and users in a department should only be able to see items within their department. So I have created folders for these three departments and defined permissions at the folder level. Now how can I submit
the infopath form such that the form automatically gets submitted to the respective folder? I am unable to add a submit data connection to a customized list form and the Main data connection is disabled for edit.
I am however able to achieve this in a document library. But was wondering if there are ways to achieve this with a list since we are almost completed with the development of this functionality using list items.

Anybody?
I even tried writing a ItemAdding even reciever that would cause the item to be saved in the respective folder instead of the root. But I am not able to figure out the best way to do this.

Similar Messages

  • How can i get more than 1000 items in Custom List Displaying Items?

    http://.....sites/_vti_bin/listdata.svc/AddressBook(List) allows 1000 items Only my AddressBook List, but i have more than 1000 items in my AddressBook list. I want to get items
    from AddressBook list and bind in another place using Autocomplete method like this.
    =======>>>>listurl=http://.....sites/_vti_bin/listdata.svc/AddressBook.
    and my coding in camel like below
    protected void btnpopulatedetails_Click(object sender, EventArgs e)
    SPSite objSite = SPContext.Current.Site;
    SPWeb objWeb = objSite.OpenWeb();
    objWeb.AllowUnsafeUpdates = true;
    SPList list = objWeb.Lists["Address Book"];
    SPQuery query = new SPQuery();
    query.QueryThrottleMode = SPQueryThrottleOption.Override;
    query.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + txtcustomer.Value + "</Value></Eq></Where>";
    query.RowLimit = 500;
    SPListItemCollection items = list.GetItems(query);
    function fnCustomerSearchBind() {
    if ($("input[id$='txtcustomer']").length != 0) {
    var collcustomer = searchCustomers('', urlTo, fieldto);
    $("input[id$='txtcustomer']").autocomplete({
    source: collcustomer,
    //maxLength:10,
    select: function (event, ui) {
    //debugger;
    event.preventDefault();
    $("input[id$='txtcustomer']").val(ui.item.value);
    $("input[id$='btnpopulatedetails']").click();
    return false;
    minLength: 0,
    function searchCustomers(value, listurl, fieldto) {
    var collcus = new Array();
    var custresults;
    var url =listurl + "?$filter=startswith('" + fieldto + "','" + value + "')";
    //debugger;
    $.ajax({
    cache: true,
    type: "GET",
    async:false,
    dataType: "json",
    url: url,
    success: function (data) {
    custresults = data.d.results;
    //alert(listurl);
    // alert(data.d.results);
    for (var x = 0; x < custresults.length; x++) {
    //alert(custresults[x]['To']);
    collcustList.push(custresults[x]['To']);
    //debugger;
    //debugger;
    return collcustList;
    In my research listurl=http://.....sites/_vti_bin/listdata.svc/AddressBook has 1000 items in 1st Page by default, So how to change 1st Page by default to All Pages through
    code. I think you understand my environment by look above coding, if you don't I am using office 365 sandbox solution. One more thing i know through my research Pages can be change by using Ado.Net Data Service, i tried this one but this one support windows
    server 2008 r2 only but i am using Windows Server 2012 r2. Please help me if you know the answer.

    Hi,
    Here is a blog would be helpful:
    ADO.NET Data Services returns 1000 items
    https://gilleslauwers.wordpress.com/2010/12/08/ado-net-data-services-returns-1000-items/
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Share Point 2013 List View Filter [Me] is not showing all the relevent record

    Hi
    I am using [Me] to filter in custom column "EmployeeLoginName" (is group/user type)
    But not able to get all the record of the loged in employee.
    only showing 1 record whereas there are 7 matching record.
    Any one ever faced this type of problem?
    Can any one tell the reason for this.?
    Thanks

    Hi Syn_Suresh,
    Did all 7 records have the exact current logged user's name in "EmployeeLoginName" column?
    Could you reproduce the issue on other new list, and other site?
    If it's not reproduced, the list may be corrupt.
    Thanks
    Daniel Yang
    TechNet Community Support

  • How to get list data and bind to data table or Grid view in share point 2010 using j query

    hi,
    How to bind list data in to data table or  grid view  using Sp Services.
    How to use sp services in share point 2010 lists and document library 

    Hi, You can use List service, SPServices and JQuery to get your requiement done-
    See here for an sample implementation -
    http://sympmarc.com/2013/02/26/spservices-stories-10-jqgrid-implementation-using-spservices-in-sharepoint/
    http://www.codeproject.com/Articles/343934/jqGrid-Implementation-using-SpServices-in-SharePoi
    Mark (creator of SPServices) has some good documentation on how to use SPServices-
    http://spservices.codeplex.com/wikipage?title=%24().SPServices
    SPServices Stories #7 – Example Uses of SPServices, JavaScript and SharePoint
    http://sympmarc.com/2013/02/15/spservices-stories-7-example-uses-of-spservices-javascript-and-sharepoint/
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • List value retaining in Share point hosted app 2013

    I'm creating a Share point hosted app.
    I have a list inside Share point 2013 app. We are inserting records into the list through some other forms in app.
    But when we deploy the app, it is getting retracted & deployed again. So the list values are getting deleted.
    Is there any way to retain the Share point app list values during deployment?
    I tried the following things as suggested by some experts in internet.
    • Setting up the app catalog for app in Central admin and increment the version for every deployment.
    • I set the “deployment conflict resolution” property of list instance to “none”.
    But both the things not working.
    Please help me on this issue.

    Hi,
    According to your post, my understanding is that you wanted to keep the list data while redeploy the app project.
    As you had known, to keep the data in the app, we should first set up the  app catalog.
    Then we should upload your app with version 1.0.0.0. Install app to the desired web.
    After some code modification increment your version to 1.0.0.1 and upload again your app to catalog.
    Upgrade your installed app. More details about updating            
    http://sharepoint.stackexchange.com/questions/83021/app-deployment-keep-the-existing-data-in-internal-list-of-an-sharepoint-app
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • AFP Share Points disappearing

    This has been an ongoing problem, I don't remember it happening in 10.3.x but since upgrading to 10.4.x it has been a constant issue. the server is an open directory master bound with AD. The users login to the server using an AD account. After no specific period of time some (but not all) share points will show zero items. If the share point is ejected it will not show up in the list of available shares for 5 - 45 minutes. It will then become available again. This effects random users, sometimes a few times a day, sometimes once a week.
    I have taken some users and given them local accounts and not seen the issue.
    I assume this means that it is something to do with the passing of the authentication to and from the AD server.
    If anyone else has seen this and knows how to correct it please let me know.
    Thanks

    I am having a similar issue with brand new Mac Mini server. I have established sharepoints on a number of folders. When I connect to them from a client, the drives mounts as remains present for up to 2 minutes and then disappears with an error message about it being no longer available.
    There seems to be no pattern to this. At first I thought it was an issue related to user accounts or similarly named resources on server and/or client, some permissions issue I was unaware of but no matter what I try the problem remains.
    I was considering re-installing OS X Server to attempt to rectify.

  • Embed PDF in Custom list view

    Hi,
    I have a custom list with items containing some columns and a pdf attachment. I want to be able to display the attachment when in display mode for my list item.
    Any suggestions on how to achieve that with InfoPath or SharePoint designer ?
    Thanks in advance.
    Cheers
    Régis Baccaro
    Blog

    What do you mean by "display the attachment when in display mode for my list item"
    If you mean Thumbnail view,
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8b5aa9fd-b36c-4312-a841-735e2ce51c4d/how-to-display-the-thumbnail-view-of-the-documents-in-sharepoint-document-library?forum=sharepointcustomizationlegacy
    Developing your own solution would potentially provide a better way to accomplish your task, but before setting out on that long road you may want to try the simple customization, it's less time consuming and it will help gauge your customer's interest and
    support.
    Also, there is a wealth of open source code for SharePoint available on CodePlex, you might want to check that out as well.  Here is the linK:
    http://www.codeplex.com/
    Also, here is an interesting project to consider for your task:
    http://enhancedpicture.codeplex.com/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2820861a-3f4d-4de2-95ef-55dfa3b5ee51/displaying-a-thumbnail-of-a-pdf-in-a-document-library?forum=sharepointdevelopmentprevious
    If this helped you resolve your issue, please mark it Answered

  • How to disable custom list --Add New Item in share point 2010

    Hi,
      I  have associated the workflow for the custom list .So i should not allow user to add any item on the custom list.
    Regards,
    Lakshmi

    I understand that you want to restrict users from adding item to a list but they can do it from workflow.
    You can break inheritance on that list and remove all permission.
    Now run workflow using elevated privileges to add item to list
    http://office.microsoft.com/en-in/sharepoint-help/what-is-permissions-inheritance-HA102772762.aspx
    office.microsoft.com/en-001/sharepoint-foundation-help/edit-permissions-for-a-list-library-or-individual-item-HA101805400.aspx
    Try above
    If this helped you resolve your issue, please mark it Answered

  • How to populate active directory users in to drop down list items dynamically in Share point 2010 ?

    Hi My self Arun in my current project i have a task on that active directory user  need to automatically populate in share point list drop down  please help me.  is that any out of box feature in share point 2010 ?   
    Thanking You 
    Arun 

    Arun,
    If you plan to implement the "Querying the Active Directory" based on my code snippet,
    and if you do not have permission [your account must be the part of domain admin] to do so,
    Then still you can do it in least effort through code,
    string usersInXml = SPContext.Current.Web.AllUsers.Xml;your xml string look like this.
    <Users><User ID="2" Sid="" Name="Administrator"
    LoginName="i:0#.w|murugesan\administrator" Email="" Notes="" IsSiteAdmin="True" IsDomainGroup="False" Flags="0" /><User ID="1" Sid="" Name="Murugesa Pandian" LoginName="i:0#.w|murugesan\murugesan" Email="" Notes="" IsSiteAdmin="True" IsDomainGroup="False" Flags="0" /><User ID="1073741823" Sid="S-1-0-0" Name="System Account" LoginName="SHAREPOINT\system" Email="" Notes="" IsSiteAdmin="False" IsDomainGroup="False" Flags="0" /></Users>
    You can user Linq to XML to filter the "LoginName,Name and Email and then populate your drop down list.
    * User must be logged into the site at least once.
    Murugesa Pandian.,MCTS|App.Devleopment|Configure

  • Adding items to custom list - performance issues - Request timed out error

    Hi,
    I am using VS 2010, c#.
    I am inserting records from an excel file, which contains 6000 records to a custom list.
    I am using the Visual webpart, and oledb connection. I am not using the openXML format, as i need to use "xls" and "xlsx" type.
    I am doing the below steps currently:
    1) From the file upload control, i am saving the excel to the sharepoint layouts - inside that a custom folder, to keep the records.
    2) Using the oledb connection to read the records and fill it in a datatable.
    3) Inserting the datatable values to a custom list.
    Looping through the datatable and inserting 3000 – 4000 records to List, I am getting the "Request timeout error".
    Below is the sample code, where i am looping the datatable and inserting the record:
    SPList prjCmpList = oWeb.Lists[strListName];
    SPListItemCollection prjCmpListItems = prjCmpList.Items;
    SPListItem prjCmpListItem;
    foreach (DataRow dr in dt.Rows)
    try
    prjCmpListItem = prjCmpListItems.Add();
    prjCmpListItem["Title"] = dr[0];
    prjCmpListItem["FirstName"] = dr[1];
    prjCmpListItem.Update();
    catch (Exception)
    I am using the "using block" for the spsite and web objects. When I see the execution time out in my web.config it is set to 3600.  But I am getting the request time out after 2 mins only.
    I have checked these link's : http://msdn.microsoft.com/en-us/library/aa973248%28v=office.12%29.aspx
    http://www.etechplanet.com/blog/how-to-import-an-excel-spreadsheet-in-sharepoint-and-save-it-as-a-custom-list.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8664375c-fae0-483a-b43f-ce7d353b896a/importing-3000-records-to-sharepoint-list-causing-requesting-time-out-error?forum=sharepointadminlegacy
    However, I am following the best practices, and also the insertion of records is to be done programmatically.
    Has anyone faced this kind of issue? How to fix this?

    HI,
    Thanks for the reply.
    If the list has custom columns which consists of string and Date types, can the same type be used? Or should the list be an empty list without any columns?
    In the xml if it is put as "onerror= continue", how to fetch the records which error out?
    Also, in the datatable code block, which I had put in the first post, I am also trying as below:
    if(dt[1] != null)
    if(!string.IsNullorEmpty(dt[1].toString())
    prjCmpListItem["FirstName"] = dt[1].toString();
    Can these condition checks be performed with the "processbatchdata" approach?
    Thanks

  • Custom NFS share point directory showing up on all network machines

    Hi,
    I'm in the process of migrating our 10.4 PowerMac server to a Mac Pro (running 10.5). I've been trying to recreate our 10.4 server setup as much as possible and so far I've only come across one annoying issue.
    We have fink installed on the server and under our 10.4 setup the /sw directory was set up as an NFS automounted share point with a custom mount point of '/sw'. I.e. users logging into client machines saw a /sw directory and could work with that. This made it easier to add fink packages as I only needed to do this on one machine (the server). This setup worked very well under 10.4 and had been working stably for the last couple of years.
    As we now have (for another month or two at least) a mix of intel and Power PC machines, I don't want to share out the (intel) server version of fink to all clients. In Server Admin, I have chosen to set the NFS protocol options to specify the IP address of just one client (an intel machine). I am only using NFS to share this directory. The plan is to add more client IP addresses as we get more intel machines.
    This works for the one intel client machine. Logging in via the GUI or via ssh allows you to run programs located under the /sw directory. The problem is that a phantom /sw directory appears on all client machines, even though their IP addresses are not specified in Server Admin. The /sw directory has root/wheel permissions (for user/group) and attempting to list its contents returns 'Operation not permitted' (even with 'sudo ls /sw').
    If I use Directory Utility to remove the connection to the Directory server on our main server, then the /sw directory becomes owned by root/admin and I can remove it (it appears empty). Reconnecting to the Directory Server changes the permissions back to root/wheel. It is also worth noting that when I first installed fink on the server (in /sw) the act of making this a share point also changed the permissions on /sw to root/wheel meaning that I couldn't access the fink programs that I had only just installed (this forced me to reinstall fink in /Volumes/Data/fink).
    Has anyone else noticed this behavior? It almost seems like Server Admin is not honoring the list of IP addresses that are being listed as targets for client machines. I had planned to install fink locally on the PowerPC clients until we upgrade them to intel machines. However, I would then also have to install fink somewhere other than /sw as I can't write to that directory. I would presume that this behavior should happen on any NFS share point that is trying to automount to a custom mount point on a client. Can anyone else verify this?
    Regards,
    Keith

    As a footnote. I have now removed my shared fink installation. It is no longer listed as an NFS sharepoint in Server Admin and running the 'showmount -e' command does not list it. However, a /sw directory is still being created on the server and on the client machines on our network.
    This is perplexing and frustrating. There is no sharepoint any more. I rebooted the server but it makes no difference. I removed the /sw directory (on the server) by booting the machine in target firewire mode and removing it by using a 2nd machine. But following the restart, it appeared again.
    This suggests that once you make any custom mountpoint (using NFS sharing) then you will forever be stuck with a directory at the root level of all your clients which you can not remove.
    Keith

  • Checks if item field link exists into a custom list

    Hi;
    I have a custom list with 2 columns : Title and SITE (field link)
    Title (text) : 
    SITE (link) :   URL + DESCRIPTION
    I would like to write in programmming a code which allows to checks before to add a new item if this item exists or not into the list in using only the DESCRIPTION or URL field.
    Like this :
    if(DESCRIPTION !exists)
    {   add item }
    else{ show message : the site exists }
    Regards 

    Hi,
    We can use event receiver to achieve your requirement. The following code for your reference:
    using System;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Utilities;
    using Microsoft.SharePoint.Workflow;
    namespace SharePointProject5.EventReceiver1
    /// <summary>
    /// List Item Events
    /// </summary>
    public class EventReceiver1 : SPItemEventReceiver
    /// <summary>
    /// An item is being added.
    /// </summary>
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if(properties.AfterProperties["SITE"]!=null)
    string linkField=properties.AfterProperties["SITE"].ToString();
    string urlValue = linkField.Split(',')[0];
    if (CheckItemExists(properties.List, null, urlValue))
    properties.Status = SPEventReceiverStatus.CancelWithError;
    properties.ErrorMessage = "The site exists.";
    private bool CheckItemExists(SPList list, SPFolder folder, string urlValue)
    SPQuery query = new SPQuery();
    if (folder != null)
    query.Folder = folder;
    query.Query = @"
    <Where>
    <Eq>
    <FieldRef Name='SITE' />
    <Value Type='Text'>" + urlValue + @"</Value>
    </Eq>
    </Where>";
    SPListItemCollection found = list.GetItems(query);
    return (found.Count > 0);
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Is it possible to auto increment a number in share point list ?

    hello,
    is it possible to generate an auto increment field in share point list?
    for example,  there are two fields [auto increment id] and [title]
    lets say i create title as 'Steve' ; it will  automate auto increment field  with value 1 
    next , i insert title 'Paul' it ll populate the auto increment field with value 2.
    thanks,
    Jay

    Hi Jay,
    You can use the Item Id field of the SharePoint list which will get incremented by 1 whenever you add the new item.
    you can refer the below threads for other options of auto increment id
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/134fd5f6-17ce-4044-a78e-e7a32b523190/creating-autoincrement-field-in-sharepoint-list?forum=sharepointgeneralprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/39743bb3-872d-4788-96a8-2b9fb8813011/create-auto-increment-value-in-sharepoint-column?forum=sharepointgeneralprevious
    My Blog- http://www.sharepoint-journey.com| Twitter
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • Workflow 2013 and custom list item 2013 security levels

    In a new workflow 2013 that will be using a new custom list 2013, I would like the following to occur:
    1. I would like to have the workflow have its own set of permissions,
    2. I would like the user to have their own set of permissions.
    Basically I would like the user and the workflows to have separate permission levels. This is due  to
    changing permission levels on the list after the user submits the list to the workflow. Basically I will have the user enter all the data they want to at different times and hit a custom 'save' button. However once the user hits the custom 'submit' button,
    I do not want the user to be able to change the data. I want the user to only have read or view access on the custom list that they submitted to the workflow.
    Thus can you tell me if what I am planning is possibly? If so, can you tell me and/or show me how to accomplish this goal?
    If this is not possible, do you have any suggestions on what else I could try and how would I proceed with your suggested method? Basically how would I setup your suggested method?

    I think this should be handled in the workflow form itself. Add a rule in the form that checks the status. If the user has already submitted the form, the submit should be disabled. Make sure have data fields to record status and user who submitted the
    form. If you don't have these fields already, add them and then setting up rule is easy. Having separate permissions is not possible anyway. User has permission on an object (in this case workflow). It is not possible that user has permissions (permissions
    on what? to do what?) and he cannot submit form. If the form is advanced and has code behind you can add code to change permissions on the list item. Then once user has submitted the form, change his permissions to read only. As I said, adding a rule and disabling
    the button is the easiest solution.
    Saifullah Shafiq
    Blog:  
    Twitter:   LinkedIn:
      Facebook:
      Google+:
      Latest Book:
    A Practical Guide to SharePoint 2013

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

Maybe you are looking for