on 10-28-2008 1:18 PM
Hi,
I have a Receiver Determination with two Receivers and I'm having problems with the conditions. I need to send the message to the first receiver if the first character of the Partner Number is an 8. Otherwise I need to send the message to the second receiver.
With the first condition I've used the Contains Pattern operator (8+++). However, I'm not sure how I specify the second condition. What I'm attempting to do is check to see if the first character is anything BUT an 8 but I don't believe I can use pattern matching with the not equals operator.
Can anyone offer some advice?
use startsWith in combination with boolean if function.
if--> startsWith (<string >, "8")
else -->
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Assume the following is source xml:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:root xmlns:ns0="http://dummy.dk">
<str>applicon</str>
</ns0:root>
In a condition in a receiver determination I could then use the following expression for branch IF:
(/p1:root/str[starts-with(.,'8')] EX )
and the following for branch OTHERWISE:
(/p1:root/str[not(starts-with(.,'8'))] EX )
Best Regards,
Daniel
Edited by: Daniel Hans Engsig-Karup on Oct 29, 2008 10:40 AM
Hi...
You can use "StartWith" function in Text Function in mapping.
This function will,
Tests whether string start with specified prefix.
Regards,
Leela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.