8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

21
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    214
  • download

    1

Transcript of 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

Page 1: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8Copyright © 2004, Oracle. All rights reserved.

Creating LOVs and Editors

Page 2: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-2 Copyright © 2004, Oracle. All rights reserved.

Objectives

After completing this lesson, you should be able to do the following:

• Describe LOVs and editors

• Design, create, and associate LOVs with text items in a form module

• Create editors and associate them with text items in a form module

Page 3: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-3 Copyright © 2004, Oracle. All rights reserved.

Overview of LOVs and Editors

Text item

Editor

Text item Text item

LOV

Supporting datarecord group

Page 4: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-4 Copyright © 2004, Oracle. All rights reserved.

Overview of LOVs and Editors

• LOVs– List of values for text items– Dynamic or static list– Independent of single text items– Flexible and efficient

• Editors– Override default editor– Used for special requirements such as larger

editing window, position, color, and title

Page 5: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-6 Copyright © 2004, Oracle. All rights reserved.

LOVs and Record Groups

Text item

LOV

Text item

LOV

Database

Record group Record groupRecord groupbased on

static data

Query-basedrecordgroup

ORSQL

Page 6: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-7 Copyright © 2004, Oracle. All rights reserved.

LOVs and Record Groups

EMPLOYEES table

SELECT employee_id, first_name ||

' '|| last_name NAME, phone_numberFROM employeesWHERE job_id = 'SA_REP'ORDER BY last_name

Employee_id Name

Sales Rep record group

Sales Representatives LOV

Page 7: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-8 Copyright © 2004, Oracle. All rights reserved.

Creating an LOV Manually

1

2

3

4

Page 8: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-9 Copyright © 2004, Oracle. All rights reserved.

Creating an LOV with the LOV Wizard:SQL Query Page

Edit query if needed

Page 9: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-10 Copyright © 2004, Oracle. All rights reserved.

Creating an LOV with the LOV Wizard: Column Selection Page

Page 10: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-11 Copyright © 2004, Oracle. All rights reserved.

Creating an LOV with the LOV Wizard: Column Properties Page

Page 11: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-12 Copyright © 2004, Oracle. All rights reserved.

Creating an LOV with the LOV Wizard: Display Page

Page 12: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-13 Copyright © 2004, Oracle. All rights reserved.

Creating an LOV with the LOV Wizard: Advanced Properties Page

Page 13: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-14 Copyright © 2004, Oracle. All rights reserved.

Creating an LOV with the LOV Wizard: Assign to Item Page

Page 14: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-15 Copyright © 2004, Oracle. All rights reserved.

LOV Properties

Filter BeforeDisplay

?

(X,Y)

AutomaticSelect

AutomaticSkip

Width

Height

LOV

Column Mapping

Return Items

Page 15: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-16 Copyright © 2004, Oracle. All rights reserved.

Setting LOV Properties

LOV

Column Mapping

AutomaticPosition

AutomaticColumn Width

Return Items

Page 16: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-17 Copyright © 2004, Oracle. All rights reserved.

LOVs: Column Mapping

Employee_id

orders.sales_rep_id orders.sales_rep_name orders.salesrep_phone

Hiddencolumn

Phone number1-415-555-6281

Page 17: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-19 Copyright © 2004, Oracle. All rights reserved.

Defining an Editor

Page 18: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-20 Copyright © 2004, Oracle. All rights reserved.

Setting Editor Properties

Page 19: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-21 Copyright © 2004, Oracle. All rights reserved.

Associating an Editor with a Text Item

• Associate one of two types of editors with a text item.

• Set text item’s Editor property to one of the following:– Null (default Forms

Builder editor)– Editor name

(customized editor)

Page 20: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-22 Copyright © 2004, Oracle. All rights reserved.

Summary

In this lesson, you should have learned that:• An LOV is a scrollable pop-up window that

enables a user to pick the value of an item from a multicolumn dynamic list

• The easiest way to design, create, and associate LOVs with text items is to use the LOV Wizard

• An Editor is a separate window that enables the user to view multiple lines of a text item simultaneously, search and replace text in it, and modify the text

• You create editors in the Object Navigator and associate them with text items in the item's Property Palette

Page 21: 8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.

8-23 Copyright © 2004, Oracle. All rights reserved.

Practice 8 Overview

This practice covers the following topics:

• Creating an LOV and attaching the LOV to a text item

• Creating an Editor and attaching it to a text item