Hi Dojo,
I have a parameter that determines a page's visibility, but its value isn't just true or false. My page can have a few different settings:
Parameter(ID 1 for example) value: Type 1 - I want to show page 1 and hide page 2
Parameter value: Type 2 - I want to hide page 1 and show page 2
Parameter value: Type 3 - I want to show page 1 and show page 2
my current implementation doesn't work
<Page>
<Name>Page 1</Name>
<Visibility default="false" overridePID="1" value="Type 1" />
</Page>
<Page>
<Name>Page 1</Name>
<Visibility default="false" overridePID="1" value="Type 3" />
</Page>
<Page>
<Name>Page 2</Name>
<Visibility default="false" overridePID="1" value="Type 2" />
</Page>
<Page>
<Name>Page 2</Name>
<Visibility default="false" overridePID="1" value="Type 3" />
</Page>
and I can't do something like this either since it will treat it as a string of "Type 1;Type 3"
<Page>
<Name>Page 1</Name>
<Visibility default="false" overridePID="1" value="Type 1;Type 3" />
</Page>
Can I get some advice or help on how I can proceed with this?
Hi Joshua,
I believe your best option would be to add some internal control parameters to your connector.
This way you can use Actions or a QAction to perform all the computations on change of each parameter and have a single true/false value to determine whether or not to display a certain page.
This example with 3 types is only a subset of the types that are available on the parameter. There would be more types that might need to be included for extension so I would consider the solution of inverting the visibility to use default = "true" and hiding it from the alternate type as a workaround. But ideally I would want a cleaner solution