One other caveat: the line breaks disappear with the above code. However, this slight modification of putting in a <br /> in the right spot fixes that. <div ex:if="not(contains(.facet1, 'default value'))"><span> <b>facet50: </b><span ex:content=".facet50"></span><br /></span></ div>
Thanks - Jim On Nov 19, 6:44 pm, lbjvg <[email protected]> wrote: > David - Both versions work. Thank you very much. > > The only caveat is that the scope seems to be whatever immediatly > follows <div ex:if="not(contains(.facet1, 'default value'))"> So, I > had 2 things that followed: <b>facet50: </b> and <span > ex:content=".facet50"></span></div> ; and one would be suppressed but > not the other. So I wrapped both in a span and that solved it: > <div ex:if="not(contains(.facet1, 'default value'))"><span> > <b>facet50: </b><span ex:content=".facet50"></span></span></div> > > Thanks for your help! - Jim > > On Nov 19, 2:00 pm, David Huynh <[email protected]> wrote: > > > > > lbjvg wrote: > > > Hi - I have a database with a lot of default entries. When I display > > > a lens view, all of the default values clutter and obscure the > > > pertinent values. > > > > <div ex:role="viewPanel" style="padding: 1em 0.5in;" id="view_panel"> > > > <div ex:role="lens" style="display: none;" id="lens_view" align="left" > > > > <div ex:if-exists=".facet1" class="facet1"><b>facet1: </b><span > > > ex:content=".facet1"></span></div> > > > ... > > > <div ex:if-exists=".facet50" class="facet50"><b>facet50: </b><span > > > ex:content=".facet50"></span></div> > > > > So, suppose that most of the items contain a large number of default > > > entries. I would like to suppress the display of the content if it > > > equals the default value. As if there were a statement of the form > > > ex:if-notEqual="default value" content=".facet1 > > > > Is there such a statement? > > > If the property is unique (each item has exactly one value of that > > property), then you can try > > > <div ex:if="not(contains(.facet1, 'default value'))"> ... </div> > > > Otherwise, try > > > <div ex:if="exists(remove(.facet1, 'default value'))"> ... </div> > > > David -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=.
