I don't think there is a way... you may want to put in a feature request for this...
So, are you saying you tried to capture the error with GET(LastError) and it didn't work or are you speculating that there is no way to trap this problem?
I'm hoping the iPad would throw some type of error if it couldn't create the PDF due to a space problem. I'm really, really, hoping the FMP folks thought of this obvious possible error condition.
Thank you for your post.
If the iOS device runs out of disk space during an export or creation of a PDF file, a disk space error is generated and displayed on the screen of the iOS device. If you are trapping for error codes, then Get (LastError) should return 809 - Disk/Volume is full. Your script may look something like:
Set Error Capture [ On ]
Save Records as PDF [ No dialog ; <options> ]
Exit Loop If [ Get (LastError) = 0 ]
Show Custom Dialog [ "Disk Space" ; "You don't have enough disk space. Try again?" ]
Exit Loop If [ Get (LastMessageChoice) = 2 ]
Let me know if you need additional clarification.
Right, that's actually how I coded it, but wasn't sure. We can't reproduce the problem easily.
Thanks for your reply.