NetTalk Central

Author Topic: Running a Procedure when adding a new record  (Read 3658 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Running a Procedure when adding a new record
« on: October 29, 2016, 05:46:06 AM »
I would like to run a procedure that would generate a pdf report before the user presses the save button
so I can display a progress bar when generating the report. Here is the catch I need the data from the form to
produce the report.

Can one save the insert record to the table, then generate the report and then a button to close the form or
is there a better way to do this?



Ashley

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Running a Procedure when adding a new record
« Reply #1 on: October 29, 2016, 09:57:49 PM »
Hi Ashley
All the values in the form are stored as Session Vaues so I would imaging you could do something like having a memory table that you populate from the session values and then generate the report using the memory table
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Running a Procedure when adding a new record
« Reply #2 on: October 30, 2016, 04:59:15 AM »
Hi Terry,

That just may work! I have to check on whether the primary key is being used any place. We still are using auto increment primaries.


Thanks,

Ashley