xref: /trunk/main/helpcontent2/source/text/swriter/guide/fields_userdata.xhp (revision c2b55da138273a8c5516c767831837fc98f7fcd3)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
30e4b25e7SAndrew Rist<!--***********************************************************
4cdf0e10cSrcweir *
50e4b25e7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
60e4b25e7SAndrew Rist * or more contributor license agreements.  See the NOTICE file
70e4b25e7SAndrew Rist * distributed with this work for additional information
80e4b25e7SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
90e4b25e7SAndrew Rist * to you under the Apache License, Version 2.0 (the
100e4b25e7SAndrew Rist * "License"); you may not use this file except in compliance
110e4b25e7SAndrew Rist * with the License.  You may obtain a copy of the License at
12cdf0e10cSrcweir *
130e4b25e7SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14cdf0e10cSrcweir *
150e4b25e7SAndrew Rist * Unless required by applicable law or agreed to in writing,
160e4b25e7SAndrew Rist * software distributed under the License is distributed on an
170e4b25e7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
180e4b25e7SAndrew Rist * KIND, either express or implied.  See the License for the
190e4b25e7SAndrew Rist * specific language governing permissions and limitations
200e4b25e7SAndrew Rist * under the License.
21cdf0e10cSrcweir *
220e4b25e7SAndrew Rist ***********************************************************-->
230e4b25e7SAndrew Rist
24*c2b55da1Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26cdf0e10cSrcweir<topic id="textswriterguidefields_userdataxml" indexer="include" status="PUBLISH">
27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">Querying User Data in Fields or Conditions</title>
28cdf0e10cSrcweir<filename>/text/swriter/guide/fields_userdata.xhp</filename>
29cdf0e10cSrcweir</topic>
30cdf0e10cSrcweir</meta>
31cdf0e10cSrcweir<body>
32*c2b55da1Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3153398">
33*c2b55da1Smseidel<bookmark_value>fields; user data</bookmark_value>
34cdf0e10cSrcweir<bookmark_value>user data; querying</bookmark_value>
35cdf0e10cSrcweir<bookmark_value>conditions; user data fields</bookmark_value>
36cdf0e10cSrcweir<bookmark_value>hiding;text, from specific users</bookmark_value>
37cdf0e10cSrcweir<bookmark_value>text; hiding from specific users, with conditions</bookmark_value>
38cdf0e10cSrcweir<bookmark_value>user variables in conditions/fields</bookmark_value>
39cdf0e10cSrcweir</bookmark>
40cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3153398" role="heading" level="1" l10n="U"
41cdf0e10cSrcweiroldref="59"><variable id="fields_userdata"><link href="text/swriter/guide/fields_userdata.xhp" name="Querying User Data in Fields or Conditions">Querying User Data in Fields or Conditions</link>
42cdf0e10cSrcweir</variable></paragraph>
43cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3154239" role="paragraph" l10n="U" oldref="60">You can access and compare some user data from conditions or fields. For example, you can compare user data with the following operators:</paragraph>
44cdf0e10cSrcweir<table id="tbl_id3154255">
45cdf0e10cSrcweir<tablerow>
46cdf0e10cSrcweir<tablecell>
47cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3155889" role="tablehead" l10n="U" oldref="94">Operator</paragraph>
48cdf0e10cSrcweir</tablecell>
49cdf0e10cSrcweir<tablecell>
50cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147110" role="tablehead" l10n="U" oldref="95">Meaning</paragraph>
51cdf0e10cSrcweir</tablecell>
52cdf0e10cSrcweir</tablerow>
53cdf0e10cSrcweir<tablerow>
54cdf0e10cSrcweir<tablecell>
55cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3150508" role="tablecontent" l10n="U" oldref="96">== or EQ</paragraph>
56cdf0e10cSrcweir</tablecell>
57cdf0e10cSrcweir<tablecell>
58cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3150531" role="tablecontent" l10n="U" oldref="97">equals</paragraph>
59cdf0e10cSrcweir</tablecell>
60cdf0e10cSrcweir</tablerow>
61cdf0e10cSrcweir<tablerow>
62cdf0e10cSrcweir<tablecell>
63cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3150725" role="tablecontent" l10n="U" oldref="98">!= or NEQ</paragraph>
64cdf0e10cSrcweir</tablecell>
65cdf0e10cSrcweir<tablecell>
66cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3150748" role="tablecontent" l10n="U" oldref="99">is not equal to</paragraph>
67cdf0e10cSrcweir</tablecell>
68cdf0e10cSrcweir</tablerow>
69cdf0e10cSrcweir</table>
70cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3153167" role="paragraph" l10n="U" oldref="101">If you want, you can use a condition to hide specific text in your document from a specific user.</paragraph>
71cdf0e10cSrcweir<list type="ordered">
72cdf0e10cSrcweir<listitem>
73cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3153190" role="listitem" l10n="U" oldref="102">Select the text in the document that you want to hide.</paragraph>
74cdf0e10cSrcweir</listitem>
75cdf0e10cSrcweir<listitem>
76cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145273" role="listitem" l10n="U" oldref="103">Choose <emph>Insert - Section</emph>.</paragraph>
77cdf0e10cSrcweir</listitem>
78cdf0e10cSrcweir<listitem>
7994e6a959SRegina Henschel<paragraph xml-lang="en-US" id="par_id3145297" role="listitem" l10n="U" oldref="104">In the <item type="menuitem">Hide</item> area, select the <item type="menuitem">Hide</item> check box.</paragraph>
80cdf0e10cSrcweir</listitem>
81cdf0e10cSrcweir<listitem>
82cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3155533" role="listitem" l10n="U" oldref="105">In the <emph>With Condition</emph> box, type <emph>user_lastname == "Doe"</emph>, where "Doe" is the last name of the user that you want to hide the text from. </paragraph>
83cdf0e10cSrcweir</listitem>
84cdf0e10cSrcweir<listitem>
85cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3155573" role="listitem" l10n="U" oldref="107">Click <emph>Insert</emph> and then save the document.</paragraph>
86cdf0e10cSrcweir</listitem>
87cdf0e10cSrcweir</list>
88cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147760" role="note" l10n="U" oldref="108">The name of the hidden section can still be seen in the Navigator.</paragraph>
89cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147777" role="paragraph" l10n="U" oldref="61">The following table is a list of the user variables that you can access when defining a condition or a field:</paragraph>
90cdf0e10cSrcweir<table id="tbl_id3147793">
91cdf0e10cSrcweir<tablerow>
92cdf0e10cSrcweir<tablecell>
93cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147819" role="tablehead" l10n="U" oldref="62">User variables</paragraph>
94cdf0e10cSrcweir</tablecell>
95cdf0e10cSrcweir<tablecell>
96cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147218" role="tablehead" l10n="U" oldref="63">Meaning</paragraph>
97cdf0e10cSrcweir</tablecell>
98cdf0e10cSrcweir</tablerow>
99cdf0e10cSrcweir<tablerow>
100cdf0e10cSrcweir<tablecell>
101cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147245" role="code" l10n="U" oldref="64">user_firstname</paragraph>
102cdf0e10cSrcweir</tablecell>
103cdf0e10cSrcweir<tablecell>
104cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147268" role="paragraph" l10n="U" oldref="65">First name</paragraph>
105cdf0e10cSrcweir</tablecell>
106cdf0e10cSrcweir</tablerow>
107cdf0e10cSrcweir<tablerow>
108cdf0e10cSrcweir<tablecell>
109cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145592" role="code" l10n="U" oldref="66">user_lastname</paragraph>
110cdf0e10cSrcweir</tablecell>
111cdf0e10cSrcweir<tablecell>
112cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145615" role="paragraph" l10n="U" oldref="67">Last name</paragraph>
113cdf0e10cSrcweir</tablecell>
114cdf0e10cSrcweir</tablerow>
115cdf0e10cSrcweir<tablerow>
116cdf0e10cSrcweir<tablecell>
117cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145642" role="code" l10n="U" oldref="68">user_initials</paragraph>
118cdf0e10cSrcweir</tablecell>
119cdf0e10cSrcweir<tablecell>
120cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145666" role="paragraph" l10n="U" oldref="69">Initials</paragraph>
121cdf0e10cSrcweir</tablecell>
122cdf0e10cSrcweir</tablerow>
123cdf0e10cSrcweir<tablerow>
124cdf0e10cSrcweir<tablecell>
125cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3151200" role="code" l10n="U" oldref="70">user_company</paragraph>
126cdf0e10cSrcweir</tablecell>
127cdf0e10cSrcweir<tablecell>
128cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3151223" role="paragraph" l10n="U" oldref="71">Company</paragraph>
129cdf0e10cSrcweir</tablecell>
130cdf0e10cSrcweir</tablerow>
131cdf0e10cSrcweir<tablerow>
132cdf0e10cSrcweir<tablecell>
133cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3151250" role="code" l10n="U" oldref="72">user_street</paragraph>
134cdf0e10cSrcweir</tablecell>
135cdf0e10cSrcweir<tablecell>
136cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3152912" role="paragraph" l10n="U" oldref="73">Street</paragraph>
137cdf0e10cSrcweir</tablecell>
138cdf0e10cSrcweir</tablerow>
139cdf0e10cSrcweir<tablerow>
140cdf0e10cSrcweir<tablecell>
141cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3152940" role="code" l10n="U" oldref="74">user_country</paragraph>
142cdf0e10cSrcweir</tablecell>
143cdf0e10cSrcweir<tablecell>
144cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3152963" role="paragraph" l10n="U" oldref="75">Country</paragraph>
145cdf0e10cSrcweir</tablecell>
146cdf0e10cSrcweir</tablerow>
147cdf0e10cSrcweir<tablerow>
148cdf0e10cSrcweir<tablecell>
149cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3152990" role="code" l10n="U" oldref="76">user_zipcode</paragraph>
150cdf0e10cSrcweir</tablecell>
151cdf0e10cSrcweir<tablecell>
152cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145679" role="paragraph" l10n="U" oldref="77">Zip Code</paragraph>
153cdf0e10cSrcweir</tablecell>
154cdf0e10cSrcweir</tablerow>
155cdf0e10cSrcweir<tablerow>
156cdf0e10cSrcweir<tablecell>
157cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145706" role="code" l10n="U" oldref="78">user_city</paragraph>
158cdf0e10cSrcweir</tablecell>
159cdf0e10cSrcweir<tablecell>
160cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145729" role="paragraph" l10n="U" oldref="79">City</paragraph>
161cdf0e10cSrcweir</tablecell>
162cdf0e10cSrcweir</tablerow>
163cdf0e10cSrcweir<tablerow>
164cdf0e10cSrcweir<tablecell>
165cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145756" role="code" l10n="U" oldref="80">user_title</paragraph>
166cdf0e10cSrcweir</tablecell>
167cdf0e10cSrcweir<tablecell>
168cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3145779" role="paragraph" l10n="U" oldref="81">Title</paragraph>
169cdf0e10cSrcweir</tablecell>
170cdf0e10cSrcweir</tablerow>
171cdf0e10cSrcweir<tablerow>
172cdf0e10cSrcweir<tablecell>
173cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3156284" role="code" l10n="U" oldref="82">user_position</paragraph>
174cdf0e10cSrcweir</tablecell>
175cdf0e10cSrcweir<tablecell>
176cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3156307" role="paragraph" l10n="U" oldref="83">Position</paragraph>
177cdf0e10cSrcweir</tablecell>
178cdf0e10cSrcweir</tablerow>
179cdf0e10cSrcweir<tablerow>
180cdf0e10cSrcweir<tablecell>
181cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3156334" role="code" l10n="U" oldref="84">user_tel_work</paragraph>
182cdf0e10cSrcweir</tablecell>
183cdf0e10cSrcweir<tablecell>
184cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3156357" role="paragraph" l10n="U" oldref="85">Business telephone number</paragraph>
185cdf0e10cSrcweir</tablecell>
186cdf0e10cSrcweir</tablerow>
187cdf0e10cSrcweir<tablerow>
188cdf0e10cSrcweir<tablecell>
189cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3156384" role="code" l10n="U" oldref="86">user_tel_home</paragraph>
190cdf0e10cSrcweir</tablecell>
191cdf0e10cSrcweir<tablecell>
192cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3149728" role="paragraph" l10n="U" oldref="87">Home telephone number</paragraph>
193cdf0e10cSrcweir</tablecell>
194cdf0e10cSrcweir</tablerow>
195cdf0e10cSrcweir<tablerow>
196cdf0e10cSrcweir<tablecell>
197cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3149756" role="code" l10n="U" oldref="88">user_fax</paragraph>
198cdf0e10cSrcweir</tablecell>
199cdf0e10cSrcweir<tablecell>
200cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3149778" role="paragraph" l10n="U" oldref="89">Fax number</paragraph>
201cdf0e10cSrcweir</tablecell>
202cdf0e10cSrcweir</tablerow>
203cdf0e10cSrcweir<tablerow>
204cdf0e10cSrcweir<tablecell>
205cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3149806" role="code" l10n="U" oldref="90">user_email</paragraph>
206cdf0e10cSrcweir</tablecell>
207cdf0e10cSrcweir<tablecell>
208cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147294" role="paragraph" l10n="U" oldref="91">E-mail address</paragraph>
209cdf0e10cSrcweir</tablecell>
210cdf0e10cSrcweir</tablerow>
211cdf0e10cSrcweir<tablerow>
212cdf0e10cSrcweir<tablecell>
213cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147321" role="code" l10n="U" oldref="92">user_state</paragraph>
214cdf0e10cSrcweir</tablecell>
215cdf0e10cSrcweir<tablecell>
216cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147344" role="paragraph" l10n="U" oldref="93">State</paragraph>
217cdf0e10cSrcweir</tablecell>
218cdf0e10cSrcweir</tablerow>
219cdf0e10cSrcweir</table>
220cdf0e10cSrcweir<section id="relatedtopics">
221cdf0e10cSrcweir<embed href="text/swriter/guide/fields.xhp#fields"/>
222cdf0e10cSrcweir<embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/>
223cdf0e10cSrcweir<embed href="text/swriter/guide/hidden_text.xhp#hidden_text"/>
224cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3147392" role="paragraph" l10n="C"><link href="text/swriter/02/14020000.xhp" name="List of operators">List of operators</link></paragraph>
225cdf0e10cSrcweir</section>
226cdf0e10cSrcweir</body>
227cdf0e10cSrcweir</helpdocument>
228