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)
String Concatenation error or what?
Yvonne Mwajuma
if ( dataSetRow["Time"] >=0 && dataSetRow["Time"] <= 9 )
{
displayString= "0" + dataSetRow["Time"] + "00"; // insert prefix single zero and a double postfix of double zero if a single digit
}
else
displayString= dataSetRow["Time"] + "00"; //insert double postfix of double zero if a single digit
The expression above is within a data element expression builder.
The problem is that neither of the zeros are recognized. It just retrieves from the dataset as though this code does not exist. It returns no errors either.
Kindly assist.
Find more posts tagged with
Comments
Yvonne Mwajuma
Got the fix. The data type for the data element was integer instead of string. With that change, it worked fine.