This topic is locked

How do you create multiple print pages from the same data source?

10/8/2015 3:11:32 AM
ASPRunnerPro General questions
R
rleighton author

I work in a hospital and employee health is giving flu shots. They need to be able to print one letter for those who got the shot and a different letter for those who declined. I've got their application printing the 1st letter. How can I print the 2nd letter? I'm using ASPRunner v9.1.
Thanks

acaruson 10/10/2015



I work in a hospital and employee health is giving flu shots. They need to be able to print one letter for those who got the shot and a different letter for those who declined. I've got their application printing the 1st letter. How can I print the 2nd letter? I'm using ASPRunner v9.1.
Thanks


Do they login?

You could create a seperate view for declines, then write an if/then statement that sends users to the decline view.

admin 10/12/2015

Yes, separate view with different WHERE clause in SQL query is the best option.

G
gonzalosb 10/19/2015

Hi rleighton,
other way that may be easier for you is an auto fill up section depending on accept/declined FIELD hide on NEW/EDIT page but visible on PRINT page.
in that way you have a drop-down accept/declined FIELD named "CHOOSE"
and a FIELD call "resolution" in where the content change depending on "choose" selection.

when you print, only display a "resolution" letter.
in that way you only have 1 VIEW/EDIT/NEW/PRINT page to manage.
if you have any question or need help let me know.
also you can do a response.write if depending on field on PRINT page



if choose=("accept") then

response.write("opt to accept the shot")

else

if choose=("declined") then

response.write("opt to declined the shot")

end if

end if


something like that on " resolution" field