1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <helpdocument version=
"1.0">
5 ***********************************************************************
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9 * Copyright 2008 by Sun Microsystems, Inc.
11 * OpenOffice.org - a multi-platform office productivity suite
13 * $RCSfile: soffice2xmlhelp.xsl,v $
16 * This file is part of OpenOffice.org.
18 * OpenOffice.org is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License version 3
20 * only, as published by the Free Software Foundation.
22 * OpenOffice.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License version 3 for more details
26 * (a copy is included in the LICENSE file that accompanied this code).
28 * You should have received a copy of the GNU Lesser General Public License
29 * version 3 along with OpenOffice.org. If not, see
30 * <http://www.openoffice.org/license.html>
31 * for a copy of the LGPLv3 License.
33 ************************************************************************
38 <topic id=
"textswriterguidefields_userdataxml" indexer=
"include" status=
"PUBLISH">
39 <title xml-lang=
"en-US" id=
"tit">Querying User Data in Fields or Conditions
</title>
40 <filename>/text/swriter/guide/fields_userdata.xhp
</filename>
44 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3153398"><bookmark_value>fields; user data
</bookmark_value>
45 <bookmark_value>user data; querying
</bookmark_value>
46 <bookmark_value>conditions; user data fields
</bookmark_value>
47 <bookmark_value>hiding;text, from specific users
</bookmark_value>
48 <bookmark_value>text; hiding from specific users, with conditions
</bookmark_value>
49 <bookmark_value>user variables in conditions/fields
</bookmark_value>
51 <paragraph xml-lang=
"en-US" id=
"hd_id3153398" role=
"heading" level=
"1" l10n=
"U"
52 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>
53 </variable></paragraph>
54 <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>
55 <table id=
"tbl_id3154255">
58 <paragraph xml-lang=
"en-US" id=
"par_id3155889" role=
"tablehead" l10n=
"U" oldref=
"94">Operator
</paragraph>
61 <paragraph xml-lang=
"en-US" id=
"par_id3147110" role=
"tablehead" l10n=
"U" oldref=
"95">Meaning
</paragraph>
66 <paragraph xml-lang=
"en-US" id=
"par_id3150508" role=
"tablecontent" l10n=
"U" oldref=
"96">== or EQ
</paragraph>
69 <paragraph xml-lang=
"en-US" id=
"par_id3150531" role=
"tablecontent" l10n=
"U" oldref=
"97">equals
</paragraph>
74 <paragraph xml-lang=
"en-US" id=
"par_id3150725" role=
"tablecontent" l10n=
"U" oldref=
"98">!= or NEQ
</paragraph>
77 <paragraph xml-lang=
"en-US" id=
"par_id3150748" role=
"tablecontent" l10n=
"U" oldref=
"99">is not equal to
</paragraph>
82 <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>
85 <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>
88 <paragraph xml-lang=
"en-US" id=
"par_id3145273" role=
"listitem" l10n=
"U" oldref=
"103">Choose
<emph>Insert - Section
</emph>.
</paragraph>
91 <paragraph xml-lang=
"en-US" id=
"par_id3145297" role=
"listitem" l10n=
"U" oldref=
"104">In the
<item type=
"menuitem">Hide
</item>
92 <emph/>area, select the
<item type=
"menuitem">Hide
</item> check box.
</paragraph>
95 <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>
98 <paragraph xml-lang=
"en-US" id=
"par_id3155573" role=
"listitem" l10n=
"U" oldref=
"107">Click
<emph>Insert
</emph> and then save the document.
</paragraph>
101 <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>
102 <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>
103 <table id=
"tbl_id3147793">
106 <paragraph xml-lang=
"en-US" id=
"par_id3147819" role=
"tablehead" l10n=
"U" oldref=
"62">User variables
</paragraph>
109 <paragraph xml-lang=
"en-US" id=
"par_id3147218" role=
"tablehead" l10n=
"U" oldref=
"63">Meaning
</paragraph>
114 <paragraph xml-lang=
"en-US" id=
"par_id3147245" role=
"code" l10n=
"U" oldref=
"64">user_firstname
</paragraph>
117 <paragraph xml-lang=
"en-US" id=
"par_id3147268" role=
"paragraph" l10n=
"U" oldref=
"65">First name
</paragraph>
122 <paragraph xml-lang=
"en-US" id=
"par_id3145592" role=
"code" l10n=
"U" oldref=
"66">user_lastname
</paragraph>
125 <paragraph xml-lang=
"en-US" id=
"par_id3145615" role=
"paragraph" l10n=
"U" oldref=
"67">Last name
</paragraph>
130 <paragraph xml-lang=
"en-US" id=
"par_id3145642" role=
"code" l10n=
"U" oldref=
"68">user_initials
</paragraph>
133 <paragraph xml-lang=
"en-US" id=
"par_id3145666" role=
"paragraph" l10n=
"U" oldref=
"69">Initials
</paragraph>
138 <paragraph xml-lang=
"en-US" id=
"par_id3151200" role=
"code" l10n=
"U" oldref=
"70">user_company
</paragraph>
141 <paragraph xml-lang=
"en-US" id=
"par_id3151223" role=
"paragraph" l10n=
"U" oldref=
"71">Company
</paragraph>
146 <paragraph xml-lang=
"en-US" id=
"par_id3151250" role=
"code" l10n=
"U" oldref=
"72">user_street
</paragraph>
149 <paragraph xml-lang=
"en-US" id=
"par_id3152912" role=
"paragraph" l10n=
"U" oldref=
"73">Street
</paragraph>
154 <paragraph xml-lang=
"en-US" id=
"par_id3152940" role=
"code" l10n=
"U" oldref=
"74">user_country
</paragraph>
157 <paragraph xml-lang=
"en-US" id=
"par_id3152963" role=
"paragraph" l10n=
"U" oldref=
"75">Country
</paragraph>
162 <paragraph xml-lang=
"en-US" id=
"par_id3152990" role=
"code" l10n=
"U" oldref=
"76">user_zipcode
</paragraph>
165 <paragraph xml-lang=
"en-US" id=
"par_id3145679" role=
"paragraph" l10n=
"U" oldref=
"77">Zip Code
</paragraph>
170 <paragraph xml-lang=
"en-US" id=
"par_id3145706" role=
"code" l10n=
"U" oldref=
"78">user_city
</paragraph>
173 <paragraph xml-lang=
"en-US" id=
"par_id3145729" role=
"paragraph" l10n=
"U" oldref=
"79">City
</paragraph>
178 <paragraph xml-lang=
"en-US" id=
"par_id3145756" role=
"code" l10n=
"U" oldref=
"80">user_title
</paragraph>
181 <paragraph xml-lang=
"en-US" id=
"par_id3145779" role=
"paragraph" l10n=
"U" oldref=
"81">Title
</paragraph>
186 <paragraph xml-lang=
"en-US" id=
"par_id3156284" role=
"code" l10n=
"U" oldref=
"82">user_position
</paragraph>
189 <paragraph xml-lang=
"en-US" id=
"par_id3156307" role=
"paragraph" l10n=
"U" oldref=
"83">Position
</paragraph>
194 <paragraph xml-lang=
"en-US" id=
"par_id3156334" role=
"code" l10n=
"U" oldref=
"84">user_tel_work
</paragraph>
197 <paragraph xml-lang=
"en-US" id=
"par_id3156357" role=
"paragraph" l10n=
"U" oldref=
"85">Business telephone number
</paragraph>
202 <paragraph xml-lang=
"en-US" id=
"par_id3156384" role=
"code" l10n=
"U" oldref=
"86">user_tel_home
</paragraph>
205 <paragraph xml-lang=
"en-US" id=
"par_id3149728" role=
"paragraph" l10n=
"U" oldref=
"87">Home telephone number
</paragraph>
210 <paragraph xml-lang=
"en-US" id=
"par_id3149756" role=
"code" l10n=
"U" oldref=
"88">user_fax
</paragraph>
213 <paragraph xml-lang=
"en-US" id=
"par_id3149778" role=
"paragraph" l10n=
"U" oldref=
"89">Fax number
</paragraph>
218 <paragraph xml-lang=
"en-US" id=
"par_id3149806" role=
"code" l10n=
"U" oldref=
"90">user_email
</paragraph>
221 <paragraph xml-lang=
"en-US" id=
"par_id3147294" role=
"paragraph" l10n=
"U" oldref=
"91">E-mail address
</paragraph>
226 <paragraph xml-lang=
"en-US" id=
"par_id3147321" role=
"code" l10n=
"U" oldref=
"92">user_state
</paragraph>
229 <paragraph xml-lang=
"en-US" id=
"par_id3147344" role=
"paragraph" l10n=
"U" oldref=
"93">State
</paragraph>
234 <section id=
"relatedtopics">
235 <embed href=
"text/swriter/guide/fields.xhp#fields"/>
236 <embed href=
"text/swriter/guide/conditional_text.xhp#conditional_text"/>
237 <embed href=
"text/swriter/guide/hidden_text.xhp#hidden_text"/>
238 <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>