NetTalk Central

Author Topic: No Records for Web Report is a Bummer  (Read 3071 times)

dmoyer

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
No Records for Web Report is a Bummer
« on: November 17, 2011, 03:10:40 PM »
I just starting to add some reports to a new NTWS project.  When I get no records, the browser just displays the raw script instead of the message.  It just looks like this in the browser:

<script>alert('Bummer! No Records');top.close();</script>

Any ideas?

Thanks,
David

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: No Records for Web Report is a Bummer
« Reply #1 on: November 17, 2011, 09:17:39 PM »
David
In your Nettalk extension to report procedure with SV PDF Generator (assuming you are using SVPDF)
there is a No records source drop list.
In the print to PDF examples is a DisplayNoRecordsMessage Netwebsource procedure which if you import it into your procedure you can select in the drop list.
Within that NetWebSource you can set whatever message you like with the benefit that it will apply to all reports.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

dmoyer

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • Email
Re: No Records for Web Report is a Bummer
« Reply #2 on: November 18, 2011, 08:25:33 AM »
Yup, I did that.  Actually, the code that had been working as a message now just displays the raw text.  I decided to use the popup instead of source procedure and that works.  Not sure what happened to the original source behavior.

Thanks,
David