Forums / Developer / passing $view_parameters to pdf

passing $view_parameters to pdf

Author Message

Pierre Tissot

Tuesday 04 April 2006 1:25:13 am

Hi,

I'm confused if this is really possible or not. I have a object that a user can, by a form, chose a set of his attributes, and i want to generate a pdf from this choices, that's why i need to access parameters from pdf. Is this possible? if not anyone can give a tip?

in the forums I found two contradiction:

In this one seems that no way to do that:
https://ez.no/bugs/view/6970

In this one seems possible:
http://ez.no/community/forum/general/create_pdf_from_search_results_showing_all_results/re_create_pdf_from_search_results_showing_all_results

What is the veredict?

Best regards
Pierre Tissot

Präßler Sven

Thursday 06 April 2006 9:59:50 am

I also tried to pass view_parameters to the pdf template and it didn`t worked but passing http POST Variables to the pdf template and reading them with the ezhttp operator in the pdf template worked so i managed this by passing the variable with http POST.
Hope this helps.

Kåre Køhler Høvik

Friday 07 April 2006 12:31:34 am

Hi

I've fixed this bug, so expect it to be working in the next stable releases eZ publish.

Kåre Høvik

Pierre Tissot

Thursday 01 June 2006 8:32:58 am

Can somebody check this, I have a site that all the parametrs are passed to the pdf under mozilla.....but under i.e nothing is being passed?!??!??!
This is very strange...in my experience this should be a server side problem and not a browser problem....but i dont understand the diference between the two browser view the same object...not with a pdf file.

Pierre Tissot

Friday 02 June 2006 2:38:48 am

Ok i solved the problem...first I clean all the errors message of the template..without any sucess.

with mozilla this works

ezhttp("radio_0")

with IE no way.

Then I change the submit of the form from a POST to a GET and load the value like this:

ezhttp("radio_0","get")

and work for the two browser. I know that sounds wird to talk aboout browsers in a problem that seems in the server side and not in the client side....but maybe the way of the browser send the information is handle in diferents ways in the server.
Maybe anybody can expolain this better.

Cheers all
PiR

eZ debug

Timing: Jan 18 2025 19:17:41
Script start
Timing: Jan 18 2025 19:17:41
Module start 'content'
Timing: Jan 18 2025 19:17:41
Module end 'content'
Timing: Jan 18 2025 19:17:41
Script end

Main resources:

Total runtime0.2652 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.8438180.8359
Module start 'content' 0.00700.0109 769.679797.8672
Module end 'content' 0.01780.2472 867.5469526.7734
Script end 0.2651  1,394.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.3759200.0002
Check MTime0.00130.4950200.0001
Mysql Total
Database connection0.00080.297810.0008
Mysqli_queries0.206977.99511410.0015
Looping result0.00150.54681390.0000
Template Total0.246793.010.2467
Template load0.00120.443310.0012
Template processing0.245592.558410.2455
Override
Cache load0.00090.326610.0009
Sytem overhead
Fetch class attribute can translate value0.00110.414710.0011
XML
Image XML parsing0.00030.102210.0003
General
dbfile0.00180.6972200.0001
String conversion0.00000.002030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs