Hi all,

I define a local variable as a node set that gets value from Mapping
Table. It always returns unique value. For example, local variable is
supposed to return {"","","1","3","2","3"} when the destination equals
"100". But it returns {"","1","3","2"} every time.

How can I get all value from mapping including the duplicate value?

Here is my rule:

> <do-set-local-variable name="lvPosition" scope="policy">
> <arg-node-set>
> <token-map default-value="xxx" dest="POSITION" src="DEPT"
> table="..\..\Library\MapMultipleColumns">
> <token-src-attr class-name="User" name="OU"/>
> </token-map>
> </arg-node-set>
> </do-set-local-variable>



Mapping Table XML is:


> <?xml version="1.0" encoding="UTF-8"?><mapping-table>
> <col-def name="DEPT" type="nocase"/>
> <col-def name="POSITION" type="nocase"/>
> <col-def name="GROUP" type="nocase"/>
> <row>
> <col>100</col>
> <col/>
> <col>A</col>
> </row>
> <row>
> <col>100</col>
> <col/>
> <col>B</col>
> </row>
> <row>
> <col>100</col>
> <col>1</col>
> <col>C</col>
> </row>
> <row>
> <col>100</col>
> <col>3</col>
> <col>D</col>
> </row>
> <row>
> <col>101</col>
> <col>1</col>
> <col>E</col>
> </row>
> <row>
> <col>102</col>
> <col>2</col>
> <col>F</col>
> </row>
> <row>
> <col>100</col>
> <col>2</col>
> <col>G</col>
> </row>
> <row>
> <col>101</col>
> <col/>
> <col>H</col>
> </row>
> <row>
> <col>100</col>
> <col>3</col>
> <col>I</col>
> </row>
> <row>
> <col>103</col>
> <col/>
> <col>J</col>
> </row>
> <row>
> <col>103</col>
> <col>1</col>
> <col>K</col>
> </row>
> <row>
> <col>101</col>
> <col>1</col>
> <col>L</col>
> </row>
> <row>
> <col>104</col>
> <col></col>
> <col></col>
> </row>
> <row>
> <col>104</col>
> <col></col>
> <col></col>
> </row>
> </mapping-table>



--
knakkarit
------------------------------------------------------------------------
knakkarit's Profile: http://forums.novell.com/member.php?userid=7652
View this thread: http://forums.novell.com/showthread.php?t=409150