Good afternoon,
In my production environment this code is not working
// Check for record
$check_sql = “SELECT hardwareID, typeDesc, hwModelDesc, vendorname, warrantyEndDate "
. " FROM hwalldet”
. " WHERE hardwareID = ‘" . {hardwareID} . "’";
sc_lookup(rs, $check_sql);
if (isset({rs[0][0]})) // Row found
{
{hwType} = {rs[0][1]};
{hwModel} = {rs[0][2]};
{vendor} = {rs[0][3]};
{warrantyEnd} = {rs[0][4]};
}
else // No row found
{
{other_field} = ‘nothing’;
{other_region} = ‘more nothing’;
}
I am given this error
Uncaught ArgumentCountError: Too few arguments to function newTicket_apl::hardwareID_onChange(), 0 passed I have the very similar code (different tables and fields) working elsewhere in production so I am not sure what I am missing. Thanks, Keith