Tips and Tricks for Customizing Portal Reports Portlet Modules Peter Koletzke Technical Director & Principal Instructor Visit the Quovera table for more.

Slides:



Advertisements
Similar presentations
GP2013 (R2) New features in GP2013 (R2). New Ribbon for windows Edit List is the Print button on the right without the paper background Action pane can.
Advertisements

Overview QW Gateway is a new front-end to QuipWare
Project Implementation for COSC 5050 Distributed Database Applications Lab4.
The Web Warrior Guide to Web Design Technologies
© 2007 by Prentice Hall10-1 Introduction to Oracle 10g Chapter 10 Creating and Modifying Reports James Perry and Gerald Post.
JDeveloper 10g View Layer Alternatives — JSP and UIX Peter Koletzke Technical Director & Principal Instructor.
Using a Template to Create a Resume and Sharing a Finished Document
Avrom Roy-Faderman Senior Instructor and Programmer May 15, 2008 The Evolving Web UI.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Chapter 7: Creating Database Reports
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
1 Chapter 5: Introduction To Form Builder. 2 Forms  Why Do We Use Form Builder?  Why Don’t We Use SQL Only?!
How to Create Top Ranking Searchable and Accessible Documents Chris Pollett and Elizabeth Tu April, 2010.
IWebFolio Using a Template Tutorial Images in this tutorial:
1 Agenda Overview Review Roles Lists Libraries Columns.
07/19/04 NorCal OAUG Training Day, Paper 2.4 John Peters, JRPJR, Inc.1 Oracle Workflow Notifications John Peters JRPJR, Inc.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Project Implementation for COSC 5050 Distributed Database Applications Lab5.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Eyad Alshareef 1 Creating Database Reports. 2Eyad Alshareef Creating reports.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Classroom User Training June 29, 2005 Presented by:
Project Implementation for COSC 5050 Distributed Database Applications Lab2.
Using Styles and Style Sheets for Design
Web Technologies Website Development Trade & Industrial Education
Integrating Forms, Reports and Discoverer into Portal Chris Ostrowski Technical Management Consultant TUSC Session id:
Creating Effective School and PTA Websites Sam Farnsworth Utah PTA Technology Specialist
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice SISP Training Documentation Template.
Website Development with Dreamweaver
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Session 1 SESSION 1 Working with Dreamweaver 8.0.
2 Copyright © 2004, Oracle. All rights reserved. Running a Forms Developer Application.
1 OPOL Training (OrderPro Online) Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
Project Implementation for COSC 4120 Database Applications Lab 3.
Training Guide for Inzalo SOP Users. This guide has been prepared to demonstrate the use of the Inzalo Intranet based SOP applications. The scope of this.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Java Portals and Portlets Submitted By: Rashi Chopra CIS 764 Fall 2007 Rashi Chopra.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Microsoft Access Lesson 2 Lexington Technology Center February 13, 2003 Bob Herring On the Web at
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Creating Google Sites Laura Assem, Director of Technology.
How to Build an IT Portal with Oracle Application Server Allan L Haensgen Senior Principal Instructor Oracle Corporation Session id:
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Chapter 12© copyright Janson Industries Java Server Faces ▮ Explain the JSF framework ▮ SDO (service data objects) ▮ Facelets ▮ Pagecode classes.
Creating and Editing a Web Page
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
AJAX Use Cases for WSRP Subbu Allamaraju BEA Systems Inc WSRP F2F Meeting, May 2006.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
2 Copyright © 2004, Oracle. All rights reserved. Running a Forms Developer Application.
Preface IIntroduction Course Objectives I-2 Course Content I-3 1Introduction to Oracle Reports Developer Objectives 1-2 Business Intelligence 1-3 Enterprise.
1 Chapter 6: Creating Oracle Data Block Forms. 2 Forms  Application with a graphical user interface that looks like a paper form  Used to insert, update,
Windows Vista Configuration MCTS : Internet Explorer 7.0.
Running a Forms Developer Application
Creating Oracle Business Intelligence Interactive Dashboards
Working in the Forms Developer Environment
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Creating Database Reports
Microsoft PowerPoint 2007 – Unit 2
Presentation transcript:

Tips and Tricks for Customizing Portal Reports Portlet Modules Peter Koletzke Technical Director & Principal Instructor Visit the Quovera table for more info.

2 If you wish to make an improved product, you must already be engaged in making an inferior one. Second Law of Serendipity

3 Survey Oracle Portal work –Portal reports? –Dynamic pages? –Portal forms? –Calling Oracle Developer forms (FMBs)? –Calling Oracle Developer reports (RDF)? –Calling J2EE apps?

4 Agenda Reports Portlet overview Creating the definition - annotated Tips, gotchas, workarounds Alternatives to Reports Portlet Note: Sample code files available in the presentation zip file on the Quovera and NoCOUG website. Releases: 9i (9.0.2), 10g R1 (9.0.4), 10g R2 (10.1.2)

5 Portal Reports Portlet Basics Call RDF files from a Portal link –“Report Definition File Access” The Portal name –Validates security of user –Presents a parameter form Text fields LOVs (poplists) Report definition created in Portal development screens –Generates PL/SQL package to display parameter form and to call Reports Server

6 Business Database Portal Reports Runtime iAS Database mod_plsql Browser Reports Servlet Portal link Report package Procedure call URL Parameter Form Reports RDF file cgicmd.dat scottcgi: userid= %* Reports Runtime Run Report results (HTML, PDF) Tables and views App Server

7 Creating the Definition Create custom template first –Use your logos and design elements –This is not used at runtime by default Also create LOVs in Portal –Use them on the report Parameters page Two methods for creating the definition –Copy an existing report definition Use the Manage tab of the Manage page Parameter values are not copied –Reset the values on the Customize page –Create one from scratch Screens follow

8 Agenda Reports Portlet overview Creating the definition - annotated Tips, gotchas, workarounds Alternatives to Reports Portlet

9 Creating a Definition Find Reports Definition portlet –In Builder (Reports Security) or in the Portlet list Click Create Reports Definition File Access

10 Creating the Definition – Page 1

11 Creating the Definition – Page 2

12 Creating the Definition – Page 3 Create this beforehand Desformat

13 Creating the Definition – Page 4 Create this beforehand

14 Tips for Creating the LOV This is ignored for reports. Only poplists are available Must be “No” for reports Use this for a “blank” item. Needs a value. NULL won’t work for reports (will work for Portal reports and forms). Do this before starting the Reports definition wizard

15 Creating the Definition – Page 5 Interesting idea

16 Creating the Definition – Page 6 This is ignored Finish generates the report PL/SQL package. Note: Every time you save a report definition, Portal rewrites the PL/SQL package.

17 Creating a Link – Page 1 Click Add Item in a page group page

18 Creating a Link – Page 2 At Runtime

19 Agenda Reports Portlet overview Creating the definition - annotated Tips, gotchas, workarounds Alternatives to Reports Portlet

20 Visit the Customize Page

21 Check the parameters to display. Click Save Parameters (this also saves the values you place here). Be careful of values in non-displayed parameters. LOV Database connection token stored in oracle_ home/ reports/ conf/ cgicmd.dat Desformat? Customize Page Notice the template

22 Click the New Link Where’s my template? How do I get rid of Builder and Navigator links? Can I show the report name? How do I remove the Schedule tab? Can I add a prompt hint? How do I change the buttons? Desformat?

23 Builder

24 Navigator

25 As a Review: The Customize Page

26 Layout Gotchas Layout is very basic –Fields are laid out in a single column –Fields can only be text items or pulldown lists (poplists) –No popup LOV windows or shuttle controls –Field prompts are very basic The template you define will not be used at runtime (only on the Customize page) –Oracle template used (Oracle logos and copyright) –Builder and Navigator links displayed Users can see development areas No declarative way to change the button labels that a user sees –Portlet defaults are Apply, OK, Cancel –Huh? Desformat prompt cannot be defined Still true as of 10g R2

27 Changing The DESFORMAT Prompt Prompt is stored in internal Portal table –WWNLS_STRINGS$ –Protected by a policy (you can’t update it) Technique to make the change –Identify the subscriber ID and ID –Run a procedure that disables policies, updates the table, and enables policies Sample: –desformat_prompt.sql Global to all reports Documented on MetaLink.

28 New Prompt

29 For Other Changes, Modify the Reports Definition Package Code Back up the package code first –If you edit the report definition later, you will need to reapply the modifications Changing code in various procedures –show_tabpage and show_parms_internal –Samples in report_package_edits.txt Also, adding buttons to the template –Sample in industrial_template_buttons.txt Set the access method (item or parent) before starting –This changes the package code

30 New Parameter Form Report title Modified buttons No schedule tab Hints on prompts No Builder and Navigator links Your template No Desformat

31 Validating Parameters Validation Trigger page 6 does not do anything Post-generation change –In the report database package body, find the show procedure –After calls to validity_check(), add a validation block that adds error messages –You need to do your own date format checking –Sample in validity_check.sql If you edit and save a change to the report definition, this is overwritten

32 Tip: Releasing Edit Mode Click Edit from the Manage page Click Back –Report definition is now in Edit mode –No one else can edit it –To fix, click Edit, then click Close –Releases Edit mode

33 Other Methods – JavaScript Self-reducing poplist Auto-selected poplist value. Use this to default a parameter value or to remove a value. Use the same embedded HTML technique for separator lines. Hide and display fields dynamically

34 JavaScript Code Required onLoad() function on the BODY tag in the template –JavaScript added to report package code –Default poplist selection –Disable or hide items Poplist selection changes the display –Self-reducing poplists (country/state-province) – add code to report package –Hide fields and display fields based on poplist value Sample in magic_providers.html

35 Limiting the Query Based on User Database user for Reports connection defined by the cgicmd.dat servlet key To associate a user with the session, get the Portal user –wwctx_api.get_user Pass the user as a Reports parameter Add that parameter to the query –Or set the user name into a context and read the context in a database VPD policy function Sample for setting the parameter in validity_check.sql

36 Agenda Reports Portlet overview Creating the definition - annotated Tips, gotchas, workarounds Alternatives to Reports Portlet

37 Dynamic Page Shuttle control. Same technique used for multi-select control.

38 Code Required Portal dynamic page – not Reports portlet –Calls a package that builds the page a line at a time Layout capabilities are unlimited –Multi-column –Any stylesheet style –Unlimited JavaScript capabilities All code is up to you –Code it in HTML first –Run WebAlchemy for starting code Samples –demo_shuttle.html –demo_dyn_form.txt

39 UIX Form UIX parameter form calling reports server –View object for parameter fields The trick is working out the URL –Examine the URL from other working reports SSO will protect the content –Report package not needed for that Create Struts action to interpret the Run button click –Retrieve elements from binding to get parameter values –Build up the URL with parameter values –Sample URL in sample_url.txt

40 HTML DB Hot new kid on the block You can develop reports with it –PL/SQL based as is Portal reports Same for forms Can call Reports RDF files –No native feature yet –Apparently documented on OTN Anyone done this?

41 Whatever it is that hits the fan will not be evenly distributed. —Anonymous Law of Probable Dispersal

42 Summary The Portal Reports Portlet works but its user interface is very basic If you use it, you need to apply workarounds to the portlet bugs Some customizations require some low- level code modifications –Keep backups of the packages –Don’t tell Oracle Support Consider dynamic pages instead –Or UIX pages or Portal forms or HTML DB

43 Designer Handbook Designer Handbook Developer Advanced Forms & Reports Developer Advanced Forms & Reports JDeveloper 3 Handbook JDeveloper 3 Handbook ORACLE9i JDeveloper Handbook Founded in 1995 as Millennia Vision Corp. Profitable for 7+ years without outside funding Consultants each have 10+ years industry experience Strong High-Tech industry background 200+ clients/300+ projects JDeveloper Partner More technical white papers and presentations on the web site  Books co-authored with Dr. Paul Dorsey  Personal web site: homepages/Peter_Koletzke ORACLE JDeveloper 10g Handbook Also co-authored with Avrom Roy-Faderman  Please fill out the evals