cancel
Showing results for 
Search instead for 
Did you mean: 

PDF binary sent to server each roundtrip?!

former_member190457
Contributor
0 Kudos

Hi all,

I'm on NW CE 7.11, integrating WDJ with SIFbA.

I would really appreciate some help on the following problem:

in my application we have 2 views, accessed in sequence by users.

View 1 displays ("usepdf" mode) a PDF retrieved from db.

View 2 allows users to perform search on backend and so on.

The problem is that at each server roundtrip the binary is sent to the server, even when View 1 is no longer visible.

As a consequence, when in view 2 a very simple interaction has to take place, the whole binary from view 1 is sent to the server as well.

This is a major performance issue with large binaries (~1mb).

I would like to tell the framework to send the PDF to server only when really necessary

How can this be done?

Thanks regards

Vincenzo

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190457
Contributor
0 Kudos

You might try this setting in the window (or view) containing the pdf:

set lifecycle to "when visible" rather than "framework controlled"

Thanks, regards

Vincenzo

BenPatterson
Participant
0 Kudos

Hi Vincenzo,

If you haven't tried it already you can use the setting "Allow Form Rendering to be Cached on Server". This is found on the form properties on the Performance tab. This will improve performance as the form does not need to be rendered for each round trip, however I don't believe that it prevent the round trip altogether. You may want to post this on the WDJ forum as well.

Let us know how you go.

Regards,

Ben.