Whoa, thanks scott, 707 examples! Don't know how I missed all those! Skip
-----Original Message----- From: Scott Gray [mailto:[EMAIL PROTECTED] Sent: Sunday, November 18, 2007 11:14 PM To: [email protected] Subject: Re: Conditional rendering of a screenlet Hi Skip Run a search for "<condition>" on *Screens.xml and you should find plenty of examples. Regards Scott On 19/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have the need to conditionally display part of a screen. For example, > one > class of user would see the sales data, another class the financial, and > an > administrator both. > > This is using standard widget stuff like this: > > <section> > <actions> > ... > </actions> > <widgets> > <decorator-screen ..."> > <decorator-section name="section-body"> > <container style="screenlet"> <!-- Displays financial data > --> > ... > <container style="screenlet-body"> > ... > </container> > </container> > <container style="screenlet"> <!-- Displays sales data --> > <container style="screenlet-header"> > <label .../> > </container> > <container style="screenlet-body"> <!-- Displays history > data --> > .... > </container> > </container> > ... > > What I would like is some conditional logic like in <if-compare> or > <if-not-empty> found in simple methods. > > Is there such a clause to add to the container tag to ignore it (not > render > it) or some condition or an alternate method of supressing the display of > part of the screen? > > Thanks > > Skip > >
