On step1 i got : {col}= “<input type=‘text’ size=‘6’ onchange=‘myfunction({ProductID},this.value)’>”;
the alert later give me a wrong value for {ProductID} . I also try to use ‘{ProductID}’ between quotes but it give an error. SEE IMAGE
Why alert work only on first row and then, on other rows, not ??
echo ‘<script>
function myfunction(id,quantity){
alert("ID: "+id + " and quantity: "+quantity); // place your CUSTOM CODE HERE
}
</script>’;
If I have 7/8 parameters to pass to blank application where I have to add them ?
This is the blank with all glo_variables I need to record the row into table. ProductID and Quantity are some of them.
[order_date] = date(‘Y-m-d’);
$sql_insert_selected = "
INSERT products_selected
(ProductID, CustomerID, ProductName, SupplierID, CategoryID, CompanyID, SelectedDate, Quantity, UnitPrice , ProductID_altern)
VALUES
(’[glo_ProductID]’, ‘[glo_CustomerID]’, ‘[glo_ProductName]’, ‘[glo_SupplierID]’ ,
‘[glo_CategoryID]’, ‘[glo_CompanyID]’, ‘[order_date]’ , [glo_Quantity_row], [glo_UnitPrice], ‘’)
ON DUPLICATE KEY UPDATE Quantity = Quantity + [glo_Quantity_row]";
sc_exec_sql( $sql_insert_selected );
sc_redir(hhh_grid_products_for_order, “”, “_parent”);