note4

Sunday, September 9, 2018

4:14 AM
Sample Update_Multiply_ Code snippet

............///..........

//create dropdown
$str = "";
$str.= "<input id='mycontent' type='text'> ";

//select values from database
global $conn;

echo $str;


New Snipet Button PhpRUnner

In Server tab

global $dal;



while ( $data = $button->getNextSelectedRecord() ) {

  // set ReportsTo field to 'Bob Smith'

  $sql = "Update DIGITALSIGNAGE set contenturl='".$params['status']."' where macaddress='".$data['macaddress']."'";

   CustomQuery($sql);

}

$result["txt"] = "Records were updated.";// Put your code here.






In Client Before Server

params['status']=$("#mycontent").val();



Client AFter

var message = result["txt"];

ctrl.setMessage(message);

0 comments: