From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/swriter/guide/fields_userdata.xhp | 232 +++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 helpcontent2/source/text/swriter/guide/fields_userdata.xhp (limited to 'helpcontent2/source/text/swriter/guide/fields_userdata.xhp') diff --git a/helpcontent2/source/text/swriter/guide/fields_userdata.xhp b/helpcontent2/source/text/swriter/guide/fields_userdata.xhp new file mode 100644 index 000000000..bf74c016e --- /dev/null +++ b/helpcontent2/source/text/swriter/guide/fields_userdata.xhp @@ -0,0 +1,232 @@ + + + + + + + Querying User Data in Fields or Conditions + /text/swriter/guide/fields_userdata.xhp + + + + + + + fields; user data + user data; querying + conditions; user data fields + hiding;text, from specific users + text; hiding from specific users, with conditions + user variables in conditions/fields + + + +Querying User Data in Fields or Conditions +You can access and compare some user data from conditions or fields. For example, you can compare user data with the following operators: + + + + + Operator + + + Meaning + + + + + == or EQ + + + equals + + + + + != or NEQ + + + is not equal to + + +
+ +If you want, you can use a condition to hide specific text in your document from a specific user. + + + + Select the text in the document that you want to hide. + + + Choose Insert - Section. + + + In the Hide area, select the Hide check box. + + + In the With Condition box, type user_lastname == "Doe", where "Doe" is the last name of the user that you want to hide the text from. + + + Click Insert and then save the document. + + +The name of the hidden section can still be seen in the Navigator. +The following table is a list of the user variables that you can access when defining a condition or a field: + + + + + User variables + + + Meaning + + + + + user_firstname + + + First name + + + + + user_lastname + + + Last name + + + + + user_initials + + + Initials + + + + + user_company + + + Company + + + + + user_street + + + Street + + + + + user_country + + + Country + + + + + user_zipcode + + + Zip Code + + + + + user_city + + + City + + + + + user_title + + + Title + + + + + user_position + + + Position + + + + + user_tel_work + + + Business telephone number + + + + + user_tel_home + + + Home telephone number + + + + + user_fax + + + Fax number + + + + + user_email + + + Email address + + + + + user_state + + + State + + +
+ + +
+ + + +List of operators +
+ + +
\ No newline at end of file -- cgit v1.2.3