Parent Child list form using infopath 2013

Hi All
I have two SharePoint list heaving parent child relation ship ( one parent have multiple child) now i want to create a single form in info path 2013 using code less solution . I am using SharePoint Online don't want to use c# code.
Journey Man

Hi,
Please check this
https://www.sharepointdrive.com/blog/how-to-establish-a-parent-child-relationship-in-sharepoint/
http://sharepoint.stackexchange.com/questions/6493/how-to-automatically-link-parent-in-child-list-new-form
Please remember to click 'Mark as Answer' on the answer if it helps you

Similar Messages

  • SharePoint List Form using InfoPath 2010 "Cannot insert the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls"

    I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
    level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
    Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
    level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
    0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
    the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
    08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
    Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
    command, CommandBehavior behavior,

    Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Parent Child list

    Experts --
    Is it possible to use an evDRE() to get a parent/child list of all the elements in a dimension?  I want to see a long list of every element in the dimension with its associated parent alongside. 
    If an evDRE() can't do it, is there another method?
    Thanks...Marv

    Brian --
    Thanks very much!  As far as I could tell, the MEMBERS selection with EvDRE() didn't provide what I wanted.  It returned a list of all the members, but there was no indication of parent.
    But using Administration and Dimension "View Member Report" I got just what I needed--Child and Parent in two separate columns on an Excel sheet.  Perfect...
    Thanks...Marv

  • Need to use sharepoint designer 2013 or use Infopath 2013 directly

    I created a custom list on a test Sharepoint 2013  website. My intent is to edit this custom list in Infopath 2013 so I can make custom modifications to the form. I am trying to determine if there is a point of placing the custom list in SharePoint
    Designer 2013 before I place the custom list in Infopath 2013 so I can create a custom form.
    when I run the custom list from the test Sharepoint 2013 website, there are a default 'save' and 'cancel' buttons. However when I access the custom list next in sharepoint designer 2013, there are the original 'save' and 'cancel' buttons on the top of the
    form and there are the 'save' and 'cancel' buttons at the bottom of the form.
    Thus can you tell me if there is a reason to place the custom list in sharepoint designer 2013 and what the reason is? Do I need the default forms of displayform, editform, and updateform?  If so, I only want one set of 'cancel/save' buttons on the
    form. Thus can you tell me how to keep only one set of save and cancel buttons to be displayed on the form?
    If I do not need SharePoint designer 2013, should I just go head and create the form needed in Infopath 2013?

    Hi Wendy,
    Based on you description, my understanding is that you want to custom your list form, and you want to keep only one set of 'cancel/save' buttons on the form.
    It is by default that there will be two set of 'cancel/save' buttons on the form after changing Form with SharePoint Designer.
    I suggest you custom your list form with InfoPath.
    Although it is by default that “Save” and “Cancel” Buttons disappeared after changing Form with InfoPath.
    You can Create Submit Button in an InfoPath Form .
    http://community.office365.com/en-us/b/office_365_community_blog/archive/2013/05/21/infopath-save-and-new-button-grid-user-post.aspx
    You can Create cancel Button in an InfoPath Form. Adding a button with a rule of closing the form when clicking.
    Best Regards,
    Lisa Chen
    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]
    Lisa Chen
    TechNet Community Support

  • SP2013 Customize Workflow Task Form with InfoPath 2013 - Unknown error occurred

    Hi everyone,
    After creating "Collect data from user" workflow using SharePoint designer, I need to customize the task form. But when I open the .xsn file (SharePoint generated), without editing anything (for testing purpose), and publish it, I got the message
    box: "An unknown error has occurred. The form template has been published to the server but it can only be opened in InfoPath Filler". I test the same scenario in SharePoint 2010, and it worked. It really annoys me.
    No exception in the log file, and no solution after much searching around.
    Please help.

    Hi john_d
     I got the solution to customize the Workflow task form. We cannot customize the workflow task form from InfoPath 2013, and if some how you are able to publish the task form it then when you publish your workflow then it your workflow will overwrite
    the default task form to your customized one.
    So the solution for it is that whatever fields you want to add to the task form you can just in "TASK FORM FIELDS" and it will display in your task form when you publish your workflow.

  • Set "peoples or groups" field with current user "login name" in sharepoint list form using javascript

    hi friends
    i am trying to set peoples or groups field in sharepoint  list form with current user login name
    here my code
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    $(document).ready(function NewItemView () {
    var currentUser;
        if (SP.ClientContext != null) {
          SP.SOD.executeOrDelayUntilScriptLoaded(getCurrentUser, 'SP.js');
        else {
          SP.SOD.executeFunc('sp.js', null, getCurrentUser);
        function getCurrentUser() {
          var context = new SP.ClientContext.get_current();
          var web = context.get_web();
          currentUser = web.get_currentUser();
          context.load(currentUser);
          context.executeQueryAsync(onSuccessMethod, onRequestFail);
        function onSuccessMethod(sender, args) {
          var account = currentUser.get_loginName();
          var accountEmail = currentUser.get_email();
          var currentUserAccount = account.substring(account.indexOf("|") + 1);
        SetAndResolvePeoplePicker("requester",account);
    // This function runs if the executeQueryAsync call fails.
        function onRequestFail(sender, args) {
          alert('request failed' + args.get_message() + '\n' + args.get_stackTrace());
     function SetAndResolvePeoplePicker(fieldName, userAccountName) {
       var controlName = fieldName;
        var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
        var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
        var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
        peoplePickerEditor.val(userAccountName);
        spPeoplePicker.AddUnresolvedUserFromEditor(true);
    </script>
    but it is not working
    please help me

    Hi,
    According to your post, my understanding is that you wanted to set "peoples or groups" field with current user "login name" in SharePoint list form using JavaScript.
    To set "peoples or groups" field with current user "login name”,  you can use the below code:
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js"></script>
    <script type="text/javascript">
    function SetPickerValue(pickerid, key, dispval) {
    var xml = '<Entities Append="False" Error="" Separator=";" MaxHeight="3">';
    xml = xml + PreparePickerEntityXml(key, dispval);
    xml = xml + '</Entities>';
    EntityEditorCallback(xml, pickerid, true);
    function PreparePickerEntityXml(key, dispval) {
    return '<Entity Key="' + key + '" DisplayText="' + dispval + '" IsResolved="True" Description="' + key + '"><MultipleMatches /></Entity>';
    function GetCurrentUserAndInsertIntoUserField() {
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, this.onSuccess),
    Function.createDelegate(this, this.onFailure));
    function onSuccess(sender, args) {
    SetPickerValue('ctl00_m_g_99f3303a_dffa_4436_8bfa_3511d9ffddc0_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_UserField', this._currentUser.get_loginName(),
    this._currentUser.get_title());
    function onFaiure(sender, args) {
    alert(args.get_message() + ' ' + args.get_stackTrace());
    ExecuteOrDelayUntilScriptLoaded(GetCurrentUserAndInsertIntoUserField, "sp.js");
    </script>
    More information:
    http://alexeybbb.blogspot.com/2012/10/sharepoint-set-peoplepicker-via-js.html
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to find out which site and list is using InfoPath form

    Hi,
    We have a site collection with 100+ sites. We are doing analysis of these sites for SP-2013 upgrade, I would like to know which site lists are using a InfoPath form, how do I find out this without manually going through all the
    sites & lists.
    Thanks,
    Pat

    Hi
    You can Use sharepoint Manager to do so.or use below link 
    http://blogs.msdn.com/b/david/archive/2011/08/25/powershell-script-to-locate-content-type-useage.aspx
    http://aarebrot.net/blog/2011/02/using-powershell-to-retrieve-content-types-and-associated-fields/
    As info path form deploy as content type you can find usage of content type
    Regards, Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful http://sharepointundefind.wordpress.com/

  • How do I use infopath 2013 with visual studio 2013 to modify forms with code?

    Dear all,
    I am using sharepoint online and infopath 2013, I wonder how do I edit infopath 2013 forms with visual studio? When I try to edit form code it says  I need visual studio 2012 and some other tools, I installed them and visual studio 2013, I wonder how
    do I get rid of the message and start coding? Can someone provide a detailed procedure of doing so? I am having trouble with creating multiple items with single infopath form with repeating table on sharepoint online. Thanks.
    Timothy

    Hi,
    According to your post, my understanding is that you want to create InfoPath form with code using Visual Studio.
    More information about develop InfoPath form with Visual Studio:
    http://msdn.microsoft.com/en-us/library/office/ee526362(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/aa942693.aspx  
    For the second question, I suggest you can create another post , it will be easier for others to focus on one question in one thread.
    Best regards

  • Create several forms in infopath 2013 for list item

    Hi
    I have a list
    I would like to create SEVERAL view
    in infopath 2013 each indepanate
    view to another by URL
    For exemple :
    i have "list costumers",
    And i have (
    forms 1 = www.msdn.com/liste/form1
    forms 2 = www.msdn.com/liste/form2
    forms 3 = www.msdn.com/liste/form3
    Said WAHID

    Hi,
    You can create the multiple views in the InfoPath form and switch the view based on the rule.  In our scenario, you can switch the rule based on the list view.
    Please refer to the following article.
    Add, delete, and switch views (pages) in a form
    InfoPath 2010 – one form, multiple views
    Please mark it answered, if your problem resolved.

  • Migrating InfoPath 2010 Forms(Lists/Libraries) to InfoPath 2013

    Hi All,
     We have lots of InfoPath Forms in SP2010 and migrating to SP 2013. It would be helpful if anyone could suggest a suitable way to migrate the Forms. 
    Trying to avoid external tools just planning to inhouse.
    Thanks,

    Hi,
    According to your post, my understanding is that you wanted to migrate InfoPath 2010 Forms(Lists/Libraries) to SharePoint 2013.
    The issue is caused by the security and Claims-Based authentication.
    There is a new Secure Store Service ID that needs to be created to allow InfoPath to connect over Claims Based Authentication
    Here is a great blog for your reference:
    http://thatssharepoint.blogspot.com/2013/12/issues-with-infopath-forms-after.html
    More information:
    InfoPath and SharePoint 2013 – Upgrading your forms
    Migrating InfoPath Forms Services applications from 2010 to 2013
    Thanks,
    Linda Li
    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]
    Linda Li
    TechNet Community Support

  • How to do simple form post to payment gateway from SharePoint 2010 list form OR InfoPath 2010 Web Form?

    Working on a SharePoint 2010 Ent extranet site where parents of students can submit field trip permission forms and make payment at same time (optionally if fees involved).  Was wondering if someone could advise (or point me to resource on) best way
    to do a simple form post to an external payment gateway?  Would be from InfoPath web form OR SharePoint 2010 list form.
    Any guidance would be appreciated.
    Trevor

    you may create a custom visual web part for this:
    http://www.codeproject.com/Articles/152280/Online-Credit-Card-Transaction-in-ASP-NET-Using-Pa

  • Parent/Child list passing variables.

    Hello All,
    I have a task that involves setting up a Parent/Child Relationship lists and takes it a step further and adds documents to a document library from both the Parent list and/or the Child list.   I have related web parts on both lists to the document library.
    I also have a related web part of the child list on the Parent display page. I followed this
    resource to automatically pass the ID: which is the Title Column of the Parent List to a Lookup Column in the Child List.   I would like to pass the Lookup Field item information from the child list to the document library, but the resource is using
    the "getParameterBYName('ID')" to create the variable passed into the cookie.   I cannot use the ID of the Child List because it is referring to the Child Item and not the Parent item. I am passing this item into a Lookup Field on the Document
    Library Form which filters related Child items when the Parent is selected.  Can anyone help me pass the Lookup Field item or get the url of the Lookup Item to pass into the cookie?
    I have tried:  "var ParentID = document.getElementByID('SPField').innerHTML"   This gets me the content for the field, but this does not work for setting the cookie.
    Any help is appreciated.
    James
    James Pruitt

    And here is the Document Library Upload from the Parent List:
    The pre-filled in Parent drop down filters the Child drop down.   I am trying to have the same action except from the child Display Form, I need both drop downs to be pre-filled based on the item being displayed:
    Here is the code that I am using.  It takes a cookie from the Parent List and pre-fills the first drop down.  From that we have a filtered second drop down.
    <script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery-1.11.1.min.js"></script>
    <script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery.SPServices-2014.01.min.js"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function() {
    var ID = getCookie("ID");
    //alert(ID);
    if(ID != undefined)
    SetLookup("Parent", ID );
    function getCookie(name) {
    var cookieArray = document.cookie.split(";");
    for (index in cookieArray)
    var keyValuePair = cookieArray[index].split("=");
    var key = keyValuePair[0];
    key = key.replace(/^\s+|\s+$/g, "");
    if (key == name)
    var value = keyValuePair[1];
    return value;
    // Sets the value of a lookup field whether it is an input or select field
    function SetLookup( fieldTitle, lookupVal)
    // Set default value for lookups with less than 20 items
    if ( $("select[title='" +fieldTitle+ "']").html() != null)
    var element = $("select[title='" + fieldTitle +"']");
    $(element).val(lookupVal);
    // disable field to stop users from changing it if added from Parent list
    $(element).find('option:not(:selected)').attr('disabled',true);
    else
    var element = $("select[title='" + fieldTitle +"']");
    $(element).val(lookupVal);
    // enable field if adding a document manually
    $(element).find('option:not(:selected)').attr('disabled',false);
    //else
    choices = $("input[title='" +fieldTitle +"']").attr("choices");
    hiddenInput = $("input[title='" +fieldTitle +"']").attr("optHid");
    $("input[id='" +hiddenInput +"']").attr("value",lookupVal)
    choiceArray = choices.split("|");
    for (index = 1; index < choiceArray.length; index = index + 2)
    if (choiceArray[index] == lookupVal) {
    var element = $("input[title+'" +fieldTitle +"']");
    $(element).val(choiceArray[index - 1]);
    //disable field to stop pesky users from changing it
    $(element).attr('readonly',true);
    //hide the button that is used for the dropdown list
    $(element).next('img').hide();
    // Handle the filtering of the Parent Item and Related Child Items
    $().SPServices.SPCascadeDropdowns({
    relationshipList: "FundingRecordsLive",
    relationshipListParentColumn: "AgreementParent",
    relationshipListChildColumn: "Title",
    parentColumn: "Parent",
    childColumn: "Funding",
    debug: true
    </script>
    I am trying to set a cookie to the url of the SharePoint Lookup Field:
    <a href="http://ai-seb03dev-001:5000/_layouts/listform.aspx?PageType=4&
    ListId={FB7A87B6-0BA5-4764-B28C-B3B8A98218F7}&ID=3&RootFolder=*">
    If anyone knows how to do this, or can suggest another way to pass the Lookup
    Field info, I will very appreciative.
    Thanks, JP
    James Pruitt

  • Parent/Child Lists and Disabling Contextual Ribbon

    I have a display form for a parent list that is setup with web part connections to show list view web parts of some child lists.
    When you click the child list the ribbon displays a "New Item" button for the selected web part's list. How can I stop this from happening?
    I have my own custom new button for the child items, so on the child form I can pre-set the relationship drop down box (and hide it from the user) using a query string value I put in.
    I therefore need to stop the default new button appearing in the ribbon when the user selects the list items web part (because I can't put in the required query string value).
    Any ideas?
    Thanks,
    Richard

    Hi Richard,
    As I understand, you would like to remove New Item button in the display form page of parent-child relationship list. Please add a content editor to use the code below in the Default Display Form:
    <style>
    .ms-list-addnew
    display: none;
    </style>
    Here is the screenshot of my envrionment:
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Representating Hierarchical (Parent-Child) relation graphically using Swing

    Hi,
    I have to represent a hierarchical data which is having Parent-Child relation using Swing. I am not able to upload the image overhere, so I am represnting the data in such a way so that one can understand this problem. If anyone knows how to upload image on Sun forum, please let me know it will be great help for me.
    Parent Root - A
    Child of A - B, C, D
    Child of C - E, F, G
    Child of F - H
    Child of D - J, K
    The data needs to be represented in two formats-
    1. Tabular Format
    I am able to represent data in this format using combination of JTree and JTable. The data is getting represented in tabular format and I am able to expand and collapse the parent nodes to see the childs. The tabular data will look like below structure,
    A
    I_B
    I
    I_C
    I I_E
    I I
    I I_F
    | I |_H
    | I
    I I_G
    I
    I_D
    I
    I_J
    I
    I_K
    2. Graphical Format
    This is the other way in which I need to represent the data. The above shown tabular data needs to represented in graphical form. The end result should look like,
    I A I
    ____________________I__________________________
    ___I___ __I__ __I__
    I  B  I I  C   I I  D   I
    ____________________I____________ ______I________
    ___I___ __I__ __I__ __I__ ___I__
    I  E  I I  F   I I  G   I I  J   I I   K    I
    __I___
    I   H   I
    Each box representing alphabates will be a component (like JPanel) which will have details about the item to be displayed. The parent and child should be connected with each other using line. This representation should be created at runtime using the hierarchical data. Also the parent and child relations should be expandable/collapsible as they are in JTree.
    I am not able to find any component or any solution in Swing which can provide me this graphical representation. It will be great help if anyone can help me out in this.
    Thanks in advance.

    Sorry for inconvinience for the data representaion in graphical form. I don't know how this get jumblled. Please try to figure out the tabular/graphical representation using pen and paper as forum is not providing any help to upload an image.
    Sorry again for inconvinience.
    Thanks
    Manoj Rai

  • Removing a child instance from a parent child list. - non L2 Caching

    I have a parent Entity
    Parent
    int id
    String name
    @onetomany
    List <Child> list
    and a child Entity
    Child
    int id
    String name
    First, let me say, I have L2 cache turned off.
    So lets say I have a parent record with three children and I want to remove child 2. I have found if you remove the child only in the EM then when you select the parent again, it shows the child still being there even though the child has been removed from the db. I liked only having to remove the child because its only one instance to pass and remove over the web. But with that said, how do I remove the entity our of the parents Children list so it no longer shows up in the front end in the list? I cant use the selected index in the front end because I sort the data.
    Or is it better to save the state of Parent too? But if so, what if Parents Children is hundreds of records. Thats alot of overhead for one record to be deleted. Could use some help here. Thanks in advance.

    You should always maintain bi-directional relationships. You need to remove the child from the parent.
    Since you are not caching, if you acquire a new EntityManager after commit, the parent's child will be gone.
    If you refresh the parent in the same EntityManager after commit, then it will be gone.
    If the collection is really big, then consider not mapping it, just query for it if you need it. There is no point having a relationship that is too big to read.
    Note that if you use weaving, and a List, then remove() will not trigger the collection to instantiate in EclipseLink (nor add, but contains or size will).

Maybe you are looking for