Skip to Content
0
Former Member
Dec 08, 2011 at 08:24 AM

target node need to be repeated based on the output value of the UDF

312 Views

Hi Gurus,

I have the requirment to get the multiple records from the DB in UDF based on the single input value. I have to generate multiple occurance of the target node based on the output value of the UDF. I will explain with simple example

My input structure contains single field

Students_details

Classname

Student_details

In my UDF, i have accessing the DB using Database Accessor

The input value for the Classname is 5, then my UDF get all the student details of class 5.

My output structure should be

Student_Det

Student

roll no: 1

name: raj

average: 80

Student

Student

roll no: 1

name: raj

average: 80

Student

Student

roll no: 2

name: rajasekar

average: 40

Student

Student

roll no: 3

name: raja

average:90

Student

Student_Det

But the target node Student is not repeating. i ll get only one node in the output. My source Que contains single Context change. I have try to add the Context change after each value in the UDF using 'result.addValue(ResultList.CC);'

I have tried with Splitby value functionality. still its not repeating.. pls guide me

Regards,

Ramalakshmi.G