on 12-01-2008 8:34 AM
Hi Experts,
If the source field value is "ONE" then the target segment will occur only once, otherwise as many time as that of source segment.
How to do this mapping?
Regards
Sara
are you talking about the value in the source field or the occurance of the source field?
if it is the occurance then you can directly map the segment to the target. Note that the source and target segments sud have the occurance as unbounded in such a case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You will have to use IF THEN condition and check if ur input is equal to "ONE".
if its not equal to "ONE" then you will have to use the standard function USE ONE AS MANY.
Note: while using USE ONE AS MANY standard function, be sure to set the context properly else u will get an error.
This will help you.
Thanks
Saiyog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
<SRC>
<node1>ONE</node1>
<node2></node2>........(0..unbounded)
</SRC>
If I got your req right then proceed as follows:
1) Check if source field = ONE....use constant(with value ONE) and EqualS function.
2) give the output of EqualS function to If (With else)
3) give the source field (here node1) as input to the then part..
4) Now for the else part use the segment as input according to which you want your target to repeat (here node2)....
5) output of If-else should be given to the respective target element....
6) set the context properly...
7) make sure that target is repeating....if the else part has to be executed.
Regards,
Abhishek.
Edited by: abhishek salvi on Dec 1, 2008 2:43 PM
Edited by: abhishek salvi on Dec 1, 2008 2:45 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Pass that field value(one or two) to the UDF and write this code in UDF
for(int i =0;i<a.length;i++)
result.addValue("");
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depend on your Scenario,could u explain in detail your requirement.
Generally For One source Message , one target message would be generate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.