$:Var=?* does not do the trick for me or at least I don´t know how to place it in the pagelist. When the Form is submitted with one of the values unset then the pagelist shows all the pages even the empty ones. <br><br>What happens is the following: Var could have one, two, all or none of 3 possible values set in a page.<br>
<br>(:Var: Value1:)<br>(:Var: Value1,Value2:)<br>(:Var: Value1,Value2,Value3:)<br>(:Var: Value1,Value3:)<br>(:Var: Value2,Value3:)<br>(:Var: Value2:)<br>(:Var: Value3:)<br>(:Var: :)<br><br>Ej; <a href="http://localhost/index.php/testgroup/Query?Opt1=Value1&Opt2=Value2&valuesent=1&Search=Submit+Query">http://localhost/index.php/testgroup/Query?Opt1=Value1&Opt2=Value2&valuesent=1&Search=Submit+Query</a><br>
<br>Then I have a Query page where I have 3 checkboxes to select what value to filter in the pagelist<br><br>(:input form method=get:)<br>(:input default request=1:)<br><br>(:input checkbox name=Opt1 value=Value1:)Value1<br>
(:input checkbox name=Opt2 value=Value2:) Value2<br>(:input checkbox name=Opt3 value=Value3:)Value3<br><br>(:input hidden valuesent value=1:)<br><br>(:input submit Search:)<br>(:input end:)<br><br>(:if equal {$?valuesent} 1:) <br>
(:pagelist group=testgroup $:Var=*{$Opt1}*,*{$Opt2}*,*{$Opt3}*:)<br>(:if:)<br><br>This pagelist is shown only when form is submitted . httpvariables are enable, I have no used them all the time I´ve been just trying for a workaround for this, that is why. I know $:Var=?* would not list the empty ones but don´t know how to handle it in my case. Any help appreciated.<br>
<br>Thanks Peter for Replying though,<br><br>Edwin<br><br><br><br><br><br><br><br>On Sat, Feb 27, 2010 at 8:20 AM, Peter Bowers <<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</a>> wrote:<br>><br>> On Fri, Feb 26, 2010 at 7:19 PM, edwin marte <<a href="mailto:edwin.marte@leidba.com">edwin.marte@leidba.com</a>> wrote:<br>
> > Hello Petko / List,<br>> > About the following Option $:Var=*{$Opt1}*,*{$Opt2}* How can I list or<br>> > count them only when they are not empty?<br>><br>> $:Var=?*<br>><br>> that requires $:Var to have *some* value.<br>
><br>> -Peter<br><br>