When I run the following two methods, I get:
org.firebirdsql.jdbc.TypeConvertionException: Error converting to object. Error converting to object.
First Method:
//loadfiles[clientload]
//for ( var i = 0 ; i < controller.getMaxRecordIndex() ; i++ )
//{
//controller.recordIndex=i
var a = [‘’,clastname,cfirstname,cmiddlename,clientname,caddress,‘’,ccity,cstate,czip,csalut,csuffix]
if ( utils.stringPatternCount(indivcorp, ‘Corp’)>= 1 )
{
a[0]=‘Corporate’
}
else
{
a[0]=‘Individual’
}forms.name.loadName(a);
namenameid = globals.returnedNameId//}
forms.clList.controller.showRecords(Object)
Second Method:
//loadName[name]
/* This method relies on the following parameter list being passsed to it:
0. Individual/Corporate designation
- Last Name
- First name
- Middle Name
- Organization Name
- Address Line 1
- Address Line 2
- City
- State
- Zip
- Salutation
11 Suffix
*/controller.newRecord()
indivcorp=arguments[0]
namelast=arguments[1]
namefirst=arguments[2]
namemiddle=arguments[3]
organization=arguments[4]
nameaddress1=arguments[5]
nameaddress2=arguments[6]
namecity=arguments[7]
namestate=arguments[8]
namezip=arguments[9]
namesal=arguments[10]
namesuf=arguments[11]
controller.saveData()
globals.returnedNameId=nameid
I am reading record in a table and creating a record in another table, while passing the data to be entered into the second table as array elements. I thought this would be pretty simple stuff. What am I missing?