Issue 127409 - Input list for variables
Summary: Input list for variables
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 4.2.0-dev
Hardware: All All
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-10 13:34 UTC by jmpoo
Modified: 2017-05-11 09:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jmpoo 2017-05-10 13:34:01 UTC
At "Insert > Fields > Other > Variables" exists an input field to change the value of variables.

In addition to this, it would be nice, to have an "input list field" to choose an item from a predefined list to change the value of a variable.
Comment 1 mroe 2017-05-10 15:10:32 UTC
What is with "Insert > Fields > Other: Functions" Type: Input list?

If you mean something other please describe  your wish exactly.
Comment 2 jmpoo 2017-05-10 15:33:04 UTC
(In reply to mroe from comment #1)
> What is with "Insert > Fields > Other: Functions" Type: Input list?
> 
> If you mean something other please describe  your wish exactly.

With the Function "Input list" it is not possible to change the value of a variable you defined at "Fields > Other > Variables". It is only a textfield.

If you define a variable at the "Variables" Tab, you can change the value by using the Input field at the same Tab. You choose the name of the variable and insert the input field. 

But there is no way to define a List with items you can choose and wich changes the value of the variable then.
Comment 3 mroe 2017-05-10 16:50:28 UTC
Please describe the /goal/ of what you want to reach!

You need the value at another point in the text?
1. insert an »Input list«
2. highlight the inserted field
3. at tab Cross-reference: »Set Reference«
4. »Insert reference« at the point where you want.

A »Variable« can be simply text but can also be a mathematical term. can be a part of a mathematical term in another »Variable« or a condition for other text fields.
So there is no trivial list for a »Variable«.

(a simply!) Example: (between the steps set the cursor inside the document lower)
(1) »Set variable« – Name: one, Value: 1 [Insert]
(2) »Set variable« – Name: two, Value: 2 [Insert]
(3) »Set variable« – Name: three, Value: one+two [Insert]
(4) »Set variable« – Name: two, Value: 5 [Insert]
(5) »Set variable« – Name: three, Value: one+two [Insert]

Between the variables (3) and (4) and after (5) you can set »Show variable« for the variable “three”.
Instead of (4) »Set variable« you can use (4) »Input field« for the variable “two” to give the user the choice of the value.
Or
(6) »Set variable« – Name: nextvalue, Value: 1 [Insert]
(7) »Set variable« – Name: nextvalue, Value: nextvalue+1 [Insert]
repeat (7) as many as you want.

There is a powerful mechanism inside and with variables, so I cannot see what could be the benefit of a (static) list.

Please let us know a practical example for your wish.
Comment 4 jmpoo 2017-05-11 08:02:53 UTC
i use variables to define conditions for hidden or conditional text.

1) creating a variable VAR1          (it might be a User field instead)
- format: Text

2) set up conditional text
- condition: VAR1 EQ "Monday"
- then: Your choice is Monday

As decsribed above, you can use an input field to change the value of the variable VAR1. It works fine but you have to type Monday or Tuesday, or Wednesday ... and it doesent work if there are typing errors like Wendesday.

Goal is to make it easier by using an Input list where you can choose predefined items only.
Comment 5 mroe 2017-05-11 09:01:29 UTC
I set the issue back to UNCONFIRMED. It sounds like an useful enhancement, but IMHO only for a string list.
Maybe a developer find an easy way to extend the existing Input list, so that the actual value can be accessed like that of a variable and the name of the field can be used in variables and conditions.