Combine two lists in one form (1 to Many relation)

I have two list instances. I have a custom form on which I would like to show two lists and add more button to let user select to add more child records and save which should save in both the lists. And again when user pull the item from main list it should
display the child list items as well. Can someone point me good link to achieve this.
Thanks,
Alex

Hi,
According to your description, my understanding is that you want to display two lists in a form and add item to both lists when clicking a button, also
you want to display items in child list when searching items from main list.
If that is the case, there is a possible solution is that you can create a custom web part with two Gridviews bind with the lists data and a button. When
you click button, you can add list items to both grid in code behind. And, when you search the items from main gridview , you can query the list items value in child list using CAML Query to display the items in child list.
Here are some detailed code demos for your reference:
Create a custom web part:
http://msdn.microsoft.com/en-us/library/ee231519.aspx
Add or update list items using C#:
http://msdn.microsoft.com/en-us/library/office/ee539976(v=office.14).aspx
Query list item using CAML Query:
http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
Bind SharePoint list data to GridView:
http://sharepoint.kerenapura.com/2013/09/display-sharepoint-list-data-gridview/
Best regards
Zhengyu Guo
TechNet Community Support

Similar Messages

  • SAP XI - Combine Two files as one in File Adapter

    Experts,
    I want to combine two files as one in File adapter itself.  I am using a simple scenario of File-to-File where i am just sending the file from sender to receiver as it is , EXCEPT, i want to add one line at the end of the file .
    I was thinking of doing this in File adapter , avoiding any mapping program in Integration Repository ..
    ANY INDEA's ??
    Regards,
    Ashutosh

    Hey
    You have 3 options,first one can be to execute a OS command before message processing or use adapter modules to append the new line in the sender adapter.
    the second option(and better one) is to do this via message mapping.
    third option is to write a OS script and execute it after message processing on receiver file adapter.
    one thing you need to make sure is that since OS scripts run on XI server itself(not on FTP server) so in case you are picking file from FTP server and delivering to FTP ,then you can't use option 1 or 3,you can only use option 2
    Thanx
    Aamir

  • How do I combine two regents into one in Logic Pro Arrange?

    how do I combine two regents into one in Logic Pro Arrange?

    Thanks for your input kcstudio. I would still be left with 2 regions although one after the other, on one track.
    I am trying to save steps of the way I am combining the info of 2 seperate regions into one: bouncing the 2 tracks then re-importing that audio back into the project. It would save a lot of time if you could just drag one region on top of the other
                                W.W.

  • Combining two messages into one

    Hello,
    I have a mapping issue, I have a business process in which I have to combine two messages into one.
    To do so, I have defined a message mapping in which there are two source message types, and one target message type.
    When testing the message mapping in the IR, it works fine, but when I define and test an interface mapping with that same message mapping, I receive this error message:
    "Cannot produce target element /ns0:Messages/ns0Message1/MY_IDOC_TYPE/MY_SEGMENT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd."
    What am I doing wrong ?
    How am I supposed to combine two messages into one ?
    Thanks,
    Elad.

    Hi Elad,
    Just see if you have included both you source message interfaces and one target nessage interface correctly in while doing your interface mapping.....
    The most common mistake made when we do scenarios which include combination of two source message types into one target type are:
    - we forget to include both the source message interfaces.
    - or we interchange between one of the source message interface with the target.
    Just see if either of the 2 is aplicable in your case and just activate all components as and when you create them..
    Regards,
    abhy

  • Use two actions in one form

    I want to use two actions in one form in struts,and without using javascript,is it possible?

    I want to use two submit:
    one is for adding message;
    another is for editing message.
    they must be in one form,but i dont know how to use
    two actions in one formHi,
    Hope this helps.
    cheers,
    jeric
    <html>
    <head>
    <title>decision</title>
    </head>
    <body>
    <br><br><br>
    <center><h3><u>Two submits, one form</u></h3></center>
    <%
    String userChoice = request.getParameter("decision");
    if( userChoice != null && userChoice.equals("add") == true)
        // forward to addMessage.jsp, for example, or whatever
    else
    if( userChoice != null && userChoice.equals("edit") == true)
         // forward to EditMessage.jsp, for example, or whatever
    out.println( "<br><center> the value of userChoice after selection is ... " + userChoice + "</center><br>");
    %>
    <center>
    <form method="post" action ="decision.jsp"> <!-- name of this page -->
        <table width = "50%" align="center">
             <tr><td width = "100%"><hr color ="red" ></td></tr>
              <tr><td height = "10"></td></tr>
             <tr><td align = "center">Do you want to <b>add</b> a message or <b>edit</b> a message?</td></tr>
             <tr><td height = "10"></td></tr>
             <tr><td align = "center">
                  <input name = "decision" type = "radio"  value = add checked>?add a message??
                  <input name = "decision" type = "radio" value = edit>?edit a message?
             </td></tr>
        </table>
        <br>
        <input type="submit"  value = " make your selection " >
    </form>
    <hr color ="red" width = "50%">
    </center>
    </body>
    </html>

  • Two layouts in One form

    Hi,
    I want to create two layouts in one form. how can we create that.
    Thanks in Advance.
    Regards,
    Ramana

    Hi all,
    I have one requirement. I have created a form for Medruck and assigned it in nace tcode for purchase order. My requirement is if version number is ' 0 ' one page should be called and if version number is not zero another page layout should be called. I have created 2 different page layouts in my SAP Script i.e. one page named first layout and second named other layout. if version number is 0 first layout should be called and version number ne 0 other layout page should be called. Is it possible to do it? if so, how shall i do this...
    Kindly help me...
    Thanks and regards,
    subbu.

  • HT4759 How do I combine two accounts into one

    How can I combine two accounts into one account

    If you are talking about iCloud accounts, you can't.
    Or you could tell us what type of accounts these are?

  • How to add two list in one frame using REUSE_ALV_LIST_DISPLAY

    Hi,
    I want to display two list in single output by calling FM 'REUSE_ALV_LIST_DISPLAY' twice.
    I saw one topic posted by Arunava Das as 'ALV Problem' but didn't get the steps to do that.
    Here is his way of doing that "What I have done is gone for the append ALV approach wher I have added the END_OF_LIST Event for the Fisrt reprt and in the Corresponding FORM Routine I have added another made another cALL to the REUSE_ALV_LIST DISPLAY FM with the other table."
    I would be grateful if someone can help me out.

    Hi Ashish,
    The way you have tried i.e. calling the second list in the END_OF_LIST event of first list and like wise that is the correct way of doing it.
    Using this way you can display multiple lists. In the event END_OF_LIST by using a global variable G_COUNTER. the value of which you increment for each list and based on that counter you call different lists in the END_OF_LIST event.
    case G_COUNTER.
      when 1. perform call_first_list.
      when 2. perform call_second_list.
      when 3. perform call_third_list.
    endcase.
    Hope this answers your query
    regards,
    Satyadev Dutta

  • Combining two or more interactive forms

    How do you combine two or more interactive PDF's in Livecycle? I want to combine at least two forms I created separately in Livecycle so I can print them double sided. I am new to this program. If it is a matter of coding, could someone please explain the steps needed to achieve this. I'm hoping it is possible.
    Thanks

    The only way to combine two LiveCycle forms is in Acrobat. There is a button at the top in Arobat Pro that say "Create". Click that and select PDF Portfolio from the bottom of that list. You can then pick how you would like your portfolio to look and work, and then click the "Add Files" button. You can add as many files as you need to. The display can be customized by changing the color themes, importing a background image or map and creating a custom header. The nice thing about a portfolio is that it can contain a variety of files, not just LiveCycle forms. You can import Word files, videos, music, whatever and when the user selects a file, it will open the native program that they have installed on their computer to run it. Individual pages can be extracted and saved to the user's computer, forms can be filled in and saved back to the portfolio.
    The portolio is then saved as a pdf and the total size is less than the sum of all of it's parts. It can then be emailed and opened by anyone with the free Adobe Reader. We use it to combine brochures and forms in the same pdf to make it easy for our clients to access everything they need.
    Hope this helps.

  • How to combine two albums in one ?

    Hi, I bough a new mac and with it came the fastideous task of re-adding all the albums to iTunes once again.
    Everything was going fine until I added a album which has 2 CDs 14 tracks in one CD and 5 more in a Bonus CD what happen when I added the CDs to the library was that iTunes made two different albums.
    I tried changing the info, the name of album, the name of the artist even the release year everything was equal, yet iTunes didn't combine the two albums in one as it should.
    After I selected both albums went to get info, options and in the Part of a compilation I selected Yes, which made the smaller album to disapear, the songs are in the library, but the album disappeared from the album library.
    Any suggestion ?

    Generally setting a common Album title and Album Artist will fix things.
    For deeper problems see Grouping tracks into albums.
    Closing and reopening iTunes will usually restore any album that "disappears" after an edit.
    tt2

  • How to combine two photos in one without white border?

    I am trying to combine two different photos next to each other (each 10 cm * 7.5 cm) in one of 10 cm * 15 cm and save it as a jpg file. Unfortunately when I do this in the print module (custom package) I get a file with a white border. I have set up page settings to 10*15 cm without border. How can I get a combined file without a border?

    Titas,
    This involves row level comparison of the report column data values we can achieve this in BI Publisher but at answers level there is no option.
    Thanks,
    Saichand

  • How do I combine two arrays into one?

    I am trying to combine two byte arrays into one. What function do I use that will put in the information in the same order just combined?

    battler. wrote:
    Julien,
    Used LV for years.  Never knew that (concatenate inputs).  Wouldn't believe the lengths ive used to get around it.  Thanks
    Same here! I actually learned about it taking a sample test for the CLAD.
    Richard

  • Can I combine two objects into one?

    Hi all:
    I got a problem here: I just wonder if anyone knows how to combine the informations which I grabed from a SQL database to an object I obtained from an OO database at runtime.
    I look forward to your reply and appreciate your concern!
    regards
    David
    at [email protected]

    Thanks for you reply, but the combined two objects can not be pre-defined because it is defined at runtime, say, there are a number of objects in database, only when you select the one for combining, you know what it is!
    Cheers
    David

  • How to combine two or more adobe forms in Java web dynpro

    Hi All,
             I have a scenario where I have few screens each  - a separate adobe form. For e.g. One adobe form for item creation, one fore details, one for planning. I need to combine all this into one and save a copy of the PDF.
    Save PDF option is present in the adobe options but it saves only the current form. I want to combine few forms and save the whole thing into 1 PDF document. Is there anyway we can do this?
    I am using web dypro java for Adobe forms on NWDS 7.0
    Adobe Live cycle designer - 7.1
    Adobe Reader - 8.1
    SAP NW SP 12
    PLease help!
    Thank you,
    Vasu

    Hi Amit,
    Thanks for the response but my requirement is different.
    I have to combine the contents of three PDFs (different adobe forms in different views in one web dynpro component) into one PDF ( a separate Adobe Form in different view in the same web dypro component).
    I would be glad to know if you have a solution for such scenario. I am working on this since 4 days with no solution yet.
    Thank you,
    Vasu

  • Can Time Machine combine two HDs into one big one?

    I know Mountain Lion added the ability to use multiple HDs simultaneously (I have done this). As it stands, it just rotates among the different HDs each time it does a backup. Is there a way to have OSX combine two HDs to make a 'virtual' bigger HD?
    The reason I ask this is because my existing iMac has a 1TB internal hard drive. I have two external LaCie drives of 2 TB each that I use for Time Machine. I'm planning on getting one of the new iMacs and custom-ordering it with a 3TB internal drive. Obviously a 2TB drive won't fit, but if OSX can combine the two HDs virtually, it'll end up with a 4TB volume, right? Can it do that?

    A hardware RAID is as reliable as the hardware. I believe the LaCie product you mention is a hardware RAID. I have no opinion of its reliability, and I don't know whether you can configure it as a mirrored RAID.
    Maybe I should clarify. I see no reason to use a RAID for backup unless you need the space. If you need a 6 TB Time Machine volume, you have to use a RAID -- striped, not mirrored. For the safety of your data, regardless of the amount, you need redundant backups, not RAID. That is, you should have at least two independent backups, at least one of which is off site at all times.

Maybe you are looking for

  • Unable to create a book in iPhoto

    Hi, I am unable to create a book in iphoto.  I have created a number of books before, however, now when I choose a theme and click 'create' nothing seems to happen.  When I exit out of iPhoto and load it again, my book appears under the Albums headin

  • How to Eliminate Special Character in SQL LOADER Script

    How to eliminate special character from SQL LOADER script file which suppose not to insert in TABLE example.CSV lile like this <ABC/ , 7747> <DEF/ , 7763> <NEW/ , 7779> <OLD/, 7795> I have to remove < > and / character at the time of loading into tab

  • Messed up on Address on Order

    Its nothing major major, but the address on the order has AVE spelt as AV. I don't know how to get this changed as I would like for it to arrive on time. 

  • BUG - can't log in after sleep on leopard

    I'm using the desktop version on mac os leopard 10.6.3. If I don't close Story before sleep when I open back the macbook Story asks again for password but never accepts the password. I have to close the password window and go back to the main opening

  • RoomExtension: Room manipulation (parameters) not persistent

    Hi Folks, im going crazy with RoomExtensions. (ExtensionPoint: ON_CREATE_ROOM) I get the actual Room via the IRoomInfoReader. If I change for example the description - everything is fine. (I enter the room - and the description is changed) BUT: If I