You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Madhi Krishnan <ma...@udyogmandir.in> on 2018/08/02 08:02:05 UTC
Not getting the variable name value
<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.
Re: Not getting the variable name value
Posted by Madhi Krishnan <ma...@udyogmandir.in>.
Thanks brother...that's working.
On Thu, Aug 2, 2018 at 1:51 PM, Aditya Sharma <
aditya.sharma@hotwaxsystems.com> 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 <
> madhi.krishnan@udyogmandir.in>
> 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.
> >
>
Re: Not getting the variable name value
Posted by Aditya Sharma <ad...@hotwaxsystems.com>.
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 <ma...@udyogmandir.in>
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.
>