Variable Containing Another Variable (Not Updating)

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Wyatt Stueven
Propeller Head
Posts: 15
Joined: Tue Nov 23, 2021 12:37 pm

Variable Containing Another Variable (Not Updating)

Post by Wyatt Stueven »

Good Afternoon,

I have a project where we specify Aircraft type using a variable. This variable is contained within a H4 bar that has other information as well. Revision and Date are not variables. It looks like this:

AIRCRAFT: (Aircraft type variable) | REV: Original | DATE: MM/DD/YYYY

It displays properly for the first variable of the page. This same header is used throughout the page where another variable is used. The variable Level4 is used to use the First H4 on the page. This in theory should replicate the same thing as above but instead shows this when built:

AIRCRAFT: | REV: Original | DATE: MM/DD/YYYY

This is likely because a variable is referencing another variable. Is there a way to do this properly or am I just out of luck and have to type the aircraft type 100+ times?
doloremipsum
Sr. Propeller Head
Posts: 290
Joined: Mon Aug 26, 2019 2:11 pm

Re: Variable Containing Another Variable (Not Updating)

Post by doloremipsum »

I don't think this should be a problem - we do a similar thing where we use the title of the first topic as our footer throughout the document, and it often includes variables with no problem. A couple of questions:
  • Is this just in the Flare UI, or is it a problem in the output as well?
  • What format are you publishing to?
  • Can you post the relevant sections of code from the topics?
At worst, you could probably replace all instances of the heading and <Level4> variable with a snippet - but I don't think you should have to.
in hoc foro dolorem ipsum amamus, consectimur, adipisci volumus.
Wyatt Stueven
Propeller Head
Posts: 15
Joined: Tue Nov 23, 2021 12:37 pm

Re: Variable Containing Another Variable (Not Updating)

Post by Wyatt Stueven »

It is a problem in the output as well. I'm publishing to pdf.

Here is the first header code:

<tr class="TableStyle-MEL-Table-Head-Header1">
<th class="TableStyle-MEL-Table-HeadD-SeqNo-Header1" colspan="6">
<h4>AIRCRAFT: <MadCap:variable name="MEL-Variables.AIRCRAFT" /> | REV: Original | DATE: MM/DD/YYYY</h4>
</th>

Here is the variable code using the other variable:

<tr class="TableStyle-MEL-Table-Head-Header1" MadCap:conditions="Default.PrintOnly">
<th class="TableStyle-MEL-Table-HeadD-SeqNo-Header1" colspan="6">
<p><MadCap:variable name="Heading.Level4" />
</p>
</th>
</tr>
Post Reply