Quantcast

Make a PDF of the Current Page

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Make a PDF of the Current Page

Eric Landmann
Hey all:

I have a complete application written in knop that is working as
expected. Now the client wants to have the ability to print a
PDF of any list-type page. That PDF should respect any search or
sort parameters used in the current view of the page. What's the
best approach to do this? Code a new page line-by-line? Use
Steffan's tags? Other?

--Eric


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Make a PDF of the Current Page

Eric Landmann
On 5/2/11 at 12:59 PM, [hidden email] (Eric
Landmann) wrote:

>I have a complete application written in knop that is working
>as expected. Now the client wants to have the ability to print
>a PDF of any list-type page. That PDF should respect any search
>or sort parameters used in the current view of the page. What's
>the best approach to do this? Code a new page line-by-line? Use
>Steffan's tags? Other?

I've got it working with Steffan's tags. Temporarily ran into a
problem where it was throwing an auth error ("Client fingerprint
has changed - this looks like session sidejacking. Logging
out."). Besides redefining that type, is there a way to sidestep
this check? Already tried Force, that results in the same error.

--Eric


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Make a PDF of the Current Page

stevepiercy
On 5/2/11 at 3:01 PM, [hidden email] (Eric
Landmann) pronounced:

>On 5/2/11 at 12:59 PM, [hidden email] (Eric Landmann) wrote:
>
>>I have a complete application written in knop that is working
>>as expected. Now the client wants to have the ability to print
>>a PDF of any list-type page. That PDF should respect any
>>search or sort parameters used in the current view of the
>>page. What's the best approach to do this? Code a new page
>>line-by-line? Use Steffan's tags? Other?
>
>I've got it working with Steffan's tags. Temporarily ran into a
>problem where it was throwing an auth error ("Client
>fingerprint has changed - this looks like session sidejacking.
>Logging out."). Besides redefining that type, is there a way to
>sidestep this check? Already tried Force, that results in the
>same error.

How are you using knop_user?

As a sanity check, I generate PDFs and serve them using Lasso's
native tags and while the user is authenticated in Knop.  So
it's possible.  I put all my user session management stuff in
the Knop global config file, then the PDF stuff in the action file.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Make a PDF of the Current Page

Johan Solve-2
In reply to this post by Eric Landmann
At 15.01 -0500 2011-05-02, Eric Landmann wrote:
>On 5/2/11 at 12:59 PM, [hidden email] (Eric Landmann) wrote:
>
>>I have a complete application written in knop that is working as expected. Now the client wants to have the ability to print a PDF of any list-type page. That PDF should respect any search or sort parameters used in the current view of the page. What's the best approach to do this? Code a new page line-by-line? Use Steffan's tags? Other?
>
>I've got it working with Steffan's tags. Temporarily ran into a problem where it was throwing an auth error ("Client fingerprint has changed - this looks like session sidejacking. Logging out."). Besides redefining that type, is there a way to sidestep this check? Already tried Force, that results in the same error.

You can disable the client fingerprint expression like this, right after the user type is instantiated:

$user -> 'client_fingerprint_expression' = {return(string)};

The default expression is {return(encrypt_md5(string(client_ip) + client_type))} so another way is to make sure the pdf generation use the same client_ip and client_type as the user's browser.

--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Loading...