on 12-15-2014 12:32 PM
I have following udf code.
String MessageID;
java.util.Map param = container.getTransformationParameters();
MessageID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
return MessageID;
In above mentioned code string variable MessageID having value 500 and returning value, after execution of
this code. But requirement is value will return like (500) instead of 500. How to concatenate "(" and ")" with string MessageID.
So value will come like - (500).
Thanks
Mrityunjoy
Hi,
try the below UDF
String MessageID;
java.util.Map param = container.getTransformationParameters();
MessageID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
return '('+MessageID+')';
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
replace return MessageID; with below statement in your code
return "(" + MessageID + ")";
Thanks,
Sandip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.