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