jquery - apex report page turning results -
i trying utilise page turning jquery module called jquery booklet onto apex search report. shown here: http://builtbywill.com/code/booklet/
my goal have 1 search result row represented on page.
the booklet jquery comes many js , css files.
firstly: can upload these files through apex front end?
secondly: how reference these files through html?
thirdly: how can integrate apex items html?
i understand newbie, sort of advice useful.
cheers.
- download booklet zip file
- in apex application, go shared components > static files , upload following files booklet subfolder. (i didn't include jquery file because apex has this).
- jquery.booklet.latest.min.js
- jquery.easing.1.3.js
- jquery-ui-1.10.1.custom.min
- go shared components > cascading stylesheets , upload following:
- jquery.booklet.latest.css
- go relevant apex page. on left column (page rendering), click on edit button next page. if you're on tree view, double click page edit it
add following javascript > file urls textarea.
#workspace_images#jquery-ui-1.10.1.custom.min.js #workspace_images#jquery.easing.1.3.js #workspace_images#jquery.booklet.latest.min.js
add following line css > file urls textarea
#workspace_images#jquery.booklet.latest.css
note: if have old version of apex , can't find above textareas, don't worry, add following html header
<script src="#workspace_images#jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script> <script src="#workspace_images#jquery.easing.1.3.js" type="text/javascript"></script> <script src="#workspace_images#jquery.booklet.latest.min.js" type="text/javascript"></script> <link href="#workspace_images#jquery.booklet.latest.css" type="text/css" rel="stylesheet" media="screen, projection, tv" />
create new html region called 'booklet'. ensure region template set 'no template'. set source following.
<div id="mybook"> <div> <h3>yay, page 1!</h3> </div> <div> <h3>yay, page 2!</h3> </div> <div> <h3>yay, page 3!</h3> </div> <div> <h3>yay, page 4!</h3> </div> </div> <script> $(function() { //single book $('#mybook').booklet(); }); </script>
run page test it! if doesn't work, view source , make sure files linked correctly.
integrate apex items using format
&p1_item.
in region source.to configure booklet, see http://builtbywill.com/code/booklet/demos/size
edit - how create basic booklet report template
saw want report, not plain old html region. still recommend above steps make sure plugins work. when it's working smoothly, following:go shared components > templates. under reports subheading, copy report one column unordered list. if doesn't exist, copy vertical report.
in new report template, enter following:
- before rows:
<div id="mybook">
- before each row:
<div>
- column template 1:
#column_value#
- after each row:
</div>
after rows:
</div> <script> $(function() { //single book $('#mybook').booklet(); }); </script>
- all other fields should blank.
- before rows:
go new apex page. create new report, set region template no template , report template 1 created.
Comments
Post a Comment