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