Am I going crazy?! Is there no way to do this in just 1 variable set?

Beany81487
Tera Contributor

 

Hello all,

Yesterday, I spent more time than I probably should have trying to configure a single variable set for an address layout. My goal was:

  • Two full-width lines (100%) for Address Line 1 (mandatory) and Address Line 2 (optional)
  • Followed by four half-width lines (50%) for City, State, ZIP, and Country.

I’ve attached a photo for reference, but note that the pictured group was created using two separate variable sets.

Context:
I’m a Sys Admin working my way toward CAD, but I don’t have a strong coding background. I’m sure there’s a way to accomplish this with macros (I tried dabbling there but wasn’t successful). Honestly, I feel like I’m going crazy—this shouldn’t be that hard. My office is on the Yokohama version, so things aren’t as fully integrated as Zurich, but it still shouldn’t be this difficult. Am I missing something?

I appreciate any advice, but please note that I’ve already tried the following:

  • Adjusted variable width and layout in every way I could think of—no luck.
  • Used the container method in several variations, e.g.:
    • Open container start (1 column), Address 1, Address 2, container end + Start container (2 columns), City, State, ZIP, Country, container end.
    • I also tried split containers since I read that the variable itself acts as a container but still ended up with full-length lines.
  • Created macros with drop zones but couldn’t figure out how to map those zones in my variable set. Then I tried macros with direct zones like street_address_1 instead of coding with drop zones. I made all other variables active but hidden, kept the custom variable containing my XML visible and active, but it continued to show only the first address line.

At this point, I just need to know—I’m far too invested. On the plus side, I’ve learned a ton during these agonizing hours, even if I haven’t solved the problem yet.

 

Beany81487_0-1762615351432.png

 


Thank you!

-Cristina

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

Hi Cristina,

You can accomplish this using two containers within one variable set - no macros, specific release, or overthinking needed.

BradBowman_1-1762651958265.png

BradBowman_2-1762652029046.png

 

 

 

Sarthak Kashyap
Kilo Sage

Hi @Beany81487 ,

 

I tried your problem in my PDI and it works for me please check below solution 

I created a variable set type of "Single Row Variable Set"

SarthakKashyap_1-1762672942215.png

We have to create variable with layout - single column wide, and in address 1 and address 2 give column width as 100% , and try to use Container Start, Container Split and Container End when you want to give two variable in 1 column for example city, state, zip and country.

SarthakKashyap_2-1762673000775.png

 

Result:

SarthakKashyap_0-1762672898698.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

Why did you post a solution that doesn't add any value to the one I where I clearly demonstrated the same thing 8 hours earlier?