on 08-08-2016 12:10 PM
Small query in graphical mapping... value occurs in source four times... the sequence is dynamic.. but I need only one particular occurrence in output..
<Details>
<City>singapore</City>
<Code>1234<Code>
<City>malaysia</City>
<Code>1236<Code>
<City>bangkok</City>
<Code>1235<Code>
<City>jakarta</City>
<Code>1237<Code>
</Details>
Output only get value for
<City>bangkok</City>
<Code>1235<Code>
UDF is required? With remove context I am getting only first value...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My mistake that I gave u a wrong input structure.. the correct structure is details has )// unbounded occurence
<Header>
<Details>
<City>singapore</City>
<Code>1234<Code>
</Details>
<Details>
<City>malaysia</City>
<Code>1236<Code>
</Details>
<City>bangkok</City>
<Code>1235<Code>
<Details>
<City>jakarta</City>
<Code>1237<Code>
</Details>
</Header>
There is a context change after every Detail tab and If I use remove context and if condition I get only first value in the context.....I want the particular context where value of city is "bangkok"
Expected Target is only one value...
<Header><Details><CityCode>bangkok1235<CityCode> <Details></Header>
Thanks for providing the complete information.
can you please try this mapping
when you are mapping to "Details"(target) node set context of "City" node and "Code" node to "DeTails" (source) as shown below
similarly when you are mapping to header node in target , change the context of the same nodes to the Header node (in source).
The constant value is "bangkok1235"
the output
-----------------
Regards
Anupam
Thanks again anupam... I tried this but facing an issue as value "NA" has to go if the input does not have city as bangkok and code is 1235.. also due to this the nodes header and Details are always 1..1...
Now if the input values are as mentioned then citycode should be concatenated value of city and code..
the challenge is that there are many context and we have to pick up only the context where city is bangkok and cod eis 1235...
is this possible in graphical or we need queue /context udf?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lalrem!
You can do it using standard functions "Index" and "IfWithoutElse".
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lalrem Singh,
Based on city or code you can put the condition through Boolean functions.
then you will get result .
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.