Empty String in entity-condition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Empty String in entity-condition

Foo Shyn Chung
Hi all,

I need to check a field for empty string value in my entity-condition. I
search through the net but can't find a workable solution for me (tried
using nullField or removing the value attributes but both doesn't work).

What i need to do actually is to verify a field so that it is not empty:

<condition-expr field-name="batchNo" operator="not-equals" value="" />

Any idea on this?

Thanx
FooShyn
Reply | Threaded
Open this post in threaded view
|

Re: Empty String in entity-condition

Atul Vani
Check out the use of ignore-if-empty and ignore-if-null in
InventoryReserveServices.xml

Thanks&  Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


On 04/13/2012 09:16 AM, Foo Shyn Chung wrote:

> Hi all,
>
> I need to check a field for empty string value in my entity-condition. I
> search through the net but can't find a workable solution for me (tried
> using nullField or removing the value attributes but both doesn't work).
>
> What i need to do actually is to verify a field so that it is not empty:
>
> <condition-expr field-name="batchNo" operator="not-equals" value="" />
>
> Any idea on this?
>
> Thanx
> FooShyn
>
Reply | Threaded
Open this post in threaded view
|

Re: Empty String in entity-condition

Rishi Solanki
In reply to this post by Foo Shyn Chung
<condition-expr field-name="batchNo" operator="not-equals"
from-field="nullField" />

Should work. Please see the examples in PartyServices.xml of party manager.

--
Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com


On Fri, Apr 13, 2012 at 9:16 AM, Foo Shyn Chung <[hidden email]> wrote:

> Hi all,
>
> I need to check a field for empty string value in my entity-condition. I
> search through the net but can't find a workable solution for me (tried
> using nullField or removing the value attributes but both doesn't work).
>
> What i need to do actually is to verify a field so that it is not empty:
>
> <condition-expr field-name="batchNo" operator="not-equals" value="" />
>
> Any idea on this?
>
> Thanx
> FooShyn
>
Reply | Threaded
Open this post in threaded view
|

Re: Empty String in entity-condition

Foo Shyn Chung
For some reason nullField doesn't work on our component...but after
changing to using nullvalue as suggested by Brajesh it worked...i'm still
trying to figure out what is the issue.

Thanx
FooShyn

On Tue, Apr 17, 2012 at 10:22 PM, Rishi Solanki <[hidden email]>wrote:

> <condition-expr field-name="batchNo" operator="not-equals"
> from-field="nullField" />
>
> Should work. Please see the examples in PartyServices.xml of party manager.
>
> --
> Rishi Solanki
> Manager, Enterprise Software Development
> HotWax Media Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxmedia.com
>
>
> On Fri, Apr 13, 2012 at 9:16 AM, Foo Shyn Chung <[hidden email]> wrote:
>
> > Hi all,
> >
> > I need to check a field for empty string value in my entity-condition. I
> > search through the net but can't find a workable solution for me (tried
> > using nullField or removing the value attributes but both doesn't work).
> >
> > What i need to do actually is to verify a field so that it is not empty:
> >
> > <condition-expr field-name="batchNo" operator="not-equals" value="" />
> >
> > Any idea on this?
> >
> > Thanx
> > FooShyn
> >
>