<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 13, 2015 at 3:45 PM, P. Echols <span dir="ltr"><<a href="mailto:p.echo926@gmail.com" target="_blank">p.echo926@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sun, Dec 13, 2015 at 12:16 PM, Tommy Trussell <span dir="ltr"><<a href="mailto:tommy.trussell@gmail.com" target="_blank">tommy.trussell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 11, 2015 at 1:15 PM, P. Echols <span dir="ltr"><<a href="mailto:p.echo926@gmail.com" target="_blank">p.echo926@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Greetings: <br><br></div><trim><br><br></div>I manage projects where I need to generate written reports, action requests, etc. with project specific information.  Because of my existing extensive library of forms, I need to stay with LO writer.<br><br></div>I know it is possible to set up a database with a single table, each record having the data for one project.  Insert fields for that db into a template, and then open the template and select the particular record to populate.  <br><br></div>BUT, in my project, there are two items that require a list more appropriate for a linked table.  Imagine a report about an author.  Details specific to that author are from the "AuthorInfo" table, the author's bibliography is a separate table and publishers are another table.  I need to be able to generate a Writer template that will import the individual fields from the AuthorInfo table, but also allow inserting the bibliography and publisher info as if pasting in a spreadsheet.<br><br></div><br></div></blockquote></div></div></div></blockquote></span><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">It sounds like you are creating more of a directory (single document with multiple data rows in it). I don't believe the mail merge tools are able to insert new rows into tables, but it would be logical and useful if they could. (I know you can set up a blank table and insert database contents into it -- that's how the mailing label tools work.)</div><div class="gmail_extra"><br></div></div></blockquote><div><br></div></span><div>What I am really trying to do is both, have a document that contains information from the basic information table sprinkled throughout, but includes a table populated by a linked table.  Do you know how to set up such a table in a document?  I have not found a guide that shows it.</div><span><div> </div><div><br></div></span></div></div></div></blockquote><div><br></div><div>I've made some progress.  For those who are interested, here is what works (sort of) and the remaining challenge and workaround.  </div><div><br></div><div>Note: I have added some instructions for those who are doing this for the first time.  So the following is what I see as the workflow for the entire document.  Remember, this is creating a document that will contain information from one record in a "master" table and multiple records from a linked table.</div><div><br></div><div>First, create the document with the text you want.  Then, insert the fields you want using menu item: Insert | Fields | More Fields.  On the Database tab, select "Mail merge fields", pick the master table and put the fields where you want them.</div><div><br></div><div>Where you want to have multiple rows from a linked table, go back to the Fields dialog just like for the fields from the master table.  This time, however, select the fields from the linked table.  You could do this in a table, on one line, several lines or a paragraph.  Once you are happy with one record, go to where the next record will start. Then back in the "Fields" entry box, select "next record" in the left side of the box and click insert.  It does not appear to do anything, but carry on and repeat entry of the fields as before.  </div><div><br></div><div>Repeat for as many records as you think you'll need.  Obviously, copy and paste are your friend in this procedure.  Save your document as a template.</div><div><br></div><div>When you want to generate the document, open the template and you will see all the linked fields.  Click the data sources icon (F4) and you will see what looks like a spreadsheet at the top of the screen.  Make sure you also see the explorer on the left.  In explorer, select the master table.  In the "spreadsheet" portion, select and highlight the record you want then click the "Data to Fields" icon.  Repeat for the linked table.  The only difference being that instead of selecting one record, select all the records you want.  </div><div><br></div><div>Challenges:</div><div>1. Writer does not seem to know how to handle linked tables.  One method to deal with this would be to run a query in Base, and set up the form to use the query results rather than the linked table.  It appears that you would still have to manually select all the records in the linked table.  </div><div><br></div><div>2. I have not found a code to automatically add the information for more records to your template.  So, if the procedure for multiple records results in a template with space for five records, but your data has seven,  only the first five will show.  The solution, once you see that, is to copy / paste the last two records again, then redo the "data to fields" procedure.</div><div><br></div><div><br></div></div><br></div></div>