1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
3122b4424SAndrew Rist<!--***********************************************************
4*bb3464c4Smseidel *
5122b4424SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
6122b4424SAndrew Rist * or more contributor license agreements.  See the NOTICE file
7122b4424SAndrew Rist * distributed with this work for additional information
8122b4424SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
9122b4424SAndrew Rist * to you under the Apache License, Version 2.0 (the
10122b4424SAndrew Rist * "License"); you may not use this file except in compliance
11122b4424SAndrew Rist * with the License.  You may obtain a copy of the License at
12*bb3464c4Smseidel *
13122b4424SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*bb3464c4Smseidel *
15122b4424SAndrew Rist * Unless required by applicable law or agreed to in writing,
16122b4424SAndrew Rist * software distributed under the License is distributed on an
17122b4424SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18122b4424SAndrew Rist * KIND, either express or implied.  See the License for the
19122b4424SAndrew Rist * specific language governing permissions and limitations
20122b4424SAndrew Rist * under the License.
21*bb3464c4Smseidel *
22122b4424SAndrew Rist ***********************************************************-->
23122b4424SAndrew Rist
24cdf0e10cSrcweir<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textshared0212070000xml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Insert Database Columns</title>
28cdf0e10cSrcweir<filename>/text/shared/02/12070000.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
32cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id6269470" localize="false"/>
33cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id3156183" localize="false"/>
34cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147000" xml-lang="en-US" level="1" l10n="U" oldref="1">Insert Database Columns</paragraph>
35cdf0e10cSrcweir<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.
36cdf0e10cSrcweir</variable></ahelp> The icon is only visible if the current document is a text document or a spreadsheet.</paragraph>
37cdf0e10cSrcweir<section id="sydatenintext">
38cdf0e10cSrcweir<table id="tbl_id3149760">
39cdf0e10cSrcweir<tablerow>
40cdf0e10cSrcweir<tablecell colspan="" rowspan="">
41cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154186" xml-lang="en-US" l10n="E">
42cdf0e10cSrcweir<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>
43*bb3464c4Smseidel</image></paragraph>
44cdf0e10cSrcweir</tablecell>
45cdf0e10cSrcweir<tablecell colspan="" rowspan="">
46cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153527" xml-lang="en-US" l10n="U" oldref="3">Data to Text</paragraph>
47cdf0e10cSrcweir</tablecell>
48cdf0e10cSrcweir</tablerow>
49cdf0e10cSrcweir</table>
50cdf0e10cSrcweir</section>
51*bb3464c4Smseidel<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.
52cdf0e10cSrcweir</caseinline></switchinline></paragraph>
53*bb3464c4Smseidel<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>.
54cdf0e10cSrcweir</caseinline></switchinline></paragraph>
55*bb3464c4Smseidel<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.
56cdf0e10cSrcweir</caseinline></switchinline></paragraph>
57cdf0e10cSrcweir<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.
58cdf0e10cSrcweir</caseinline></switchinline></paragraph>
59cdf0e10cSrcweir</body>
60cdf0e10cSrcweir</helpdocument>
61