on 06-05-2018 6:56 AM
Dear Experts,
I have one input field where I will be getting multiple inputs, however in case there is no input present there I need to supply 2 default values in same node.
This is the mapping.
Please help me with an UDF.
Regards, Vidhya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vidhya,
Try the below logic and UDF,
UDF code:
String j[]={"value1","value2"}; if(var1[0]!="") { for(int i=0;i<var1.length;i++) { result.addValue(var1[i]); } } else { for(int i=0;i<2;i++) { result.addValue(j[i]); } }
Replace Value and Value with whatever values you require to be populated.
Thanks Raghu,
It worked like charm!!!!!!!
Thanks a lot! 🙂
Regards,
Vidhya
Nice to hear Vidhya!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.