BusinessObjects Board

inputs for user defined component

Hello,
I am trying to develop a user defined function which can handle any input.
For example
if i have a table

temp1

id;name
1;AAA
2;BBB

I can define my input fields as id and name.Hence using python I can access them as record.GetField(u’id’),record.GetField(u’name’)

Imagine a case where i chaged the input table temp1 with table temp2

id_number;name_student
11;CCC
22;DDD

then i have to rename the input varables and the python code as record.GetField(u’id_number’),record.GetField(u’name_student’).

Is there any way so that i can get my input fields dynamically like
record.getfield(“1”) indicating the first input etc???

Thank you in advance.


vvsndinavahi (BOB member since 2014-08-26)

Unfortunately you cant dynamically map the inputs/outputs reqd by the transform. Your get/set fields need to reference these mappings which are immutable, as far as your code is concerned.


jlynn73 :us: (BOB member since 2009-10-27)