<screen name="ConditionalScreen">
<section> <condition> <if-compare field="parameters.show" operator="equals" value="widgets"/> </condition> <actions> <set field="name" value="madhi"/> </actions> <widgets> <label text="Condition Passed. showing widget element. name is : ${name}"></label> </widgets> <fail-widgets> <label text="Condition failed! Showing Fail-widgets element. name is : ${name}"></label> </fail-widgets> </section> </screen> I,m new to ofbiz...not able to get the value of name in the else part?... Thanks in advance. |
Hi Madhi Krishnan,
I think the structure seems inapt. To set 'name' to 'madhi' for the overall screen, use: <screen name="ConditionalScreen"> <section> <actions> <set field="name" value="madhi"/> </actions> <widgets> <section> <condition> <if-compare field="parameters.show" operator="equals" value="widgets"/> </condition> <widgets> <label text="Condition Passed. showing widget element. name is : ${name}"></label> </widgets> <fail-widgets> <label text="Condition failed! Showing Fail-widgets element. name is :${name}"></label> </fail-widgets> </section> </widgets> </section> </screen> HTH Thanks and Regards, *Aditya Sharma* | Enterprise Software Engineer HotWax Commerce <http://www.hotwax.co/> by HotWax Systems <http://www.hotwaxsystems.com/> <https://www.linkedin.com/in/aditya-sharma-78291810a/> On Thu, Aug 2, 2018 at 1:32 PM Madhi Krishnan <[hidden email]> wrote: > <screen name="ConditionalScreen"> > <section> > <condition> > <if-compare field="parameters.show" operator="equals" > value="widgets"/> > </condition> > <actions> > <set field="name" value="madhi"/> > </actions> > <widgets> > <label text="Condition Passed. showing widget element. name is : > ${name}"></label> > </widgets> > <fail-widgets> > <label text="Condition failed! Showing Fail-widgets element. name is : > ${name}"></label> > </fail-widgets> > </section> > </screen> > > I,m new to ofbiz...not able to get the value of name in the else part?... > Thanks in advance. > |
Thanks brother...that's working.
On Thu, Aug 2, 2018 at 1:51 PM, Aditya Sharma < [hidden email]> wrote: > Hi Madhi Krishnan, > > I think the structure seems inapt. > > To set 'name' to 'madhi' for the overall screen, use: > <screen name="ConditionalScreen"> > <section> > <actions> > <set field="name" value="madhi"/> > </actions> > <widgets> > <section> > <condition> > <if-compare field="parameters.show" operator="equals" > value="widgets"/> > </condition> > <widgets> > <label text="Condition Passed. showing widget element. name is : > ${name}"></label> > </widgets> > <fail-widgets> > <label text="Condition failed! Showing Fail-widgets element. > name is :${name}"></label> > </fail-widgets> > </section> > </widgets> > </section> > </screen> > > HTH > > > Thanks and Regards, > > *Aditya Sharma* | Enterprise Software Engineer > HotWax Commerce <http://www.hotwax.co/> by HotWax Systems > <http://www.hotwaxsystems.com/> > > <https://www.linkedin.com/in/aditya-sharma-78291810a/> > > > On Thu, Aug 2, 2018 at 1:32 PM Madhi Krishnan < > [hidden email]> > wrote: > > > <screen name="ConditionalScreen"> > > <section> > > <condition> > > <if-compare field="parameters.show" operator="equals" > > value="widgets"/> > > </condition> > > <actions> > > <set field="name" value="madhi"/> > > </actions> > > <widgets> > > <label text="Condition Passed. showing widget element. name is : > > ${name}"></label> > > </widgets> > > <fail-widgets> > > <label text="Condition failed! Showing Fail-widgets element. name is > : > > ${name}"></label> > > </fail-widgets> > > </section> > > </screen> > > > > I,m new to ofbiz...not able to get the value of name in the else part?... > > Thanks in advance. > > > |
Free forum by Nabble | Edit this page |