I have a text connector that has a field that contains multiple values
using a tilde as a separator.

00~01
00~02
09~03

I saw an example posted by Father Ramon on using split for this
situation and below is the code that I created based on the message I
read.

Here is the is the recommendation was in the previous message:
=================================
if operation = add
and operation attribute 'whatever' available
set local variable xxx = operation attribute('whatever')
strip operation attribute 'whatever'
for each (split(local variable(xxx), '~'))
add attribute value 'whatever' = local variable (current-node)
==================================
Below is my implementation of the recommendation. I think that it looks
exactly like the example but it does not work for me. I get 00~01 as a
single value in the attribute when there should be

00
01

in the multivariable attribute

Any help would be appreciated
========================

<rule>
<description>Set FSCodes </description>
<conditions>
<and>
<if-operation mode="nocase" op="equal">add</if-operation>
<if-op-attr name="BigCardFSCode" op="available"/>
</and>
</conditions>
<actions>
<do-set-local-variable name="lvBCFSCode" scope="policy">
<arg-string>
<token-op-attr name="BigCardFSCode"/>
</arg-string>
</do-set-local-variable>
<do-strip-op-attr name="BigCardFSCode"/>
<do-for-each>
<arg-node-set>
<token-split delimiter="~">
<token-local-variable name="lvBCFSCode"/>
</token-split>
</arg-node-set>
<arg-actions>
<do-add-dest-attr-value name="BigCardFSCode">
<arg-value>
<token-local-variable name="current-node"/>
</arg-value>
</do-add-dest-attr-value>
</arg-actions>
</do-for-each>
</actions>
</rule>


--
martinduffy
------------------------------------------------------------------------
martinduffy's Profile: http://forums.novell.com/member.php?userid=31716
View this thread: http://forums.novell.com/showthread.php?t=380884