xref: /trunk/main/helpcontent2/source/text/shared/explorer/database/05020100.xhp (revision 65b0796279e4cdd02feb07f2acbfa01249253fc2)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
30ba1032bSAndrew Rist<!--***********************************************************
4cdf0e10cSrcweir *
50ba1032bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
60ba1032bSAndrew Rist * or more contributor license agreements.  See the NOTICE file
70ba1032bSAndrew Rist * distributed with this work for additional information
80ba1032bSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
90ba1032bSAndrew Rist * to you under the Apache License, Version 2.0 (the
100ba1032bSAndrew Rist * "License"); you may not use this file except in compliance
110ba1032bSAndrew Rist * with the License.  You may obtain a copy of the License at
12cdf0e10cSrcweir *
130ba1032bSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14cdf0e10cSrcweir *
150ba1032bSAndrew Rist * Unless required by applicable law or agreed to in writing,
160ba1032bSAndrew Rist * software distributed under the License is distributed on an
170ba1032bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
180ba1032bSAndrew Rist * KIND, either express or implied.  See the License for the
190ba1032bSAndrew Rist * specific language governing permissions and limitations
200ba1032bSAndrew Rist * under the License.
21cdf0e10cSrcweir *
220ba1032bSAndrew Rist ***********************************************************-->
230ba1032bSAndrew Rist
24cdf0e10cSrcweir<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textsharedexplorerdatabase05020100xml" indexer="exclude" status="PUBLISH">
27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Relations</title>
28cdf0e10cSrcweir<filename>/text/shared/explorer/database/05020100.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
32cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:DBAddRelation" id="bm_id3155150" localize="false"/>
3388cae784Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3150499">
3488cae784Smseidel<bookmark_value>relations; properties (Base)</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>key fields for relations (Base)</bookmark_value>
36cdf0e10cSrcweir<bookmark_value>cascading update (Base)</bookmark_value>
37cdf0e10cSrcweir</bookmark><comment>mw added "(Base)" to all entries</comment>
38*65b07962Smseidel<paragraph role="heading" id="hd_id3150445" xml-lang="en-US" level="1" l10n="U">Relations</paragraph>
39*65b07962Smseidel<paragraph role="paragraph" id="par_id3150499" xml-lang="en-US" l10n="U"><ahelp hid=".uno:DBAddRelation">Allows you to define and edit a relation between two tables.</ahelp></paragraph>
40cdf0e10cSrcweir<section id="howtoget">
41cdf0e10cSrcweir<embed href="text/shared/00/00000450.xhp#relationen"/>
42cdf0e10cSrcweir</section>
43*65b07962Smseidel<paragraph role="note" id="par_id3155136" xml-lang="en-US" l10n="U">The update and delete options are only available if they are supported by the database used.</paragraph>
44cdf0e10cSrcweir<!-- removed HID DBACCESS_LISTBOX_DLG_REL_PROPERTIES_LB_LEFT_TABLE -->
45cdf0e10cSrcweir<!-- removed HID DBACCESS_LISTBOX_DLG_REL_PROPERTIES_LB_RIGHT_TABLE -->
46*65b07962Smseidel<paragraph role="heading" id="hd_id3155341" xml-lang="en-US" level="2" l10n="U">Tables</paragraph>
47*65b07962Smseidel<paragraph role="paragraph" id="par_id3153880" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_LISTBOX_DLG_REL_PROPERTIES_LB_RIGHT_TABLE" visibility="hidden">This is where the two related tables are listed.</ahelp> If you create a new relation, you can select one table from each of the combo boxes in the top part of the dialog.</paragraph>
48*65b07962Smseidel<paragraph role="paragraph" id="par_id3154047" xml-lang="en-US" l10n="U">If you opened the <emph>Relations</emph> dialog for an existing relation by double-clicking the connection lines in the Relation window, then the tables involved in the relation cannot be modified.</paragraph>
49cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_RELDLG_KEYFIELDS" id="bm_id3153716" localize="false"/>
50*65b07962Smseidel<paragraph role="heading" id="hd_id3153822" xml-lang="en-US" level="2" l10n="U">Key fields</paragraph>
51*65b07962Smseidel<paragraph role="paragraph" id="par_id3159157" xml-lang="en-US" l10n="U"><ahelp hid="HID_RELDLG_KEYFIELDS">Defines the key fields for the relation.</ahelp></paragraph>
52cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_RELATIONDIALOG_LEFTFIELDCELL" id="bm_id3153561" localize="false"/>
53cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/DBACCESS_HID_RELATIONDIALOG_RIGHTFIELDCELL" id="bm_id3153543" localize="false"/>
54*65b07962Smseidel<paragraph role="paragraph" id="par_id3149235" xml-lang="en-US" l10n="U"><ahelp hid="HID_RELATIONDIALOG_RIGHTFIELDCELL">The names of the tables selected for the link appear here as column names.</ahelp> If you click a field, you can use the arrow buttons to select a field from the table. Each relation is written in a row.</paragraph>
55*65b07962Smseidel<paragraph role="heading" id="hd_id3145609" xml-lang="en-US" level="2" l10n="U">Update options</paragraph>
56*65b07962Smseidel<paragraph role="paragraph" id="par_id3153061" xml-lang="en-US" l10n="U">Here you can select options that take effect when there are changes to a primary key field.</paragraph>
57cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_NO_CASC_UPD -->
58*65b07962Smseidel<paragraph role="heading" id="hd_id3149046" xml-lang="en-US" level="3" l10n="U">No action</paragraph>
59*65b07962Smseidel<paragraph role="paragraph" id="par_id3152360" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_NO_CASC_UPD">Specifies that any change made to a primary key does not affect other external key fields.</ahelp></paragraph>
60cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_UPD -->
61*65b07962Smseidel<paragraph role="heading" id="hd_id3148664" xml-lang="en-US" level="3" l10n="U">Updating cascade</paragraph>
62*65b07962Smseidel<paragraph role="paragraph" id="par_id3154073" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_UPD">Updates all the external key fields if the value of the corresponding primary key has been modified (Cascading Update).</ahelp></paragraph>
63cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_UPD_NULL -->
64*65b07962Smseidel<paragraph role="heading" id="hd_id3145171" xml-lang="en-US" level="3" l10n="U">Set null</paragraph>
65*65b07962Smseidel<paragraph role="paragraph" id="par_id3154123" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_UPD_NULL"> If the corresponding primary key has been modified, use this option to set the "IS NULL" value to all external key fields. IS NULL means that the field is empty.</ahelp></paragraph>
66cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_UPD_DEFAULT -->
67*65b07962Smseidel<paragraph role="heading" id="hd_id3150448" xml-lang="en-US" level="3" l10n="U">Set default</paragraph>
68*65b07962Smseidel<paragraph role="paragraph" id="par_id3151041" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_UPD_DEFAULT"> If the corresponding primary key has been modified, use this option to set a default value to all external key fields.</ahelp> During the creation of the corresponding table, the default value of an external key field will be defined when you assign the field properties.</paragraph>
69*65b07962Smseidel<paragraph role="heading" id="hd_id3125863" xml-lang="en-US" level="2" l10n="U">Delete options</paragraph>
70*65b07962Smseidel<paragraph role="paragraph" id="par_id3153193" xml-lang="en-US" l10n="U">Here you can select options that take effect when a primary key field is deleted.</paragraph>
71cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_NO_CASC_DEL -->
72*65b07962Smseidel<paragraph role="heading" id="hd_id3159252" xml-lang="en-US" level="3" l10n="U">No action</paragraph>
73*65b07962Smseidel<paragraph role="paragraph" id="par_id3145785" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_NO_CASC_DEL">Specifies that the deletion of a primary key will not have any effect on other external key fields.</ahelp></paragraph>
74cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_DEL -->
75*65b07962Smseidel<paragraph role="heading" id="hd_id3154146" xml-lang="en-US" level="3" l10n="U">Delete cascade</paragraph>
76*65b07962Smseidel<paragraph role="paragraph" id="par_id3155309" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_DEL">Specifies that all external key fields will be deleted if you delete the corresponding primary key field.</ahelp></paragraph>
77*65b07962Smseidel<paragraph role="warning" id="par_id3153140" xml-lang="en-US" l10n="U">When you delete a primary key field with the <emph>Delete cascade</emph> option, all records from other tables that have this key as their foreign key are also deleted. Use this option with great care; it is possible that a major portion of the database can be deleted.</paragraph>
78cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_DEL_NULL -->
79*65b07962Smseidel<paragraph role="heading" id="hd_id3152596" xml-lang="en-US" level="3" l10n="U">Set null</paragraph>
80*65b07962Smseidel<paragraph role="paragraph" id="par_id3153363" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_DEL_NULL">If you delete the corresponding primary key, the "IS NULL" value will be assigned to all external key fields.</ahelp></paragraph>
81cdf0e10cSrcweir<!-- removed HID DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_DEL_DEFAULT -->
82*65b07962Smseidel<paragraph role="heading" id="hd_id3145272" xml-lang="en-US" level="3" l10n="U">Set Default</paragraph>
83*65b07962Smseidel<paragraph role="paragraph" id="par_id3154320" xml-lang="en-US" l10n="U"><ahelp hid="DBACCESS_RADIOBUTTON_DLG_REL_PROPERTIES_RB_CASC_DEL_DEFAULT">If you delete the corresponding primary key, a set value will be set to all external key fields.</ahelp></paragraph>
84cdf0e10cSrcweir</body>
85cdf0e10cSrcweir</helpdocument>
86