Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am trying to put defualt data in the target when source node is not present.
I used logical functoid but logicla existanse functoid does not reutrn when the node is not present. I used Logical functoid connect to logical Not functoid to catch the false condition but it did not work either.

Any help will be appreciated.
Posted

1 solution

One way on how to do this is by using Record Count, Logical Equal, and Value Mapping functoids.
Below are the parameters for the functoids.

Record Count:
1. Source Node

Logical Equal
1. Record Count
2. 0

Value Mapping
1. Logical Equal
2. (default value for destination)

For the Destination node, you need to map the result from the Value Mapping functoid and the source node, so there will be two mappings for the destination node.

Hope this helps.
 
Share this answer
 
v2
Comments
CannonD 8-Apr-11 11:30am    
It does not work, it returns default value if I did not make a second link to a destination from source but as soon as I link from source to destination nothing is populated.
thanks for you time.
walterhevedeich 8-Apr-11 12:33pm    
It worked on my end. What did you do? can you post the xslt?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900