Skip to Content
0
Aug 10, 2007 at 03:34 PM

Multiple Calls to UDF

12 Views

HI All

I have the following structure for my message type

MT1

-


Elem1 (1..1)

-


Recordsets (0..unbounded)

-


RecElement1 (1..1)

-


RecElement2 (1..1)

I am trying to map RecElement1 to a target field , by using a user defined function which accepts RecElement1 as an input parameter . But i am getting a strange behaviour. The User defined fn gets called twice somehow.

Suppose i have three Recordset nodes . The UDF gets called once for the first node and thereafter it gets called twice for each RecElement1 in the subsequent nodes.

Can anyone help me on this.

Thanks in advance.

regards

Nilesh