relation with null value

Questions, tips and tricks and techniques for scripting in Servoy

relation with null value

Postby IT2Be » Wed Feb 18, 2004 9:39 pm

I built a relationship on two values:

organizationid = organizationid
globals.value = invoicesid

globals.value is in this case empty... (Is it really "" or is it null)

Now I don't know if this is possible but what I try to archieve is find all orders in this case where the organizationid = organizationid and the invoicesid is still null (or empty).

How can I do this? What I defined above doesn't work...

1. organizationid = organizationid works...
2. invoicesid = nullable...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby jcompagner » Mon Feb 23, 2004 12:32 pm

the problem is that in youre case the global is ""
to set the global really to null you have to set it through javascript:

global.xxx = null;

then the related foundset should return the values where xxx is null ...
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby IT2Be » Mon Feb 23, 2004 12:41 pm

Thanks Johan, it works now!!!
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to Methods

Who is online

Users browsing this forum: No registered users and 21 guests