Skip to Content
Former Member
Mar 30, 2007 at 02:25 PM

Reg., User Defined Function


Hi Experts,

I have created sample User Defined Function for adding FirstName and LastName and displays or returns FullName.

1. Issue One

As I am new to Java, I had tried to write the code as follows. (After clicking on Function icon in Design.

Passed 2 strings as parameters a, b.

String delim = "-"

String full;

full = a + delim + b;

return full;

After testing in 'Test' tab, i am getting the following error.

--> Error

incompatible types found :

char required: java.lang.String String delim = '-';

^ 1 error

<<-- Error end

I have created Two data types

DT_Input (with FirstName, LastName)

DT_Output (with FullName)

Now i would like to create for example 'MyConcatTest' UDF which takes the input parameters as FirstName, LastName and concatenates and should display the FullName in the Outout.. This is my basic requirement in creating the UDF.

Can some one provide the correct Java code which I need to use in my UDF.

2 . Issue Two

I have created MyConcatTest UDF. Now I would like to change the code in that UDF. So how can I edit this UDF again to update the java code.

Could someone please answer this.

Thanks in advance.