on 12-02-2008 5:44 AM
Hi
How to suppress target structure based on condition
Example:
Source is like:
<Details>
-
<Name>abdc</Name>
-
<ID>234</ID>
-
<Address>US</Address>
</Details>
I have two target structures
1:
<Details>
-
<Name>abdc</Name>
-
<ID>234</ID>
-
<Address>US</Address>
</Details>
2:
<Error>
<ErrorID>
</Error>
if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.
example
abc,123,US
abc
in above case second record has two null values
so my target structure should be
<Details>
-
<Name>abc</Name>
-
<ID>123</ID>
-
<Address>US</Address>
</Details>
<Error>
<ErrorID>2nd record has erro</ErrorID>
</Error>
How to acheive this..
Please help us
Regards
Sowmya
Hi Sowmya,
The mapping is too long. I've sent you the details.
Regards,
**********
Please read the Forum's Rules of Engagement,
i.e.,
[/thread/117188 [original link is broken];
and refrain from using email correspondence as the main objective of the Forums is to share knowledge.
SDN PI/XI Forum Moderator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sowmya,
The "exists" function does not check the field values but it checks whether the node is present or not.
even if the value is empty in the field then also it will give true because node still exists.
And you anly want to check if the value is blank.
[Name] error in record (true)
-> equlas -> if ->[Error ID]
[] [] (False)
put the OR and repeat the same for other two
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Name--->exist--->not---\ then--------->createif---->Details
or--------->if
ID--------->exist--->not-----\ else<-------createif<----Error
or
Address->exist-->not-----/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
plz try the following mapping
Name-->exist-->if than else-> tuue----->Name
false---(constant)--
error
ID-->exist-->if than else-> tuue----->ID
false---(constant)--
error
adress-->exist-->if than else-> tuue----->address
false---(constant)--
error
regards,
navneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.