Hello Team
I have a Visio file with three pages:
-
Page 1: Empty (control page)
-
Page 2: Contains 2 boxes (example)
-
Page 3: Contains 3 boxes (example)
From Page 1, I need a way to configure a property-based filter (for example, Region == UK) such that:
-
If
Region == UK, the entire content of Page 2 is displayed -
If
Region == ITA, the entire content of Page 3 is displayed
There are significant structural differences between Page 2 and Page 3, so I need a mechanism to decide which page is displayed, rather than showing or hiding individual shapes.
I would like to avoid using show/hide logic on each shape and instead need a way to show or hide an entire page based on a property.
Hi Ramesh,
If you really would like to have a condition on page level, then your only option is embedding your pages into your "default" page. On that page, you will only have a shape that links to other pages in your Visio. Those pages are then hidden so that only your selected page is shown. You could make use of RegexReplace to accomplish selecting the right page, but you could also make use of extended conditions (with multiple shapes to do it).
Page 1:
Shape on Page 1:
VdXPage : [RegexReplace:ITA,[RegexReplace:UK,[Property:Region],Page2],Page3] Dock : Left|Right|Top|Bottom
Page 2:
On page level shape data:
Options: Hidden
Page 3:
On page level shape data:
Options: Hidden
Kind Regards,
Jarno