1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2c2b55da1Smseidel 30e4b25e7SAndrew Rist<!--*********************************************************** 4c2b55da1Smseidel * 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 12c2b55da1Smseidel * 130e4b25e7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14c2b55da1Smseidel * 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. 21c2b55da1Smseidel * 220e4b25e7SAndrew Rist ***********************************************************--> 230e4b25e7SAndrew Rist 24c2b55da1Smseidel<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26c2b55da1Smseidel<topic id="textswriterguidefields_userdataxml" indexer="include" status="PUBLISH"> 27c2b55da1Smseidel<title xml-lang="en-US" id="tit">Querying User Data in Fields or Conditions</title> 28c2b55da1Smseidel<filename>/text/swriter/guide/fields_userdata.xhp</filename> 29c2b55da1Smseidel</topic> 30c2b55da1Smseidel</meta> 31c2b55da1Smseidel<body> 32c2b55da1Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3153398"> 33c2b55da1Smseidel<bookmark_value>fields; user data</bookmark_value> 34c2b55da1Smseidel<bookmark_value>user data; querying</bookmark_value> 35c2b55da1Smseidel<bookmark_value>conditions; user data fields</bookmark_value> 36c2b55da1Smseidel<bookmark_value>hiding;text, from specific users</bookmark_value> 37c2b55da1Smseidel<bookmark_value>text; hiding from specific users, with conditions</bookmark_value> 38c2b55da1Smseidel<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" 41c2b55da1Smseideloldref="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> 43c2b55da1Smseidel<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> 44c2b55da1Smseidel<table id="tbl_id3154255"> 45c2b55da1Smseidel<tablerow> 46c2b55da1Smseidel<tablecell> 47c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3155889" role="tablehead" l10n="U" oldref="94">Operator</paragraph> 48c2b55da1Smseidel</tablecell> 49c2b55da1Smseidel<tablecell> 50c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147110" role="tablehead" l10n="U" oldref="95">Meaning</paragraph> 51c2b55da1Smseidel</tablecell> 52c2b55da1Smseidel</tablerow> 53c2b55da1Smseidel<tablerow> 54c2b55da1Smseidel<tablecell> 55c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3150508" role="tablecontent" l10n="U" oldref="96">== or EQ</paragraph> 56c2b55da1Smseidel</tablecell> 57c2b55da1Smseidel<tablecell> 58c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3150531" role="tablecontent" l10n="U" oldref="97">equals</paragraph> 59c2b55da1Smseidel</tablecell> 60c2b55da1Smseidel</tablerow> 61c2b55da1Smseidel<tablerow> 62c2b55da1Smseidel<tablecell> 63c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3150725" role="tablecontent" l10n="U" oldref="98">!= or NEQ</paragraph> 64c2b55da1Smseidel</tablecell> 65c2b55da1Smseidel<tablecell> 66c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3150748" role="tablecontent" l10n="U" oldref="99">is not equal to</paragraph> 67c2b55da1Smseidel</tablecell> 68c2b55da1Smseidel</tablerow> 69c2b55da1Smseidel</table> 70c2b55da1Smseidel<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> 71c2b55da1Smseidel<list type="ordered"> 72c2b55da1Smseidel<listitem> 73c2b55da1Smseidel<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> 74c2b55da1Smseidel</listitem> 75c2b55da1Smseidel<listitem> 76c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145273" role="listitem" l10n="U" oldref="103">Choose <emph>Insert - Section</emph>.</paragraph> 77c2b55da1Smseidel</listitem> 78c2b55da1Smseidel<listitem> 79c2b55da1Smseidel<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> 80c2b55da1Smseidel</listitem> 81c2b55da1Smseidel<listitem> 82*b184ee58Smseidel<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> 83c2b55da1Smseidel</listitem> 84c2b55da1Smseidel<listitem> 85c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3155573" role="listitem" l10n="U" oldref="107">Click <emph>Insert</emph> and then save the document.</paragraph> 86c2b55da1Smseidel</listitem> 87c2b55da1Smseidel</list> 88c2b55da1Smseidel<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> 89c2b55da1Smseidel<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> 90c2b55da1Smseidel<table id="tbl_id3147793"> 91c2b55da1Smseidel<tablerow> 92c2b55da1Smseidel<tablecell> 93c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147819" role="tablehead" l10n="U" oldref="62">User variables</paragraph> 94c2b55da1Smseidel</tablecell> 95c2b55da1Smseidel<tablecell> 96c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147218" role="tablehead" l10n="U" oldref="63">Meaning</paragraph> 97c2b55da1Smseidel</tablecell> 98c2b55da1Smseidel</tablerow> 99c2b55da1Smseidel<tablerow> 100c2b55da1Smseidel<tablecell> 101c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147245" role="code" l10n="U" oldref="64">user_firstname</paragraph> 102c2b55da1Smseidel</tablecell> 103c2b55da1Smseidel<tablecell> 104c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147268" role="paragraph" l10n="U" oldref="65">First name</paragraph> 105c2b55da1Smseidel</tablecell> 106c2b55da1Smseidel</tablerow> 107c2b55da1Smseidel<tablerow> 108c2b55da1Smseidel<tablecell> 109c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145592" role="code" l10n="U" oldref="66">user_lastname</paragraph> 110c2b55da1Smseidel</tablecell> 111c2b55da1Smseidel<tablecell> 112c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145615" role="paragraph" l10n="U" oldref="67">Last name</paragraph> 113c2b55da1Smseidel</tablecell> 114c2b55da1Smseidel</tablerow> 115c2b55da1Smseidel<tablerow> 116c2b55da1Smseidel<tablecell> 117c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145642" role="code" l10n="U" oldref="68">user_initials</paragraph> 118c2b55da1Smseidel</tablecell> 119c2b55da1Smseidel<tablecell> 120c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145666" role="paragraph" l10n="U" oldref="69">Initials</paragraph> 121c2b55da1Smseidel</tablecell> 122c2b55da1Smseidel</tablerow> 123c2b55da1Smseidel<tablerow> 124c2b55da1Smseidel<tablecell> 125c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3151200" role="code" l10n="U" oldref="70">user_company</paragraph> 126c2b55da1Smseidel</tablecell> 127c2b55da1Smseidel<tablecell> 128c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3151223" role="paragraph" l10n="U" oldref="71">Company</paragraph> 129c2b55da1Smseidel</tablecell> 130c2b55da1Smseidel</tablerow> 131c2b55da1Smseidel<tablerow> 132c2b55da1Smseidel<tablecell> 133c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3151250" role="code" l10n="U" oldref="72">user_street</paragraph> 134c2b55da1Smseidel</tablecell> 135c2b55da1Smseidel<tablecell> 136c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3152912" role="paragraph" l10n="U" oldref="73">Street</paragraph> 137c2b55da1Smseidel</tablecell> 138c2b55da1Smseidel</tablerow> 139c2b55da1Smseidel<tablerow> 140c2b55da1Smseidel<tablecell> 141c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3152940" role="code" l10n="U" oldref="74">user_country</paragraph> 142c2b55da1Smseidel</tablecell> 143c2b55da1Smseidel<tablecell> 144c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3152963" role="paragraph" l10n="U" oldref="75">Country</paragraph> 145c2b55da1Smseidel</tablecell> 146c2b55da1Smseidel</tablerow> 147c2b55da1Smseidel<tablerow> 148c2b55da1Smseidel<tablecell> 149c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3152990" role="code" l10n="U" oldref="76">user_zipcode</paragraph> 150c2b55da1Smseidel</tablecell> 151c2b55da1Smseidel<tablecell> 152c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145679" role="paragraph" l10n="U" oldref="77">Zip Code</paragraph> 153c2b55da1Smseidel</tablecell> 154c2b55da1Smseidel</tablerow> 155c2b55da1Smseidel<tablerow> 156c2b55da1Smseidel<tablecell> 157c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145706" role="code" l10n="U" oldref="78">user_city</paragraph> 158c2b55da1Smseidel</tablecell> 159c2b55da1Smseidel<tablecell> 160c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145729" role="paragraph" l10n="U" oldref="79">City</paragraph> 161c2b55da1Smseidel</tablecell> 162c2b55da1Smseidel</tablerow> 163c2b55da1Smseidel<tablerow> 164c2b55da1Smseidel<tablecell> 165c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145756" role="code" l10n="U" oldref="80">user_title</paragraph> 166c2b55da1Smseidel</tablecell> 167c2b55da1Smseidel<tablecell> 168c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3145779" role="paragraph" l10n="U" oldref="81">Title</paragraph> 169c2b55da1Smseidel</tablecell> 170c2b55da1Smseidel</tablerow> 171c2b55da1Smseidel<tablerow> 172c2b55da1Smseidel<tablecell> 173c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3156284" role="code" l10n="U" oldref="82">user_position</paragraph> 174c2b55da1Smseidel</tablecell> 175c2b55da1Smseidel<tablecell> 176c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3156307" role="paragraph" l10n="U" oldref="83">Position</paragraph> 177c2b55da1Smseidel</tablecell> 178c2b55da1Smseidel</tablerow> 179c2b55da1Smseidel<tablerow> 180c2b55da1Smseidel<tablecell> 181c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3156334" role="code" l10n="U" oldref="84">user_tel_work</paragraph> 182c2b55da1Smseidel</tablecell> 183c2b55da1Smseidel<tablecell> 184c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3156357" role="paragraph" l10n="U" oldref="85">Business telephone number</paragraph> 185c2b55da1Smseidel</tablecell> 186c2b55da1Smseidel</tablerow> 187c2b55da1Smseidel<tablerow> 188c2b55da1Smseidel<tablecell> 189c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3156384" role="code" l10n="U" oldref="86">user_tel_home</paragraph> 190c2b55da1Smseidel</tablecell> 191c2b55da1Smseidel<tablecell> 192c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3149728" role="paragraph" l10n="U" oldref="87">Home telephone number</paragraph> 193c2b55da1Smseidel</tablecell> 194c2b55da1Smseidel</tablerow> 195c2b55da1Smseidel<tablerow> 196c2b55da1Smseidel<tablecell> 197c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3149756" role="code" l10n="U" oldref="88">user_fax</paragraph> 198c2b55da1Smseidel</tablecell> 199c2b55da1Smseidel<tablecell> 200c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3149778" role="paragraph" l10n="U" oldref="89">Fax number</paragraph> 201c2b55da1Smseidel</tablecell> 202c2b55da1Smseidel</tablerow> 203c2b55da1Smseidel<tablerow> 204c2b55da1Smseidel<tablecell> 205c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3149806" role="code" l10n="U" oldref="90">user_email</paragraph> 206c2b55da1Smseidel</tablecell> 207c2b55da1Smseidel<tablecell> 208c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147294" role="paragraph" l10n="U" oldref="91">E-mail address</paragraph> 209c2b55da1Smseidel</tablecell> 210c2b55da1Smseidel</tablerow> 211c2b55da1Smseidel<tablerow> 212c2b55da1Smseidel<tablecell> 213c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147321" role="code" l10n="U" oldref="92">user_state</paragraph> 214c2b55da1Smseidel</tablecell> 215c2b55da1Smseidel<tablecell> 216c2b55da1Smseidel<paragraph xml-lang="en-US" id="par_id3147344" role="paragraph" l10n="U" oldref="93">State</paragraph> 217c2b55da1Smseidel</tablecell> 218c2b55da1Smseidel</tablerow> 219c2b55da1Smseidel</table> 220c2b55da1Smseidel<section id="relatedtopics"> 221c2b55da1Smseidel<embed href="text/swriter/guide/fields.xhp#fields"/> 222c2b55da1Smseidel<embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/> 223c2b55da1Smseidel<embed href="text/swriter/guide/hidden_text.xhp#hidden_text"/> 224c2b55da1Smseidel<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> 225c2b55da1Smseidel</section> 226c2b55da1Smseidel</body> 227c2b55da1Smseidel</helpdocument> 228