gsr
02/06/2023, 2:03 PM<cfargument name="structform" type="any" required="true">
<!--- initialize variables used within this component --->
<cfscript>
dsn = arguments.structform.dsnName;
uname = structform.uname;
pass = structform.pass;
</cfscript>
<!--- return a reference to this component --->
<cfreturn this>
and it is saying structform is undefined in arguments
i tried passing values one by one, still same issues, it only works when i just pass one value and that is the dsn name
but i need otehr values, this is really making me annoyingMarc Funaro
02/06/2023, 2:06 PMgsr
02/06/2023, 2:14 PMdb = {
'dsn':'dbbname',
'uname': 'testuser123',
'upass':'test123'
}>
x = createobject("component","pages").init(db)>Marc Funaro
02/06/2023, 2:34 PMJim Frankowski
02/06/2023, 3:05 PMMichael Schmidt
02/06/2023, 3:43 PMMichael Schmidt
02/06/2023, 3:45 PMMichael Schmidt
02/06/2023, 3:47 PM<cfscript>
db = {
'dsnName':'dbbname',
'uname': 'testuser123',
'pass':'test123'
};
x = createobject("component","pages").init(db)
</cfscript>