Command Pick List Pick Active Glossary...

The PickActiveGlossary command enables you to pick an active glossary.

It displays a pick list with all the glossaries of the Glossary List.

Optionally the special glossaries:

can be displayed too.

Upon picking a glossary of the pick list, the filename of the picked glossary is stored in a specified variable.

This variable can then be used to perform an action on that picked glossary .

When selecting the Pick Active Glossary... menu item, the following dialog

Pick Active Glossary Command Input

will help you specify the PickActiveGlossary command parameters:

showSpecialGlossaries

Indicates if special glossaries should be displayed in the pick list.

variableName

Name of the variable that will contain the picked glossary.

The specified variable can then be referenced in subsequent expansion text or commands with its name using the following syntax:

$(name)

Example 1: Switching to an Active Glossary

The following expansion:

{PickActiveGlossary}
showSpecialGlossaries = "n"
variableName = "picked-glossary"
{/PickActiveGlossary}
{ActivateGlossary}$(picked-glossary){/ActivateGlossary}

enables you to pick a glossary of the Glossary List and then activate it.

Example 2: Viewing an Active Glossary

The following expansion:

{PickActiveGlossary}
showSpecialGlossaries = "n"
variableName = "picked-glossary"
{/PickActiveGlossary}
{ViewGlossary}$(picked-glossary){/ViewGlossary}

enables you to pick a glossary of the Glossary List and then open it in the Glossary Viewer.