I tried adding a random number in an & var to the end of one of those kind of URL's, but realized that once the report was rendered, that number didn't change for subsequent clicks, and was useless.
WebFocus/Maintain 7.6.4-8 on Win2000 and 2003 Server
October 29, 2008, 11:23 AM
Maintain Wizard
Dave Would it be possible to create a TimeStamp field and place it somewhere on the report? I am not sure how you are generating the PDF or EXCEL output, but what we are coming up with is adding a random timestamp field to the report at runtime. Then you can pass it as part of the Maintain request.
Mark
DEFINE FILE CAR TIMESTAMP/D8 WITH MODEL = RDUNIF (TIMESTAMP) * 100000; END
TABLE FILE CAR PRINT TIMESTAMP NOPRINT BY COUNTRY BY CAR BY MODEL ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT PDF ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * TYPE=DATA, COLUMN=N3, URL=/ibi_apps/WFServlet?( \ model=N3 \ stamp=TIMESTAMP \ IBIF_cmd='MNTCON EX MNTIVP2' \ IBIS_passthru='on' \ IBIS_connect='on' \ IBIAPP_app='projects baseapp' \ IBIC_server='EDASERVE' \ ), $ ENDSTYLE END
October 29, 2008, 02:33 PM
Dave Ayers
quote:
Would it be possible to create a TimeStamp field and place it somewhere on the report? I am not sure how you are generating the PDF or EXCEL output, but what we are coming up with is adding a random timestamp field to the report at runtime. Then you can pass it as part of the Maintain request.
Mark,
I tried adding a timestamp to the maintain drilldown URL in a report focexec using a DM &var. The problem was that the value is generated only once, when the report page is rendered and sent to the user. If the user clicks on the link a second time, the timestamp value doesn't change, and a cached maintain page is displayed with no changes visible to them.
I took your advice about using Javascript to create a URL that varied with each click of the same maintain link in an HTML format report, and that worked fine. (Thanks again)
But we are being asked to include maintain links in format EXCEL and PDF reports (clones of the HTML format report), where Javascript processing isn't available, and I'm afraid the caching issue will not be solvable there. That is unless you can pull a rabbit out of your hat
WebFocus/Maintain 7.6.4-8 on Win2000 and 2003 Server
November 02, 2008, 05:32 AM
FrankDutch
Dave
does "Bump" mean, "I managed to get this working" or "why is this not possible"
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
November 02, 2008, 12:00 PM
j.gross
quote:
But we are being asked to include maintain links in format EXCEL and PDF reports (clones of the HTML format report), where Javascript processing isn't available, and I'm afraid the caching issue will not be solvable there. That is unless you can pull a rabbit out of your hat
Have the PDF's drilldown call a stub fex that returns a blank html page, whose onload calls the intended report fex, passing through the received drilldown arguments plus a random tag-along. When the blank page loads (even from cache) its onload javascript function will generate a unique call (whether a url or a Submit), so you will avoid receiving a cached report.
- Jack Gross WF through 8.1.05
November 04, 2008, 09:55 AM
Dave Ayers
Frank,
'bump' means to bump up to the top, so the thread doesn't get lost in the noise of newer posts.
Jack,
Thanks, that's an interesting approach, through a bit of a 'long way around the horn'. Perhaps the only way...
Mark,
I'm hoping to hear you weigh in on how to deal with the lack of Javascript issue...