/scripts/ahub.form.attachments.js
0

Java Mapping error

Nov 25, 2016 at 07:36 AM

57

avatar image

Hi All ,

Am Facing an issue in pulling the data as per the below logic :
Requirement :

"If both values ('UBS Participant local ID & 'UBS (EVO ID)') are not equal to null then pass value 9017 and 9007

If 'UBS Participant local ID is not equal to null then pass value as 9017

If' UBS (EVO ID)' is not equal to null then pass value as 9007" E1P0105 USRTY


And it is not working , when

UBS Participant local ID filled if USRTY = 9017 E1P0105 USRID
UBS (EVOD) filled if USRTY = 9007 E1P0105 USRID_LONG


Regards,

Vijender

gfh8n.png (33.3 kB)
8zsa3.png (16.0 kB)
jqnez.png (17.0 kB)
p3y8g.png (18.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Evgeniy Kolmakov Nov 25, 2016 at 07:54 AM
0

Hi Vijender!

Try to use IfWithoutElse and IfThenElse finctions in your mapping instead of using IfSWithoutElse and IfSThenElse.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded
Vijender Gouda Nov 25, 2016 at 09:46 AM
0

Hi Evgeniy ,

I have used it but also am facing issue , can you share your test results .

Regards,

Vijender

Share
10 |10000 characters needed characters left characters exceeded
Andrzej Filusz Nov 25, 2016 at 11:04 AM
0

Hi Vijender,

I'm not sure if I understand your requirements, but try to remove 'break' command from your 'for' loop in UDF.

Best regards,

Andrzej

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Nov 28, 2016 at 01:55 AM
0

Hi Vijender!

As I could see from your code, your iteration is always performed only once. What's the mean of it?

If you want to iterate through all of your elements, you should change contexts of your source fields up to one level or use RemoveContexts standard function after MapWithDefault. And it's also worth noting that Counter function returns one value per context so its length in your case is the constant - 1.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded
Skip to Content