This topic is locked

Automatic Export dependant on checkbox

4/15/2010 4:02:00 AM
PHPRunner General questions
S
swanside author

Hello.
We export data from the jobs table as an xml file, we have a checkbox that gets checked if a user is going to export the file. 90% of the time it works, but some users tick the box, answer the phone, deal with something and then forget to actually export the data. The data has to be exported as it gets sent off to an engineers PDA, so I am looking for a way that, if a user ticks the export box which is in the add new page, it will when the user presses the Save button, it will pop up with the prompt to save the export as an xml file. Is this possible?

Thanks

Paul.

B
battyone 4/16/2010



Hello.
We export data from the jobs table as an xml file, we have a checkbox that gets checked if a user is going to export the file. 90% of the time it works, but some users tick the box, answer the phone, deal with something and then forget to actually export the data. The data has to be exported as it gets sent off to an engineers PDA, so I am looking for a way that, if a user ticks the export box which is in the add new page, it will when the user presses the Save button, it will pop up with the prompt to save the export as an xml file. Is this possible?

Thanks

Paul.


If you are using a checkbox, and I am assuming you are using a type int/tinyint for the field in the DB that it corresponds to, you can always go to events and "After record added" do a quick
if($values["checkboxfieldname")!=0){

//<Code to display prompt, or better code to automatically do the export>

}