PDA

View Full Version : Error messages


Remco209061
08-12-2009, 11:53 AM
Hello,

Is it possible to use the Digital File Pro error messages in an DataAssist form? I have an form in DA with a FileUpload in DFP. The problem is when I upload a wrong extention, the Detail page shows without the error message.

grts Remco

Jason Byrnes
08-12-2009, 05:16 PM
See the "Customizing Digital File Pro Error Messages" tutorial on the How to section of the Digital File pro support page:
http://www.webassist.com/support/digital-file-pro/

Remco209061
08-13-2009, 11:40 AM
Hello Jason, I did but the message is not visible because the browser move's to the detail page. Is it possible to move the message to the detail page? for example when the upload is succefull.

I use the server validation for the other fields but the Upload status codes and error messages don't work.

Jason Byrnes
08-13-2009, 02:10 PM
store the error message in a session variable. Add the following code just before the Insert:


<?php
if(!session_id()) session_start();
if($_SERVER["REQUEST_METHOD"] == "POST"){
$_SESSION['dfpError'] = $WA_DFP_UploadStatus["WA_UploadResult1"]["errorMessage"];
}
?>



On the page add this to show the error:

<?php echo(isset($_SESSION['dfpError'])?$_SESSION['dfpError']:""); ?>