cancel
Showing results for 
Search instead for 
Did you mean: 

Do not send the whole node if one of its subelements has a value '0'.

Former Member
0 Kudos

Hello all,

I have to write a logic in message mapping for this structure below.

<Table> 0.......out bounded

<row> 1....1

<access> 0...1

</row>

</Table>

If access is having a value '0', then do not send the table node at all to the receiver.

Please let me know..

Thanks

Mike

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

for the Table node use the logic as below;

If source field for access NOT EQUALS 0 then map source field to Node Table

use a IF without ELSE, Boolean NOT and STRING function EQUALS, in this case.

try the logic.

Former Member
0 Kudos

<Table> 0.......out bounded

<row> 1....1

<access> 0...1

</row>

</Table>

Here access is a date field. I have to check whether access(date) is empty, and if so, do not map the table node to the target field.

This structure is source field structure. I did not understand what shabarish suggested

Can you pls elaborate the steps.

Appreciate

-Mike

former_member200962
Active Contributor
0 Kudos
Here access is a date field. I have to check whether access(date) is empty, and if so, do not map the table node to the 
target field.

if the source field is empty then data from this node (Table) should not be mapped.....i hope its right.

Access--> length -->
                       --> equalS --> Not --> If (then Table) --> Target
Constant(0) -->

Use the above logic.....the above logic checks if the length of the data in Access is more than 0 or not......if 0 then it would mean that the node need not be mapped.... ensure that you take care of Context of Access Node

Regards,

Abhishek.

Former Member
0 Kudos

Hi Mich

Check source fieldis equal fucntion and Costant then map NOT fucntion then use If condion then produce the empty node to the target.

Regards,

Venu.

Former Member
0 Kudos

Thanks Abhishek

-Mike

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

What is your target structure? If it something like this -


<MT>
    <record>
          <field> ....
     </record>
</MT>

Map <record> with <table> and write an UDF to restrict the creation of the record node, using the value of <access>.

Hope this helps.

Regards,

Neetesh