on 2009 Jan 30 3:07 AM
Hi all
in my mapping i am using IF statement , in which ,
one of my condition is that
if -
> condition exist then -
> pass XXXXXXXX
else _----
> pass YYYYYYY
when i check my display queue . in the else part data is there but it is supressed
please help me in this issuse
it is not working , with collapsecontext also
Edited by: sridhar loganathan on Jan 30, 2009 8:47 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try the following mapping,
YYYYYYY --> CollapseContext -->
XXXXXXXX --> CollapseContext -->
Equals --> if --> SplitByValue-->Target Field.
Constant(blank Value)
XXXXXXXX --> CollapseContext -->
-Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sridhar,
It is because of queue and context problem.
The queues should be same for all the input.
Can you give your source structure?
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have uploaded the screen shot here. Have a look and let me know if it is your requirment else sent me the screen shot of what exactly you are doing and the problem.
http://www.4shared.com/file/83217639/8f4a48a/New_Microsoft_Office_Word_Document.html
Thanks
Sunil Singh
Hi,
Use the node function mapWithDefault like this:
YYYYYYY ---> mapWithDefault, you could also use it in the then part just to make sure the value is not suppressed
Hope this helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi thank you very much ,
XXXXXX and YYYYYY are address fields coming from data base , i am using condition that if XXXX not exist then take that one else YYYYYY, but in my case i have YYYYYY , which i cannot make it default ,and one more thing i have value in the YYYYYY fields , i dont know why it is getting supressed , in IF condition
Hi,
We've had also the same scenario in which the source field is coming from database. We have used mapWithDefault but without giving any default values. Our scenario was:
VENDOR_URL --> mapWithDefault --> equalsS NA, where the VENDOR_URL is a constant, but in the middle of the mapping, this is replaced by a value in the hashmap function. I'm not sure why the mapWithDefault was used, but this worked
Hi Sridhar,
I think you have some wrong concept with exists function.
Here in your case you require to check the value of node, not the node.
exists function checks if the node is present if the node is present then only it will pass true irrespective of its value.
in nutshell exists function only cheks the node not its value.
I would suggest you to use equals from the text function it will work.
Thanks
Sunil Singh
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.