on 05-24-2006 5:37 PM
hi,
I have a date function, which I am transforming from one format to another format. But when I dont send any date, its throwing an error. How can I create the transform function only when I have some data in it?
Thanks,
Sunita.
Hi Sunitha,
You can try some thing like this
DATE -
> Transform
Date->Length>
Equals->NOt--->IF Date
else
[0] constant
Regards,
Chandra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use if then else. If your date is equal to [] null then null (no transform).
else transform your date and send it.
Hope this works for you as it did for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Use the function, if then else
use if function and check the value of the input field by using string equals funtion and compare with the constant "null", then map it to if condition, in the then field map a constant with null and if the else field map the input field.
Regards,
Nithiyanandam
Sunita,
What about <b>createIf()</b>.
-Naveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Source field-> Exists function->If then ->DateFormat Function->Target Field
Else Constant->DateFormatFunction->Target Field.
Are you using standard Dateformat function or UserDefined function. If userdefined function then try source is empty then do nothing inside the java function. For this also above mapping is required..
Thanks,
Moorthy
Hi Sunitha,
try a funtion to accept a system date when you don't want to send a date.
Regd's
Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Sunita,
Use Exists node funstion before transforming the dates with If-Else Logic in the Message Mapping. If it exists then transform it else don;t do anything..
Hope this helps,
REgards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.