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