Ask Your Question
1

Select multiple entries from input list in Writer [closed]

asked 2012-07-18 01:26:18 +0100

Matt gravatar image

I am creating a document to use as a template for medical notes. I want to be able to tab from input field to input field and make appropriate selections. In some cases it is possible that I would need to select more than one item from a list. Is there any way to make this happen? Thanks in advance.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-17 01:23:33.832507

1 Answer

Sort by » oldest newest most voted
0

answered 2012-07-18 09:31:57 +0100

tohuwawohu gravatar image

updated 2012-07-18 18:57:59 +0100

Yes, this is possible. The easiest way is to insert a ListBox and enable the "MultiSelect" option:

  • After inserting the ListBox, right-click on it to open the Context Menu:

    ContextMenu

  • Select "Control" to open the ListBox properties and set "Multiselect" to "Yes":

    MultiSelect

Alternatively, you could use a set of checkboxes, but this works only if there only a few values to display and to select. For a longer list of values, you should choose a ListBox.

EDIT:

To populate the ListBox with Data, you will have to bind it to a Data Source. LibreOffice will ask for the DataSource when inserting the control. You can still add the required information using the "Data" tab of the control's properties:

Data

In this example, i've selected the "Bibliography" datasource (a LO Base Database that ships with LO) when i inserted the first form control. Then, i selected the "Author" field from the "biblio" table.

If you didn't select a datasource yet, you can set the datasource later by selecting "´Form" from the control's context menu, tab "data`":

Form Data

edit flag offensive delete link more

Comments

That's exactly what I'm looking for, unfortunately, it doesn't seem to work. When I add the ListBox and turn design mode off, I just get an empty rectangle with a non-functioning drop down triangle button. Any suggestions?

Matt gravatar imageMatt ( 2012-07-18 18:23:51 +0100 )edit

@Matt: I've emended my answer and added some info how to bind the control to a data source.

tohuwawohu gravatar imagetohuwawohu ( 2012-07-18 18:58:36 +0100 )edit

Thanks, that probably has gotten it to doe what it is supposed to do, but not exactly what I want it to do. I can select multiple entries from a list (although the ListBox must be big enough to see all entries, it doesn't make a true dropdown) but it just leaves those entries highlighted.

Matt gravatar imageMatt ( 2012-07-18 19:25:05 +0100 )edit

What I want to do is select entries and have only the selected entries displayed.

Matt gravatar imageMatt ( 2012-07-18 19:25:26 +0100 )edit

@Matt: So, if your list has entries A, B, C - you select A and C - then B should "disappear" from the list? I fear this isn't possible - maybe using a macro to modify the data source, but this would be quite complicated (what if the user wants to revise his selection?).

tohuwawohu gravatar imagetohuwawohu ( 2012-07-18 21:04:22 +0100 )edit

I am beginning to realize it is not possible in LibreOffice. Thanks for your help. Just to clarify though, theoretically the "list object" would exist in the document independent of what is displayed/printed. Thus selecting items from the list displays them but does not alter the list.

Matt gravatar imageMatt ( 2012-07-18 22:31:51 +0100 )edit

That would make revisions relatively easy. I have seen this functionality in software such as EPIC, but was not aware just how complex it must be. Thanks again for your assistance.

Matt gravatar imageMatt ( 2012-07-18 22:32:46 +0100 )edit

Question Tools

Stats

Asked: 2012-07-18 01:26:18 +0100

Seen: 1,294 times

Last updated: Jul 18 '12