View Full Version: Empty Variable

LawsonTalk > BCI, Processflow and Addins > Empty Variable



Title: Empty Variable
Description: branch w/ empty variable


shanesmj - February 8, 2007 07:38 PM (GMT)
I have a process flow that I am trying to have a branch that looks at whether the value is empty or if it has a value... I am trying to branch off the variable if the value is empty/null but it is not working.

I tried the following statements in my branch:

NEWLOC == ""
NEWLOC ==''
IsNull(NEWLOC)

However, none of these are working. The variable value appears to be empty. I have added the variable to an email to see what is in the variable and it shows no value. I put a letter in front and behind the variable and the value appears as empty.

Any suggestions?

Thanks
Shane

schroncd - February 8, 2007 09:52 PM (GMT)
I've done something similar in scripts.. Try assigning a new variable called XNEWLOC starting with "X" followed by NEWLOC then if XNEWLOC = "X" then NEWLOC is null

Branch and go

g'luck!


mthedford - February 14, 2007 07:48 PM (GMT)
Try the opposite approach in the branch - test for not equal to blank or null.

NEWLOC != ""

vc727 - April 13, 2007 02:46 PM (GMT)
I have used the this to find blank fields

Query6530_43.length==0

I use it in determining if a field has changed on a personnel action.

vc727 - April 13, 2007 02:59 PM (GMT)
After the branch I assign a value of NO CHANGE to the variable.

So what I have is a variable called NEW POSITION if it has a value it gets assigned the new value if it is blank it gets assigned NO CHANGE and this variable is placed in the email message. hope that makes sense.




Hosted for free by InvisionFree