This topic is locked

HOW TO UPDATE SELECTED RECORDS FOR DATE AND ATTACHMENT

3/24/2014 3:09:26 PM
PHPRunner General questions
C
chrispa author

i refer to very interesting post

link
that is a very good information to update selected records from dropdown box
can you give an example to use same method and update a date record ( i.e using calendar) and attachment field?
thanks a lot as always

Sergey Kornilov admin 3/24/2014

Pretty much the same code will work. Just modify the OnServer part so it updates those fields you need to update.

global $dal;

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

$sql = "Update Orders set Status='".$params['status']."' where ID=".$data["ID"];

CustomQuery($sql);

}