Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Logical error Using concatenated data
rashad01
Hi..
I am using the following code.
if(dataSetRow["WIRE_ID"] == "Y")
{
displayString = BirtStr.concat(dataSetRow["ACCT_CITY"],dataSetRow["STAT_CODE"],dataSetRow["POS_CODE"],dataSetRow["COUNTRY"]);
}
else
{
displayString = "";
}
output
newyork,nullnullnull
Now , whenever any of the values is empty(i.e null), in output it displays "null" and my requirement is that it should display nothing.
required output:
newyork
Please help me, how to code this
Find more posts tagged with
Comments
Davolio
try something like this...
var txtSrcWorkKey = row["FIELDNAME"];
if (txtSrcWorkKey == null)
{
txtSrcWorkKey = "";
}
//// continue coding...
rashad01
Hey.. Thanks a lot
.. This solution works for that condition..