Oracle Forms 10J Dynamic Color Customization. )UDQoRLV'HJUHOOH

Similar documents
COURSE DETAILS & CURRICULUM

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

Oracle Fusion Middleware 11g: Build Applications with Oracle Forms

<Insert Picture Here> Oracle SQL Developer: PL/SQL Support and Unit Testing

Oracle Exam 1z0-151 Oracle Fusion Middleware 11g: Build Applications with Oracle Forms Version: 7.0 [ Total Questions: 90 ]

Appendix A GLOSSARY SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

Oracle 1Z0-140 Exam Questions & Answers

Proje D2K. CMM (Capability Maturity Model) level Project Standard:- Corporate Trainer s Profile

Oracle Forms Developer 10g: Build Internet Applications

1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Importing source database objects from a database

Introduction to IBM Rational HATS For IBM System i (5250)

Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS. For IBM System i (5250)

Forms 10g. Section Title Page

Oracle EXAM - 1Z Oracle Fusion Middleware 11g: Build Applications with Oracle Forms. Buy Full Product.

Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS For IBM System i (5250)

APEX Times Ten Berichte. Tuning DB-Browser Datenmodellierung Schema Copy & Compare Data Grids. Extension Exchange.

Database Explorer Quickstart

Building a Report with a Barcode

CHAPTER 14 PALCO/ REALSOFT 1 CHAPTER 14

Real Application Security Administration

This presentation is for informational purposes only and may not be incorporated into a contract or agreement.

Financial Message Designer for Oracle Service Bus User s Guide. Version 10g Release 3 (10.3)

Introducing Microsoft Office Specialist Excel Module 1. Adobe Captivate Wednesday, May 11, 2016

ADF Code Corner How-to build a reusable toolbar with Oracle ADF Declarative Components. Abstract: twitter.com/adfcodecorner

In this lab, you will build and execute a simple message flow. A message flow is like a program but is developed using a visual paradigm.

McAfee epolicy Orchestrator Release Notes

Manipulating Database Objects

Using SQL Developer. Oracle University and Egabi Solutions use only

SQL Server Reporting Services (SSRS) is one of SQL Server 2008 s

This is a known issue (SVA-700) that will be resolved in a future release IMPORTANT NOTE CONCERNING A VBASE RESTORE ISSUE

1) Merge the cells that contain the title and center the title

HYPERION SYSTEM 9 BI+ GETTING STARTED GUIDE APPLICATION BUILDER J2EE RELEASE 9.2

Switchboard. Creating and Running a Navigation Form

ORACLE SQL DEVELOPER

SQL Generation Solution in SAP Business Objects 4.0. Introduction: This article helps us How to resolve the SQL Generation Issue Business Objects 4.

Microsoft Power BI Tutorial: Importing and analyzing data from a Web Page using Power BI Desktop

MyCalyx Getting Started User Guide

Oracle Application Express: Administration 1-2

Oracle Database. Installation and Configuration of Real Application Security Administration (RASADM) Prerequisites

itexamdump 최고이자최신인 IT 인증시험덤프 일년무료업데이트서비스제공

Managing Your Database Using Oracle SQL Developer

What Is In This Guide. Overview Installation/Setup Printers Design Module

USING DIRECT DATABASE DRIVERS

DB Browser UI Specs Anu Page 1 of 15 30/06/2004

ADF Mobile Code Corner

Connect Databases to AutoCAD with dbconnect Nate Bartley Test Development Engineer autodesk, inc.

Composer Help. Import and Export

We start by providing you with an overview of the key feature of the IBM BPM Process Portal.

DB2 for z/os Stored Procedure support in Data Server Manager

OSR Composer 3.7 User Guide. Updated:

Elixir Repertoire Designer

Colligo Engage Outlook App 7.1. Offline Mode - User Guide

Oracle9i Application Server Forms Services Forms6i Patch 10: Oracle Forms Listener Servlet for Deployment of Forms on the Internet

ThingWorx Relational Databases Connectors Extension User Guide

TipsandTricks. Jeff Smith Senior Principal Product Database Tools, Oracle Corp

Archivists Toolkit Internal Database

for Q-CHECKER Text version 15-Feb-16 4:49 PM

User Guide Using AuraPlayer

A Guide to Automation Services 8.5.1

ActiveVOS Fundamentals

Exercise 3 1. Ensure that your FORMS90_PATH includes the path to the Banner source code tree (pll files and oqolib files).

Getting Started with Web Services

Overview of Adobe Fireworks CS6

Lab 9: Identify Alerts That Require a Change of State

Practic Pr al actic Dynamic Actions Intro Jorge Rimblas 1. 1

BUILD AND DEPLOY ORACLE SERVICE BUS PROJECTS FROM ORACLE DEVELOPER CLOUD SERVICE TO ORACLE SOA CLOUD SERVICE USING THE ORACLE SERVICE BUS PLUG-IN

Building Database-Centric Web Applications Using. Oracle HTML DB

Customizing Oracle Identity Governance: Populating Request Attributes

Crystal Reports. Overview. Contents. Differences between the Database menu in Crystal Reports 8.5 and 9

Automating Essbase Outline Extracts to a Relational Database Using the Next Generation Outline Extractor

Getting Started with BarTender

KWJ-WSN & USB Gateway. Quick Start Guide

Moving Forward with Oracle Forms

Rapid SQL 7.5 Evaluation Guide. Published: September 28, 2007

Manual Trigger Sql Server 2008 Inserted Table Examples Insert

Orgnazition of This Part

Deltek Costpoint CRM 6.2. Custom Reports and Microsoft SQL Server Reporting Services

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)

SPARK. User Manual Ver ITLAQ Technologies

LOD Data GW Installation (1.0)

DbSchema Forms and Reports Tutorial

McAfee epolicy Orchestrator Release Notes

Toad Data Point - Professional Edition. The Toad Data Point Professional edition includes the following new features and enhancements.

User Manual Version 2.00

X100 ARCHITECTURE REFERENCES:

HOW TO SETUP AND RUN SHIVA...

Oracle Developer Day

Oracle Application Express

SAP BusinessObjects Live Office User Guide SAP BusinessObjects Business Intelligence platform 4.1 Support Package 2

DbSchema Forms and Reports Tutorial

SQL Studio (BC) HELP.BCDBADASQL_72. Release 4.6C

WinSCP. Author A.Kishore/Sachin

and Ethernet Gateway Quick Start Guide

7-1. This chapter explains how to set and use Event Log Overview Event Log Management Creating a New Event Log...

08/10/2018. Istanbul Now Platform User Interface

Working with Macros. Creating a Macro

Designing Reports. eivf Designing Reports Note Types 1

W h i t e P a p e r. Integration Overview Importing Data and Controlling BarTender from Within Other Programs

Transcription:

Oracle Forms 10J Dynamic Color Customization $Q2UDFOH)RUPV&RPPXQLW\:KLWH3DSHU )UDQoRLV'HJUHOOH -XQH

Oracle Forms 10J Dynamic Color Customization Introduction...3 Color definition table...3 Colors.pll...4 Color selection screens...5 PL/ SQL-based dialog...6 Java Bean-based dialog...7 Changing Forms menu colors...8 Forms test module...8 Setup Instructions...9 Summary...9 #$ %$ &

Oracle Forms 10J Dynamic Color Customization,1752'8&7,21 The solution introduced in this paper allows Oracle Forms application users to customize the colors used in a form. A color selection screen is available for the following Forms items: Canvas color Tab canvas color Prompts (and tooltips) color Background buttons color Tet buttons color Background current record color Tet current record color Individual user preferences are stored in a database table which holds a table row for each user. The application user is identified by a unique value of type NUMBER. This value is read when loading the first screen and thereafter is sent as a parameter in each subsequent call to a screen (CALL_FORM, OPEN_FORM, NEW_FORM). The customized color defined for each item is applied during Forms startup by calling a PLSQL function in the WHEN-NEW-FORM-INSTANCE trigger The PLSQL function is located in a Forms library, FRORUVSOO, and loops through all visible items, setting the colors through visual attributes. Though this paper focuses on Oracle Forms 10g, the provided PL/ SQL code eamples also work with earlier releases of Forms. All source eamples are available at otn.oracle.com/ products/ forms. &2/25'(),1,7,217$%/( The table that holds the customized colors for a user must contain at least one row, with COD_UTIL = 0, which contains the default values (RGB format) for users who don t use a customized color scheme. #$ %$ '

CREATE TABLE UTIL_PREFS ( COD_UTIL NUMBER(5) PRIMARY KEY, -- User code C_FOND VARCHAR2(20 BYTE), -- color of canvas C_LIBELLE VARCHAR2(20 BYTE), -- color of prompts C_CADRE VARCHAR2(20 BYTE), -- color of tab canvas C_BOUTON VARCHAR2(20 BYTE), -- color of background buttons C_TBOUTON VARCHAR2(20 BYTE), -- color of tet buttons C_CURREC VARCHAR2(20 BYTE), -- color of background current -- record C_TCURREC VARCHAR2(20 BYTE) -- color of tet current -- record ) ; INSERT INTO UTIL_PREFS ( COD_UTIL, C_FOND, C_LIBELLE, C_CADRE, C_BOUTON, C_TBOUTON, C_CURREC,C_TCURREC) VALUES ( 0, r128g128b192, r255g255b64, r64g128b255, r255g192b255, r64g64b192, r128g255b255, r128g128b255 ); A Forms color selection dialog is provided in the sample code of this solution and handles the user specific table inserts and updates. &2/2563// The colors.pll library contains the PL/ SQL code to customize the color of visual objects in Forms at startup, at enter query (which color all queryable items with the color specified in the VA_QUERY visual attribute), and after eecute query to recall previous colors. The colors.pll library needs to be attached to the Forms modules used in a Forms application. Copy the *53B&2/256 group from the object library FRORUVROE The *53B&2/256 group contains the following objects that need to be added to the Forms module: A form level trigger WHEN-NEW-FORM-INSTANCE for the colorization function call A form level trigger KEY-ENTQRY for the colorization in ENTER- QUERY mode A form level trigger KEY-EXEQRY to re-set the initial colors after eecute query 3 alert boes A parameter 87,B,' for handling the ID that uniquely identifies the user Visual attributes for colorization of objects The color.pll library contains 2 PLSQL procedures and 1 PLSQL package: 6WDUWBTXHU\ - procedure to color queryable items in ENTER-QUERY mode #$ %$ )(

(QGBTXHU\- procedure to re-set the initial colors after EXECUTE- QUERY 3.*B&2/256SDFNDJH o Global variables for the colors read from the UTIL_PREFS table o Global variables to translate Strings used in the COLORS.FMB and COLORS_J.FMB screen o Procedure Paint, which is the main procedure called during the Forms instance startup o Procedure Set_colors Items that are not navigable are colored with a light gray background. All mandatory items are indicated by a bold prompt. You may want to customize the PLSQL package to use your preferred indicators. To preserve the initial colors of items, start the TOOLTIP_TEXT with the NCC (No Change Color) characters. These 3 characters are removed when the program is eecuted to insure a correct tooltip display &2/256(/(&7,216&5((16 Two Forms screens are provided with this whitepaper, as well as samples that allow the user to customize the application color for that instance: PL/ SQL based dialog (COLORS.FMB) - This screen uses native Forms code to render the color selection dialog. Java Bean based dialog (COLORS_J.FMB) This screen uses the Color Picker Java Bean sample from the Oracle Forms demos. Using the Java Bean does allows the user to choose from more colors than the PL/ SQL based screen, but requires the bean JAR files to be deployed with the application. All screens can be accessed through a menu option or buttons. All that needs to be done is to pass the user code in the UTI_ID parameter. Never transmit the 0 code which is the pre-populated default code #$ %$ *

3/64/EDVHGGLDORJ )LJXUH&RORUVIPE To customize the color of a visual component in Forms, click the corresponding button of the object to change the color of and click on one of the 64 color cells. Save the screen (Ctrl+S) to store the new colors or just eit (F4) to cancel any modification #$ %$ +

-DYD%HDQEDVHGGLDORJ )LJXUH&RORUVB-IPEUHTXLULQJFRORUSLFNHUMDU To customize the color of a visual component in Forms, click the corresponding button of the object to change the color, then select the color from the Bean selection dialog. Save the screen (Ctrl+S) to store the new colors or just eit (F4) to cancel any modification. In order to run the screen with the Java Bean component, you need to download the colorpicker.jar file, which is a part of the Oracle Forms 10g demos available on the Oracle Technology Network (OTN) 1 To configure the Bean, copy the file colorpicker.jar into the <ORACLE_HOME>/ forms90/ java directory Edit the Forms formsweb.cfg configuration file located in <ORACLE_HOME>/ forms90/ server/ and add the colorpicker.jar file to the JInitiator archive tag [mycolorfulapp] form = myform.fm DUFKLYHBMLQL... IDOOBMLQLWMDUFRORUSLFNHUMDU 1 http:/ / download.oracle.com/ otn/ other/ general/ forms10gdemos9_0_4_2.zip #$ %$,

&+$1*,1*)25060(18&2/256 The Forms menu module (MENU_COLORS.MMB), which is part of the associated eample code, either calls the PLSQL based color selection screen, or the Java Beans-based screen. )25067(6702'8/( The code sources for the solution introduced in this paper also contain a Forms test module for you to try. )LJXUH7HVW)RUPV The Test Forms module demonstrates the following functionality: Mandatory items have a bold prompt Display items have a grey background Items for which you don t want to alter the color remain as defined by the design value (because the first three characters of the tooltip tet are NCC) #$ %$ -

6HWXS,QVWUXFWLRQV 1. Install the Forms sources, into a directory which is contained in the FORMS90_PATH path 2. To use the JavaBean color screen: Copy the file colorpicker.jar into your <ORACLE_HOME>/ forms90/ java server directory Edit the formsweb.cfg configuration file in the <ORACLE_HOME> / forms90/ server/ directory and add archive_jini=f90all_jinit.jar,colorpicker.jar to the application configuration that uses this solution. 3. Create the UTIL_PREFS table in your own scheme and insert the default row 4. Launch the Forms Builder, log into the scheme in which the UTIL_PREFS table was created, and open the source files 5. Compile and generate eecutables for all sources files (colors.pll, colors.fmb, colors_j.fmb, test_colors.fmb, menu_colors.mmb) To use this solution in your own Forms modules: Open your Form (use the template form) Attach the colors.pll library Open the colors.olb object library Drag the grp_colors group in the object group of your form Compile all and generate 6800$5< The solution described in this whitepaper allows Forms application users to apply a customized color scheme to their applications. The PL/ SQL and Forms source codes shipped with the paper are free to be used in your own Forms applications. #$ %$.

$ERXW)RUPV&RPPXQLW\:KLWHSDSHUV Oracle Forms Community White Papers is a new section on OTN and provides a forum for Oracle eperts to share their product epertise with others by writing technical articles about Oracle Forms. $ERXWWKHDXWKRU François Degrelle works as a consultant for a French SSII company and is an Oracle specialist (PL/ SQL, Developer, Designer) who likes to share his Forms epertise, writing technical papers about Oracle DB, PLSQL and Forms. Francois is a native French speaker, as you may be able to tell from some of the variable names used in the source code of this solution. For questions regarding the sample code, please contact Francois at f.degrelle@free.fr. #$ %$

C C /10$0$! 2! "! 3 4 & ( /1! 5 64 4 7 8 % 9: ; <$ % =>: ; :!?$! %2/1! 5 64 4 4@2AB 0$54 9 04! <>D8 <$E! * #$ @GF) H < F)$$<I85 9 8/J.( + * K ; I8; /1; < F <$ 2L E4 6 #5 $6 M$; + * ; * + ;, N6 M$; + * ; * + ;, & FOFOF; ; 0 %5!4PQ& ( 9 ;G/1 %5! R <; S 54 2<$$ 42! 0$ 4R <$ <2: : 2! 0$4 044 24 <! 5!! 5 : )44?T!$! 5 %$ F! 5! 4! ; S 54 2<$$ 42! 4!4F)! <!?4 U : 9 $44?T!$! 4! 5 4F)! 2 <! 9F5! 5 N40$ < 0$ < F)9 < % 0$ <2F)! 2 < <! 2 : 2 5!?$! 4:! ): 204! 4 0$4 044 ; C )404 : < V 2?$! F! 5 404!$!! 54 2<$$ 42! <!!?$ %$! 2 : 2 <! 5 <! <!? )! 54 2<$$ 42! ; S 54 2<$$ 42!2 2 4!?4 2 0$ $< <! 4!! < 2 : V? 22 9! 4 2 5 4 9 : 20$4 044 9F! 5!4 0$ 4F!! 04 4 4; 2 2 2 %! <! <$ 2 @) : 04! 2 < W! : :! 4;1! 5 2 2 2?4 )! <$ 2 @2 :! 5 404! R F 4;