Presentation is loading. Please wait.

Presentation is loading. Please wait.

10 Copyright © 2004, Oracle. All rights reserved. Creating Noninput Items.

Similar presentations


Presentation on theme: "10 Copyright © 2004, Oracle. All rights reserved. Creating Noninput Items."— Presentation transcript:

1 10 Copyright © 2004, Oracle. All rights reserved. Creating Noninput Items

2 10-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Identify item types that do not allow input Create a display item Create a calculated item

3 10-3 Copyright © 2004, Oracle. All rights reserved. Noninput Items Overview Item types that do not accept direct user input include: Display items Calculated items

4 10-4 Copyright © 2004, Oracle. All rights reserved. Display Items Display items: Are similar to text items. Cannot: –Be edited –Be queried –Be navigated to –Accept user input Can display: –Nonbase table information –Derived values

5 10-5 Copyright © 2004, Oracle. All rights reserved. Creating a Display Item

6 10-6 Copyright © 2004, Oracle. All rights reserved. Calculated Items What are calculated items? They accept item values that are based on calculations. They are read-only. They can be expressed as: –Formula –Summary

7 10-7 Copyright © 2004, Oracle. All rights reserved. Creating a Calculated Item by Setting Properties Formula –A calculated item value is the result of a horizontal calculation. –It involves bind variables. Summary –A calculated item value is a vertical calculation. –A summary is performed on values of a single item over all rows in a block.

8 10-8 Copyright © 2004, Oracle. All rights reserved. Setting Item Properties for the Calculated Item Formula –Calculation Mode –Formula Summary –Calculation Mode –Summary Function –Summarized Block –Summarized Item

9 10-9 Copyright © 2004, Oracle. All rights reserved. Summary Functions AVG COUNT MAX MIN STDDEV SUM VARIANCE

10 10-10 Copyright © 2004, Oracle. All rights reserved. Calculated Item Based on a Formula ORDERS Item# Prod Id Unit Price Quantity Item Total 1 2 4 3 200 120 50 25 5 4 9 3 1,000 480 450 75 NVL((:order_items.unit_price * :order_items.quantity),0) Formula item Orders Items Description

11 10-11 Copyright © 2004, Oracle. All rights reserved. Rules for Calculated Item Formulas Create calculated item formulas according to the following rules: A formula item must not invoke restricted built- ins. A formula item cannot execute any DML statements. Do not terminate a PL/SQL expression with a semicolon. Do not enter a complete PL/SQL statement in assignment expressions.

12 10-12 Copyright © 2004, Oracle. All rights reserved. Calculated Item Based on a Summary ORDERS 1 2 4 3 200 120 50 25 5 4 9 3 1,000 480 450 75 2,005 Order Total Summarized item Summary item Item# Prod Id Unit Price Quantity Item Total Description Orders Items

13 10-13 Copyright © 2004, Oracle. All rights reserved. Rules for Summary Items Summary item must reside in: –The same block as the summarized item –A control block with Single Record property set to Yes Summarized item must reside in: –A data block with Query All Records property or Precompute Summaries property set to Yes –A control block Datatype of summary item must be Number, unless using MAX or MIN

14 10-14 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned that: The following item types do not allow input: –Display items –Calculated items You create noninput items by: –Changing the type of an existing item and setting certain properties –Using the appropriate tool in the Layout Editor

15 10-15 Copyright © 2004, Oracle. All rights reserved. Summary You can use: –A display item to show nonbase table information –A calculated item to display the results of a formula or a summary function of another item


Download ppt "10 Copyright © 2004, Oracle. All rights reserved. Creating Noninput Items."

Similar presentations


Ads by Google