Skip to main content
Participating Frequently
March 19, 2015
Question

Variables management in fm11.0

  • March 19, 2015
  • 1 reply
  • 330 views

All,

I have a need with framemaker I do not know how to handle. Here is an example of my need:

Let's say I need to produce a document related to a house, which can be 1 2 or 3 floors.

I will then produce a variables :"nb of floor" which will be "1" "2" or "3", and use this variable in text content. That is ok, BUT

How can I automate an additional variable named "House_type" which would be "OnefloorHouse" "TwofloorsHouse" or "ThreefloorsHouse"?

Thanks for your help.

Regards, Stephane.

This topic has been closed for replies.

1 reply

Arnis Gubins
Inspiring
March 19, 2015

How are you applying the Variables in FM? Are you importing into specific files that just pertain to the house types and number of floors?

The easiest way to get specific sets of variables into FM files is to use small text files called MIF snippets. See the following discussions for how these have been used:

cautious update of variables – best approach?

Variable to Pull Book Name?

GieresAuthor
Participating Frequently
March 20, 2015

My plan is just to create variables (e.g "nb of floor" or "House_type") in the document itself.

I would set the "nb of floor" value manually. The point would be to automate the setting of "House_type" value, as additonal variable.

Regards, Stephane

Arnis Gubins
Inspiring
March 20, 2015

There is no direct way to make one variable dependent upon another in FM.

You could use ExtendScript to create a script that would add the other dependent variables.

The other approach would be to have all of the required dependent variables defined in either a MIF snippet or a template file and then import the desired numbering level into your file.