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