Upload
angela-pace
View
214
Download
2
Tags:
Embed Size (px)
Citation preview
Copyright © 2001 by Anne E. Ristau
Descriptive FlexfieldsDescriptive Flexfields
OAUG TrainingOAUG Training
Anne RistauAnne Ristau
Jeanne McDonaldJeanne McDonald
Copyright © 2001 by Anne E. Ristau
AgendaAgenda
Why Descriptive Flexfields - Lecture Quick ExampleQuick Example
Planning - Audience Workshop Registration - Demo More Planning - Audience Workshop 20 Minute Break
Copyright © 2001 by Anne E. Ristau
Agenda cont.Agenda cont.
Definition - Demo Value Sets Value Sets SegmentsSegments
Testing - Demo Data Storage / Retrieval - Lecture Questions & Comments
Copyright © 2001 by Anne E. Ristau
Why Descriptive Flexfields
Customers require more data to be stored than what Oracle provides
Oracle gave us additional “space” in most tables to store this data
Descriptive Flexfields will survive an upgrade
You don’t need to be a programmer :)
Copyright © 2001 by Anne E. Ristau
Planning
DFF space is finite, use wisely Does a DFF exist for your TABLE
forms look for [ ]forms look for [ ] TRMTRM DFF registrationDFF registration
DFFs are associated with a table NOT a form
Copyright © 2001 by Anne E. Ristau
Registration
Query by the Table Name learn the number of user defined flexfields learn the number of user defined flexfields
for the tablefor the table record the Name of the Flexfieldrecord the Name of the Flexfield learn the number of columns available for learn the number of columns available for
storagestorage learn which reference fields are availablelearn which reference fields are available
Copyright © 2001 by Anne E. Ristau
More Planning
Use Paper and PencilUse Paper and Pencil What needs to be storedWhat needs to be stored Where will the data come fromWhere will the data come from Is the data Is the data
GlobalGlobal Context SensitiveContext Sensitive
Data validation, size, securityData validation, size, security
Copyright © 2001 by Anne E. Ristau
How to validate the dataHow to validate the data
Already in Oracle Database (TABLE)Already in Oracle Database (TABLE) employee namesemployee names
Free format typing (NONE)Free format typing (NONE) phone numbersphone numbers commentscomments
I need to make a list (INDEPENDENT I need to make a list (INDEPENDENT or DEPENDENT)or DEPENDENT)
Copyright © 2001 by Anne E. Ristau
Global vs Context SensitiveGlobal vs Context Sensitive
Global Data Elements mean the question will be asked for every occurrence of the Descriptive Flexfield.
Context Sensitive Elements are questions asked “depending” on the answer to some other question. This “other” question can use a Reference field from above for its answer.
Copyright © 2001 by Anne E. Ristau
AssignmentAssignment
My company has decided that we would like to know the make, model, and color of car the CFO of this set of books drives. I would like to know which state the CFO resides. If they live in Colorado I would like to know if they are a Bronco fan. If they live in Missouri I want to know if they are a Chiefs or Rams fan
Copyright © 2001 by Anne E. Ristau
Global or Context Sensitive?Global or Context Sensitive?
MakeMake ModelModel Color of CarColor of Car ColoradoColorado MissouriMissouri Bronco FanBronco Fan Cheifs FanCheifs Fan Rams FanRams Fan
Copyright © 2001 by Anne E. Ristau
Data format, size, security, validationData format, size, security, validation
Data FormatingData Formating charactercharacter
numbers onlynumbers only right justify zero fill 0003 right justify zero fill 0003 uppercaseuppercase
date date Minimum and Maximum valuesMinimum and Maximum values
numbers numbers precision (place to right of decimal)precision (place to right of decimal) Minimum and Maximum valuesMinimum and Maximum values
Copyright © 2001 by Anne E. Ristau
Data format, size, security, validationData format, size, security, validation
SizeSize Minimum and Maximum valuesMinimum and Maximum values Value Security based on ResponsibilityValue Security based on Responsibility More than 100 valuesMore than 100 values Validation TypeValidation Type
NoneNone IndependantIndependant DependantDependant TableTable
Copyright © 2001 by Anne E. Ristau
Data format, size, security, validation, Data format, size, security, validation, global, context sensitiveglobal, context sensitive
MakeMake ModelModel Color of CarColor of Car ColoradoColorado
Bronco FanBronco Fan MissouriMissouri
Cheifs FanCheifs Fan Rams FanRams Fan
Copyright © 2001 by Anne E. Ristau
Do I have enough roomDo I have enough room
MakeMake ModelModel Color of CarColor of Car ColoradoColorado
Bronco FanBronco Fan
MissouriMissouri Cheifs FanCheifs Fan Rams FanRams Fan
attribute1attribute1 attribute2attribute2 attribute3attribute3 contextcontext
attribute4attribute4 contextcontext
attribute4attribute4 attribute5attribute5
Copyright © 2001 by Anne E. Ristau
20 Minute Break
Copyright © 2001 by Anne E. Ristau
Definition - Value Sets
Is there an existing value setIs there an existing value set DocumentDocument Follow standardsFollow standards
CUSTOM PREFIX CUSTOM PREFIX UPPER CASE NAMESUPPER CASE NAMES ONE WORDONE WORD
OAUG_MAKES_OF_CARSOAUG_MAKES_OF_CARS
Copyright © 2001 by Anne E. Ristau
Definition - Segments
Use a worksheet first (save this)Use a worksheet first (save this) DocumentDocument
record the view name xxxx_DFVrecord the view name xxxx_DFV Do not make mistakes - take your timeDo not make mistakes - take your time Disable no deletionDisable no deletion EVERY field must have a valueEVERY field must have a value Freeze when completeFreeze when complete
Copyright © 2001 by Anne E. Ristau
Testing
Log onto the form and validate the DFFLog onto the form and validate the DFF Use the TEST form (this is not my Use the TEST form (this is not my
favorite method)favorite method) If possible look at the database valuesIf possible look at the database values
Then move to productionThen move to production
Copyright © 2001 by Anne E. Ristau
Data Storage / Retrieval
Oracle designed DFF’s for your Oracle designed DFF’s for your convience in storage. They do not convience in storage. They do not provide retrieval reports!provide retrieval reports!
Code using the view NOT the table Code using the view NOT the table itselfitself
Copyright © 2001 by Anne E. Ristau
Base TableBase TableGL_SETS_OF_BOOKS set_of_books_id, name, attribute_category, attribute1, attribute2, attribute3, attribute4, attribute5
ROWID is a hidden field of all tables
Copyright © 2001 by Anne E. Ristau
DFF ViewDFF ViewGL_SETS_OF_BOOKS_DFV Row_ID Make Model Color CO Bronco_Fan MO Chief_Fan Ram_Fan
Copyright © 2001 by Anne E. Ristau
DFF View and BaseTableDFF View and BaseTable
SELECT T.TABLE_COLUMNS, V.DFF_COLUMNSFROM BASE_TABLE T, BASE_TABLE_DFV VWHERE V.ROW_ID = T.ROWID
Copyright © 2001 by Anne E. Ristau
Questions and CommentsQuestions and Comments