1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
3cdf0e10cSrcweir
4*122b4424SAndrew Rist<!--***********************************************************
5cdf0e10cSrcweir *
6*122b4424SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
7*122b4424SAndrew Rist * or more contributor license agreements.  See the NOTICE file
8*122b4424SAndrew Rist * distributed with this work for additional information
9*122b4424SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
10*122b4424SAndrew Rist * to you under the Apache License, Version 2.0 (the
11*122b4424SAndrew Rist * "License"); you may not use this file except in compliance
12*122b4424SAndrew Rist * with the License.  You may obtain a copy of the License at
13*122b4424SAndrew Rist *
14*122b4424SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
15*122b4424SAndrew Rist *
16*122b4424SAndrew Rist * Unless required by applicable law or agreed to in writing,
17*122b4424SAndrew Rist * software distributed under the License is distributed on an
18*122b4424SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*122b4424SAndrew Rist * KIND, either express or implied.  See the License for the
20*122b4424SAndrew Rist * specific language governing permissions and limitations
21*122b4424SAndrew Rist * under the License.
22*122b4424SAndrew Rist *
23*122b4424SAndrew Rist ***********************************************************-->
24*122b4424SAndrew Rist
25*122b4424SAndrew Rist
26cdf0e10cSrcweir
27cdf0e10cSrcweir<helpdocument version="1.0">
28cdf0e10cSrcweir<meta>
29cdf0e10cSrcweir<topic id="textshared0212070000xml" indexer="include" status="PUBLISH">
30cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Insert Database Columns</title>
31cdf0e10cSrcweir<filename>/text/shared/02/12070000.xhp</filename>
32cdf0e10cSrcweir</topic>
33cdf0e10cSrcweir<history>
34cdf0e10cSrcweir<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
35cdf0e10cSrcweir<lastedited date="2005-02-11T14:29:38">converted from old format - fpe</lastedited>
36cdf0e10cSrcweir</history>
37cdf0e10cSrcweir</meta>
38cdf0e10cSrcweir<body>
39cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id6269470" localize="false"/>
40cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id3156183" localize="false"/>
41cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147000" xml-lang="en-US" level="1" l10n="U" oldref="1">Insert Database Columns</paragraph>
42cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3143284" xml-lang="en-US" l10n="U" oldref="2"><ahelp hid=".uno:SbaBrwInsert"><variable id="datenintext">Inserts all fields of the marked record into the current document at the cursor position.
43cdf0e10cSrcweir</variable></ahelp> The icon is only visible if the current document is a text document or a spreadsheet.</paragraph>
44cdf0e10cSrcweir<section id="sydatenintext">
45cdf0e10cSrcweir<table id="tbl_id3149760">
46cdf0e10cSrcweir<tablerow>
47cdf0e10cSrcweir<tablecell colspan="" rowspan="">
48cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154186" xml-lang="en-US" l10n="E">
49cdf0e10cSrcweir<image id="img_id3147291" src="res/commandimagelist/sc_sbabrwinsert.png" width="0.222inch" height="0.222inch"><alt id="alt_id3147291" xml-lang="en-US">Icon</alt>
50cdf0e10cSrcweir	</image></paragraph>
51cdf0e10cSrcweir</tablecell>
52cdf0e10cSrcweir<tablecell colspan="" rowspan="">
53cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153527" xml-lang="en-US" l10n="U" oldref="3">Data to Text</paragraph>
54cdf0e10cSrcweir</tablecell>
55cdf0e10cSrcweir</tablerow>
56cdf0e10cSrcweir</table>
57cdf0e10cSrcweir
58cdf0e10cSrcweir</section>
59cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153577" xml-lang="en-US" l10n="U" oldref="4"><switchinline select="appl"><caseinline select="CALC">In the data source browser, select the record that you want to insert into the document and then click the <emph>Data to Text</emph> icon. The record is inserted in the document at the cursor position, with the contents of each individual field of the record copied to a table column. You can also select multiple records and transfer them into the document by clicking the <emph>Data to Text </emph>icon. Each individual record is then written to a new row.
60cdf0e10cSrcweir</caseinline></switchinline></paragraph>
61cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3145345" xml-lang="en-US" l10n="U" oldref="5"><switchinline select="appl"><caseinline select="WRITER">In the data source browser, select the records that you want to insert into the document and then click the <emph>Data to Text</emph> icon, or drag-and-drop data from the data source browser into the document. This opens the <emph>Insert Database Columns </emph>dialog. Select whether the data should be inserted as a <link href="text/shared/02/12070100.xhp" name="table">table</link>, as <link href="text/shared/02/12070200.xhp" name="fields">fields</link> or as <link href="text/shared/02/12070300.xhp" name="text">text</link>.
62cdf0e10cSrcweir</caseinline></switchinline></paragraph>
63cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153031" xml-lang="en-US" l10n="U" oldref="6"><switchinline select="appl"><caseinline select="WRITER">The preferences you set in the<emph> Insert Database Columns </emph>dialog are saved and will be active the next time the dialog is called. This save process is independent of the database and can record the preferences for a maximum of 5 databases.
64cdf0e10cSrcweir</caseinline></switchinline></paragraph>
65cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3156326" xml-lang="en-US" l10n="U" oldref="7"><switchinline select="appl"><caseinline select="WRITER">If data is inserted into the document as a table, the table properties are not saved along with the data in the document. If you select the <emph>AutoFormat</emph> function for formatting the table, $[officename] will note the name of the format template. This template will then be used automatically if you insert data as a table again, unless the preferences have been changed.
66cdf0e10cSrcweir</caseinline></switchinline></paragraph>
67cdf0e10cSrcweir</body>
68cdf0e10cSrcweir</helpdocument>
69