This topic is locked
[SOLVED]

 how pass search values to printer friendly page

9/20/2010 3:48:20 AM
PHPRunner General questions
M
mauzza author

dear experts I need to pass the search values used to filter records in a report page to the printer-friendly page to be used with header in the printed page
I'm following the way to use xt->assign in the event before print page is displayed but I don't know how I can recover the search values inserted!
thanks vm in advance

Sergey Kornilov admin 9/20/2010

Search parameters are saved in session variables.

More info: http://xlinesoft.com/phprunner/docs/phprunner_session_variables.htm

M
mauzza author 9/21/2010



Search parameters are saved in session variables.

More info: http://xlinesoft.com/phprunner/docs/phprunner_session_variables.htm


thanks for reply
Using the session variable (eg <table_name>_advsearch) I'm able to get a complex string which contains the search values but it needs to be worked. What i'm asking for is if there is a direct and easier way to refer the values?
regards
hereunder the exact string (in bold the values I want to use)

O:12:"SearchClause":7:{s:6:"_where";a:9:{s:17:"Totali_simpleSrch";s:0:"";

s:28:"TotalisimpleSrchTypeComboOpt";s:8:"Contains";

s:28:"TotalisimpleSrchTypeComboNot";b:0;s:30:"TotalisimpleSrchFieldsComboOpt";s:0:"";s:15:"Totali_srchType";s:3:"and";

s:17:"Totali_srchFields";a:2:{i:0;a:6:{s:5:"fName";s:4:"Mese";s:5:"eType";s:0:"";s:6:"value1";s:1:"[size="4"]7[/size]";s:3:"opt";s:8:"Contains";

s:6:"value2";s:0:"";s:3:"not";b:0;}i:1;a:6:{s:5:"fName";s:4:"Anno";s:5:"eType";s:0:"";s:6:"value1";s:4:"[size="4"]2010[/size]";s:3:"opt";s:8:"Contains";s:6:"value2";s:0:"";s:3:"not";b:0;}}

s:24:"Totali_srchOptShowStatus";b:0;s:26:"Totali_ctrlTypeComboStatus";b:0;

s:23:"TotalisrchWinShowStatus";b:0;}s:5:"tName";s:6:"Totali";

s:15:"searchFieldsArr";a:3:{i:0;s:4:"Mese";i:1;s:4:"Anno";i:2;s:10:"Dipendente";}s:8:"srchType";s:10:"integrated";s:13:"sessionPrefix";

s:6:"Totali";s:11:"bIsUsedSrch";b:1;s:17:"panelSearchFields";a:3:{i:0;s:4:"Mese";i:1;s:4:"Anno";i:2;s:10:"Dipendente";}}

M
mauzza author 9/21/2010

Ann,
thank you very much