Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Lookup Plus - Default value as a single space
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Huemmer  
View profile  
 More options Sep 6 2012, 4:32 pm
From: Tim Huemmer <tim.huem...@gmail.com>
Date: Thu, 6 Sep 2012 13:32:22 -0700 (PDT)
Local: Thurs, Sep 6 2012 4:32 pm
Subject: Lookup Plus - Default value as a single space

When using the Lookup plus component, there is a trick to get the No Match
and NULL values to be output as a NULL value.  This involves hitting the
space bar in these fields on the grid when editing the component's
properties.

My question is, if hitting the space bar causes the value to be NULL, how
does one get the default value to be a space?

Thanks in advance!

Tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Peev  
View profile  
 More options Sep 7 2012, 6:46 pm
From: Ivan Peev <ivan.p...@cozyroc.com>
Date: Fri, 7 Sep 2012 15:46:57 -0700 (PDT)
Local: Fri, Sep 7 2012 6:46 pm
Subject: Re: Lookup Plus - Default value as a single space

Hi Tim,

Is this theoretical question or you have real business scenario where the
space should be used as default value?

In general it is not good idea to use space-only as default value anywhere
in any system. The reason for this is many systems will do Trim of the
value, before checking if it is empty. And in the case of space-only, this
field will be determined to be empty.

Regards,
Ivan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Summerlin  
View profile  
 More options Sep 7 2012, 8:26 pm
From: James Summerlin <jame...@hotmail.com>
Date: Fri, 7 Sep 2012 20:26:04 -0400
Local: Fri, Sep 7 2012 8:26 pm
Subject: RE: Lookup Plus - Default value as a single space

I do concur with Ivan.  Having a single space in a field is most likely not
a good idea.  Most systems do TRIM() fields which will turn your space into
a NULL.  Furthermore, you place yourself at the risk of, when updating the
field, if you do not account for the space that is already there you will
have a space in your string and risk overflowing the field (think phone
numbers that are an NVARCHAR(10)).

With all due respect, I can think of no reasons you would want to do this
and plenty where you would not.

James

From: cozyroc@googlegroups.com [mailto:cozyroc@googlegroups.com] On Behalf
Of Ivan Peev
Sent: Friday, September 07, 2012 6:47 PM
To: cozyroc@googlegroups.com
Subject: Re: Lookup Plus - Default value as a single space

Hi Tim,

Is this theoretical question or you have real business scenario where the
space should be used as default value?

In general it is not good idea to use space-only as default value anywhere
in any system. The reason for this is many systems will do Trim of the
value, before checking if it is empty. And in the case of space-only, this
field will be determined to be empty.

Regards,

Ivan

On Thursday, September 6, 2012 4:32:22 PM UTC-4, Tim Huemmer wrote:

When using the Lookup plus component, there is a trick to get the No Match
and NULL values to be output as a NULL value.  This involves hitting the
space bar in these fields on the grid when editing the component's
properties.

My question is, if hitting the space bar causes the value to be NULL, how
does one get the default value to be a space?

Thanks in advance!

Tim

--
You received this message because you are subscribed to the Google Groups
"COZYROC" group.
To post to this group, send email to cozyroc@googlegroups.com.
To unsubscribe from this group, send email to
cozyroc+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msg/cozyroc/-/9gDQSmGv05gJ.
For more options, visit https://groups.google.com/groups/opt_out.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Huemmer  
View profile  
 More options Sep 8 2012, 12:57 am
From: Tim Huemmer <tim.huem...@gmail.com>
Date: Fri, 7 Sep 2012 21:57:04 -0700 (PDT)
Local: Sat, Sep 8 2012 12:57 am
Subject: Re: Lookup Plus - Default value as a single space

Ivan,

I have a business case where this is necessary.  I am dealing with a
mainframe system that will not accept NULL values in a field.  If there is
no value for the field, then it is expecting a space.

While I agree in theory that this is not ideal, it is what it is when you
are dealing with legacy systems so I'd like to know if there is a way to do
this.  As a workaround, I used a derived column to replace the NULL value
with a space, but there are several fields in the destination table that
behave like this and was hoping to save a few steps.

Tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan Peev  
View profile  
 More options Sep 9 2012, 6:32 am
From: Ivan Peev <ivan.p...@cozyroc.com>
Date: Sun, 9 Sep 2012 03:32:27 -0700 (PDT)
Local: Sun, Sep 9 2012 6:32 am
Subject: Re: Lookup Plus - Default value as a single space

Hi Tim,

Thank you for your feedback! I would say your legacy system is the
exception to the rule. Your approach with the derived column sounds like a
reasonable solution for the issue at hand. I cannot think of a simpler
solution at this time short of changing the Lookup Plus component.

Regards,
Ivan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »