L
|
lineamovil author 7/7/2023 |
Made this, but didnt work $record = $button->getCurrentRecord(); $strSQLUpdate = "UPDATE rutassub SET Usuario =".$_SESSION["UserName"]." where foliodetalle = ".$record["FolioDetalle"].""; db_exec($strSQLUpdate,$conn);` |
![]() |
Sergey Kornilov admin 7/8/2023 |
First of all, you cannot use session variables in Javascript events like ClientBefore. Most likely this errors prevents other parts of the code from workinng. |
L
|
lineamovil author 7/12/2023 |
Thank you! $record = $button->getCurrentRecord(); $strSQLUpdate = "UPDATE rutassub SET usuario ='".$userData."', registro='".$userDataX."', Lng='".$userDataLong."', Lat='".$userDataLat."' , Realizado='Si' where foliodetalle = ".$record["FolioDetalle"].""; db_exec($strSQLUpdate,$conn);` |