<html><head><title>drag and drop with the data source view</title><meta name="filename" content="text/common/guide/dragdrop_beamer"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
table.Tabelle1{
margin-left:0cm; margin-right:0.005cm;}
span.Tabelle1A{
width:1.499cm;}
span.Tabelle1B{
width:16.496cm;}
table.Tabelle2{
}
span.Tabelle2A{
width:1.499cm;}
span.Tabelle2B{
width:16.498cm;}
tr.Tabelle21{
}
td.Tabelle2A1{
}
p.P1{
}
span.T1{
font-weight:bold;}
span.fr1{
}
span.fr2{
}
</style></head><body>
<p class="P1"/>
<p class="Head1"><help:key-word value="drag and drop; data source view" tag="kw68259_2" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="data source view; drag and drop" tag="kw68259_3" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="dragdrop_beamer" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68259">drag and drop with the data source view</help:link></help:to-be-embedded></p>
<p class="Paragraph">The simplest and quickest way of transferring data from a data source into a text or spreadsheet document, or creating forms based on a data source, is the drag and drop method.</p>
<p class="Paragraph"><help:key-word value="Copying with Drag&Drop" tag="kw68259_1" xmlns:help="http://openoffice.org/2000/help"/>Copying with Drag&Drop</p>
</span></th></tr></table>
<p class="Paragraph">If you make a mistake during drag & drop and want to reverse the function, position the cursor in your document and select the Undo command in the <span class="T1">Edit</span> menu (or via the keyboard).</p>
<p class="Paragraph">Here we describe how to transfer data from a data source into a document. Working in the opposite direction, you can likewise copy by drag and drop: Simple text can also be copied by drag and drop from a document into a data field. The <help:link Id="65806" Eid="dddoktab" xmlns:help="http://openoffice.org/2000/help">Reference Help</help:link> explains how to do this.</p>
</span></th></tr></table>
<p class="Head3">Using Data in a Text Document</p>
<p class="Paragraph">You can insert a database field in a text document by dragging a field name from the column header of the data source view into the document. This inserts a field for this database field in the document. This is especially useful when designing form letters. Simply drag the desired fields - home address, form of address etc. - into your document.</p>
<p class="Paragraph">The best way to insert a complete record is to select the corresponding header and drag it into the document. When you release the mouse button, the <help:link Id="65967" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Insert database columns</span></help:link> dialog appears, where you can decide whether to use all database fields, and whether to copy the data into the document as text, a table or fields. All currently selected records will be inserted.</p>
<p class="Head3">Applying data to a table document</p>
<p class="Paragraph">You can insert one or more records into the current sheet of a spreadsheet by selecting the rows in the data source view and dragging and dropping them into the spreadsheet. The data is inserted in the place where you release the mouse button.</p>
<p class="Head3">Inserting controls in a text form</p>
<p class="Paragraph">When you create a text form linked to a database, you can generate controls by drag and drop from the data source view:</p>
<p class="Paragraph">When you drag a database column into the text document, you insert a field. If you hold down (Shift)<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(Command)</help:case><help:default>(Ctrl)</help:default></help:switch> while dragging, a text field is inserted, grouped with an appropriate label field. The text field already contains all the database information which you need for the form.</p>