01170202.xhp (67e470da) 01170202.xhp (bb6d2bd0)
1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
3
4<!--***********************************************************
4<!--***********************************************************
5 *
5 *
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License. You may obtain a copy of the License at
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License. You may obtain a copy of the License at
13 *
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied. See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied. See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 *
22 *
23 ***********************************************************-->
24
25
23 ***********************************************************-->
24
25
26
27
26
28<meta>
29 <topic id="textshared0201170202xml" indexer="include" status="PUBLISH">
30 <title xml-lang="en-US" id="tit">Events</title>
31 <filename>/text/shared/02/01170202.xhp</filename>
32 </topic>
33 </meta>
34 <body>
35 <section id="ereignisse">
36<bookmark xml-lang="en-US" branch="index" id="bm_id3150499"><bookmark_value>forms; events</bookmark_value>
37 <bookmark_value>events;in forms</bookmark_value>
38</bookmark>
39<paragraph xml-lang="en-US" id="hd_id3150499" role="heading" level="1" l10n="U" oldref="1"><link href="text/shared/02/01170202.xhp" name="Events">Events</link></paragraph>
27<meta>
28 <topic id="textshared0201170202xml" indexer="include" status="PUBLISH">
29 <title xml-lang="en-US" id="tit">Events</title>
30 <filename>/text/shared/02/01170202.xhp</filename>
31 </topic>
32 </meta>
33 <body>
34 <section id="ereignisse">
35<bookmark xml-lang="en-US" branch="index" id="bm_id3150499"><bookmark_value>forms; events</bookmark_value>
36 <bookmark_value>events;in forms</bookmark_value>
37</bookmark>
38<paragraph xml-lang="en-US" id="hd_id3150499" role="heading" level="1" l10n="U" oldref="1"><link href="text/shared/02/01170202.xhp" name="Events">Events</link></paragraph>
40 <paragraph xml-lang="en-US" id="par_id3147043" role="paragraph" l10n="U" oldref="2">The<emph> Events </emph>tab page, allows you to assign a macro to certain events which occur in a form.</paragraph>
39 <paragraph xml-lang="en-US" id="par_id3147043" role="paragraph" l10n="U" oldref="2">The <emph>Events</emph> tab page, allows you to assign a macro to certain events which occur in a form.</paragraph>
41 </section>
42 <section id="howtoget">
43 <embed href="text/shared/00/00040501.xhp#formulareigenschaftenereignisse"/>
44 </section>
40 </section>
41 <section id="howtoget">
42 <embed href="text/shared/00/00040501.xhp#formulareigenschaftenereignisse"/>
43 </section>
45 <paragraph xml-lang="en-US" id="par_id3159233" role="paragraph" l10n="U" oldref="3">To link an event with a macro, first write a macro that contains all the commands to be executed when the event happens. Then assign this macro to the respective event by clicking the <emph>... </emph>button beside the corresponding event. The<emph> Assign Macro </emph>dialog opens, where you can select the macro.</paragraph>
44 <paragraph xml-lang="en-US" id="par_id3159233" role="paragraph" l10n="U" oldref="3">To link an event with a macro, first write a macro that contains all the commands to be executed when the event happens. Then assign this macro to the respective event by clicking the <emph>...</emph> button beside the corresponding event. The <emph>Assign Macro</emph> dialog opens, where you can select the macro.</paragraph>
46 <paragraph xml-lang="en-US" id="par_id3149182" role="paragraph" l10n="U" oldref="29">The following actions can be configured individually, meaning that you can use your own dialogs to depict an action:</paragraph>
47 <list type="ordered">
48 <listitem>
49 <paragraph xml-lang="en-US" id="par_id3166460" role="listitem" l10n="U" oldref="30">Displaying an error message,</paragraph>
50 </listitem>
51 </list>
52 <list type="ordered">
53 <listitem>

--- 92 unchanged lines hidden (view full) ---

146<paragraph xml-lang="en-US" id="hd_id3145749" role="heading" level="2" l10n="U"
147 oldref="47">After record action</paragraph>
148 <paragraph xml-lang="en-US" id="par_id3146975" role="paragraph" l10n="U" oldref="59"><ahelp hid="HID_EVT_ROWCHANGE">The<emph> After record action </emph>event occurs directly after the current record has been changed.</ahelp></paragraph>
149 </section>
150 <section id="Section4">
151<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_POSITIONING" id="bm_id3155413" localize="false"/>
152<paragraph xml-lang="en-US" id="hd_id3154012" role="heading" level="2" l10n="U"
153 oldref="48">Before record change</paragraph>
45 <paragraph xml-lang="en-US" id="par_id3149182" role="paragraph" l10n="U" oldref="29">The following actions can be configured individually, meaning that you can use your own dialogs to depict an action:</paragraph>
46 <list type="ordered">
47 <listitem>
48 <paragraph xml-lang="en-US" id="par_id3166460" role="listitem" l10n="U" oldref="30">Displaying an error message,</paragraph>
49 </listitem>
50 </list>
51 <list type="ordered">
52 <listitem>

--- 92 unchanged lines hidden (view full) ---

145<paragraph xml-lang="en-US" id="hd_id3145749" role="heading" level="2" l10n="U"
146 oldref="47">After record action</paragraph>
147 <paragraph xml-lang="en-US" id="par_id3146975" role="paragraph" l10n="U" oldref="59"><ahelp hid="HID_EVT_ROWCHANGE">The<emph> After record action </emph>event occurs directly after the current record has been changed.</ahelp></paragraph>
148 </section>
149 <section id="Section4">
150<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_POSITIONING" id="bm_id3155413" localize="false"/>
151<paragraph xml-lang="en-US" id="hd_id3154012" role="heading" level="2" l10n="U"
152 oldref="48">Before record change</paragraph>
154 <paragraph xml-lang="en-US" id="par_id3149664" role="paragraph" l10n="U" oldref="60"><ahelp hid="HID_EVT_POSITIONING">The<emph> Before record change </emph>event occurs before the current record pointer is changed.</ahelp>. For example, the linked macro can prevent this action by returning "FALSE".</paragraph>
153 <paragraph xml-lang="en-US" id="par_id3149664" role="paragraph" l10n="U" oldref="60"><ahelp hid="HID_EVT_POSITIONING">The<emph> Before record change </emph>event occurs before the current record pointer is changed.</ahelp> For example, the linked macro can prevent this action by returning "FALSE".</paragraph>
155 </section>
156 <section id="Section3">
157<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_POSITIONED" id="bm_id3150420" localize="false"/>
158<paragraph xml-lang="en-US" id="hd_id3157975" role="heading" level="2" l10n="U"
159 oldref="49">After record change</paragraph>
154 </section>
155 <section id="Section3">
156<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_POSITIONED" id="bm_id3150420" localize="false"/>
157<paragraph xml-lang="en-US" id="hd_id3157975" role="heading" level="2" l10n="U"
158 oldref="49">After record change</paragraph>
160 <paragraph xml-lang="en-US" id="par_id3154098" role="paragraph" l10n="U" oldref="61"><ahelp hid="HID_EVT_POSITIONED">The<emph> After record change </emph>event occurs directly after the current record pointer has been changed.</ahelp>.</paragraph>
159 <paragraph xml-lang="en-US" id="par_id3154098" role="paragraph" l10n="U" oldref="61"><ahelp hid="HID_EVT_POSITIONED">The<emph> After record change </emph>event occurs directly after the current record pointer has been changed.</ahelp></paragraph>
161 </section>
162 <section id="Section2">
163<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_APPROVEPARAMETER" id="bm_id3149298" localize="false"/>
164<paragraph xml-lang="en-US" id="hd_id3151076" role="heading" level="2" l10n="U"
165 oldref="50">Fill parameters</paragraph>
160 </section>
161 <section id="Section2">
162<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_APPROVEPARAMETER" id="bm_id3149298" localize="false"/>
163<paragraph xml-lang="en-US" id="hd_id3151076" role="heading" level="2" l10n="U"
164 oldref="50">Fill parameters</paragraph>
166 <paragraph xml-lang="en-US" id="par_id3147396" role="paragraph" l10n="U" oldref="62"><ahelp hid="HID_EVT_APPROVEPARAMETER">The<emph> Fill parameters </emph>event occurs when the form to be loaded has parameters that must be filled out.</ahelp> For example, the data source of the form can be the following SQL command:</paragraph>
165 <paragraph xml-lang="en-US" id="par_id3147396" role="paragraph" l10n="U" oldref="62"><ahelp hid="HID_EVT_APPROVEPARAMETER">The <emph>Fill parameters</emph> event occurs when the form to be loaded has parameters that must be filled out.</ahelp> For example, the data source of the form can be the following SQL command:</paragraph>
167 <paragraph xml-lang="en-US" id="par_id3148773" role="paragraph" l10n="U" oldref="63">SELECT * FROM address WHERE name=:name</paragraph>
168 <paragraph xml-lang="en-US" id="par_id3149581" role="paragraph" l10n="U" oldref="64">Here :name is a parameter that must be filled out when loading. The parameter is automatically filled out from the parent form if possible. If the parameter cannot be filled out, this event is called and a linked macro can fill out the parameter.</paragraph>
169 </section>
170 <section id="Section1">
171<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ERROROCCURED" id="bm_id3148387" localize="false"/>
172<paragraph xml-lang="en-US" id="hd_id3146926" role="heading" level="2" l10n="U" oldref="9">Error occurred</paragraph>
173 <paragraph xml-lang="en-US" id="par_id3149485" role="paragraph" l10n="U" oldref="10"><ahelp hid="HID_EVT_ERROROCCURED">The<emph> Error occurred </emph>event is activated if an error occurs when accessing the data source.</ahelp> This applies to forms, list boxes and combo boxes.</paragraph>
174 </section>
175</sort>
176</body>
177</helpdocument>
166 <paragraph xml-lang="en-US" id="par_id3148773" role="paragraph" l10n="U" oldref="63">SELECT * FROM address WHERE name=:name</paragraph>
167 <paragraph xml-lang="en-US" id="par_id3149581" role="paragraph" l10n="U" oldref="64">Here :name is a parameter that must be filled out when loading. The parameter is automatically filled out from the parent form if possible. If the parameter cannot be filled out, this event is called and a linked macro can fill out the parameter.</paragraph>
168 </section>
169 <section id="Section1">
170<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ERROROCCURED" id="bm_id3148387" localize="false"/>
171<paragraph xml-lang="en-US" id="hd_id3146926" role="heading" level="2" l10n="U" oldref="9">Error occurred</paragraph>
172 <paragraph xml-lang="en-US" id="par_id3149485" role="paragraph" l10n="U" oldref="10"><ahelp hid="HID_EVT_ERROROCCURED">The<emph> Error occurred </emph>event is activated if an error occurs when accessing the data source.</ahelp> This applies to forms, list boxes and combo boxes.</paragraph>
173 </section>
174</sort>
175</body>
176</helpdocument>