Modifying the value of a field for all selected records on the List page Runner_mail( array ( 'to' => $email, 'subject' => $subject, 'body' => $email_msg )) įor more information, see getNextSelectedRecord().Įxample 3.
While ( $data = $button ->getNextSelectedRecord())
#Using checkboxes php maker code
To send records selected on the List page via email, add the following code to the Server event: Send records selected on the List page via email $result = "Product was added" įor more information about using the Data Access Layer (DAL), see Data Access Layer.Įxample 2. $ShoppingCart = $dal ->Table( "ShoppingCart" ) save current username in the UserID field add new records to the ShoppingCart table To insert an Add this product to shopping cart button on the View page, add the following code to the Server event: You may use $keys to access a specific key column.įor example, there is a Products table. Inserting an "Add this product to shopping cart" buttonįor the Edit/ View pages, the $keys parameter in the Server event contains the information about the current record. You can also pass arrays and objects this way:ĭo_something( $params ) Įxample 1. The key names, users, and variables are up to you. The Client code is JavaScript, and the Server code is PHP. Mind the syntax difference between the Client and the Server events.