Exploring Interactive Grid in Oracle APEX - Part 6

Tech Mining
3 Oct 202230:11

Summary

TLDRThis video tutorial guides viewers through installing a sample interactive grid application in Oracle Apex, exploring its features such as column groups, editing capabilities, and data manipulation. It covers advanced functionalities like scroll paging, master-detail relationships, and protecting rows from DML operations. The tutorial also demonstrates changing column types and leveraging Apex's auto-generated processes for efficient data management.

Takeaways

  • 😀 Install the sample application for interactive grid in Oracle Apex by clicking the install button from the gallery, which simplifies the process compared to previous versions.
  • 📚 After installation, the required tables for the sample interactive grid application can be viewed in the SQL Workshop's Object Browser.
  • 🛠️ Learn to create a new page with an interactive grid in Oracle Apex, setting properties like page number, name, and enabling local database as the data source.
  • 🔍 Understand how to use column groups to organize and display data in the interactive grid, and how to set properties for these groups in the page designer.
  • 🔄 Discover the editing capabilities of the interactive grid, including enabling data manipulation operations and customizing toolbar buttons for user interactions.
  • 🔑 Learn to resolve common errors like defining a primary key column for editing in the interactive grid and understanding its importance in data manipulation.
  • ⚙️ Explore the various column types available in interactive grids, such as radio groups, pop-up lists of values, date pickers, and switches, and how to apply them to enhance user experience.
  • 🔒 Get insights on protecting certain rows from DML operations by implementing a control column and setting allowed row operations in the interactive grid.
  • 🔄 Experience the scroll paging feature, also known as infinite scrolling or virtual paging, which allows for efficient data rendering as the user scrolls.
  • 🌐 Master the creation of master-detail relationships in interactive grids, enabling the display of related data across multiple regions based on user selection.
  • 📈 Comprehend the auto-generated processes by Apex Wizards for handling DML operations, which simplifies the process of data manipulation without writing SQL code.

Q & A

  • How do you install the sample application for the interactive grid in Oracle Apex?

    -To install the sample application, go to the gallery, click on 'Sample Apps', find and click the 'Install' button for the 'Sample Interactive Grid Application'. The application will be installed directly to your workspace without needing to download a zip file.

  • What are the two required tables for the interactive grid sample application in Oracle Apex?

    -The two required tables for the interactive grid sample application can be viewed in the 'SQL Workshop' under the 'Object Browser' option once the application is installed.

  • How do you create a new page with an interactive grid in Oracle Apex?

    -To create a new page, click the 'Create Page' button, select the 'Interactive Grid' option, enter a page number (e.g., 100), and a column group name for the page name.

  • What is the purpose of setting the 'Source Type' to SQL query for the interactive grid's data source in Oracle Apex?

    -Setting the 'Source Type' to SQL query allows you to define a custom SQL statement that will be used to fetch data for the interactive grid, as provided in the source code link in the video description.

  • How can you enable editing in an interactive grid page in Oracle Apex?

    -To enable editing, click the interactive grid region in the 'Page Designer', go to the 'Attributes' tab in the 'Properties' pane, turn on the 'Enabled' attribute, and ensure that data manipulation operations (create, update, delete) are also enabled.

  • What is the function of the 'Reset' and 'Save' buttons in the interactive grid's toolbar?

    -The 'Reset' button removes any customizations such as filters, column width, ordering, and reloads the report definition from the server. The 'Save' button saves changes made to the interactive grid without needing to save the whole page.

  • How do you handle the error related to the primary key column not being defined for editing in the interactive grid?

    -To resolve this error, select the 'Amp Number' column in the 'Page Designer' and turn on the 'Primary Key' property in the 'Source' section.

  • What is the interactive grid's 'Single Row View' feature in Oracle Apex?

    -The 'Single Row View' feature allows the interactive grid to display data in a single row at a time, which also supports editing.

  • How does the 'Scroll Paging' or 'Infinite Scrolling' feature work in the interactive grid?

    -With 'Scroll Paging' enabled, the interactive grid appears to carry the entire result set, but rows are rendered on demand as you scroll. Data is fetched from the server as needed by the view.

  • What is the process of creating a master-detail relationship in the interactive grid in Oracle Apex?

    -To create a master-detail relationship, you need to create regions that act as masters and details, set primary key properties, and associate detail regions to their master regions using the 'Master Region' and 'Master Column' properties.

  • How can you protect certain rows from DML operations in the interactive grid?

    -To protect rows from DML operations, you can add a control column to your SQL query that implements a rule, such as not allowing managers and presidents to be edited or deleted. Then, set the 'Allowed Row Operations' property to use this control column.

Outlines

00:00

😀 Installing Sample Application for Interactive Grid

This paragraph outlines the initial steps to install a sample application in Oracle Apex, which is necessary for hands-on experience with the interactive grid feature. Users are guided to access the gallery, select the sample app, and install it directly to their workspace. The process has evolved from downloading zip files in previous versions to a more streamlined installation. After installation, users are directed to the SQL Workshop to verify the presence of the required tables and to explore the installed application's interface, including the use of column groups to organize data in the grid view.

05:28

🛠️ Enabling and Customizing Interactive Grid Editing

The second paragraph focuses on enabling editing capabilities within the interactive grid on page 100. It details the process of toggling the 'enabled' attribute and ensuring that data manipulation operations such as add, delete, and edit are permitted. The toolbar customization is also covered, including the reset and save functionalities. The paragraph addresses potential errors related to primary key columns and provides a solution. It further explains the interactive grid's features, such as column reordering, freezing, hiding, and inline data editing. The introduction of selection actions and row selectors as part of the editing feature is also highlighted.

10:29

📝 Advanced Interactive Grid Features and Data Manipulation

This section delves into more advanced features of the interactive grid, including adding and editing rows, handling mandatory fields, and managing unsaved changes. It discusses the automatic row processing DML type process that facilitates data manipulation without SQL code. The paragraph also covers changing column types, such as radio groups and pop-up lists, and how to implement them with SQL queries. The process of protecting certain rows from DML operations through a control column is explained, along with the activation of infinite scrolling or scroll paging for handling large datasets.

15:31

🔄 Implementing Master-Detail Relationships and Data Views

The fourth paragraph introduces the creation of master-detail relationships within the interactive grid. It describes the process of uploading and executing SQL scripts to create necessary tables and data for demonstration. The steps for creating a new page to display data from the continent table and associating it with detail regions for countries, cities, and population are outlined. This includes setting up hidden columns, primary keys, and master-detail associations to enable a hierarchical data view that updates dynamically as users select different options in the grid.

20:34

🌐 Master-Detail Relationships and Dynamic Data Interaction

Building upon the previous paragraph, this section continues the discussion on master-detail relationships, focusing on the dynamic interaction between different levels of data. It details the process of selecting a continent, which then populates the countries region, and subsequently, selecting a country populates the cities region. The final step is selecting a city to display its population. The paragraph also covers the techniques learned in the video, such as installing sample applications, using column groups, enabling editing features, performing DML operations, and protecting rows from edits.

25:36

📚 Conclusion and Summary of Learned Techniques

The final paragraph concludes the video by summarizing the techniques covered, including the installation of sample applications in Apex, the use of column groups, enabling and customizing the interactive grid's editing features, exploring advanced interactive grid capabilities, implementing DML operations, utilizing auto-generated processes, protecting rows from edits, and understanding scroll paging and master-detail relationships. The paragraph serves as a recap and a thank you to viewers for watching the tutorial.

Mindmap

Keywords

💡Tech mining

Tech mining refers to the process of exploring and extracting useful information from technological data or systems. In the context of the video, it likely refers to the exploration of features within a specific technology, such as Oracle Apex's interactive grid. The video script mentions 'Tech mining' at the beginning, setting the stage for a tutorial on interactive grid features.

💡Interactive Grid

An interactive grid is a user interface component that displays data in a matrix of rows and columns, allowing for dynamic interaction such as sorting, filtering, and editing. The video's main theme revolves around the interactive grid in Oracle Apex, demonstrating how to install, configure, and utilize its features for data manipulation and display.

💡Sample Application

A sample application is a pre-built application provided for demonstration or learning purposes. In the script, the speaker instructs viewers on how to install a sample application to gain access to the necessary tables for working with the interactive grid, highlighting the ease of setup in the newer versions of Apex.

💡SQL Workshop

SQL Workshop is a tool within Oracle Apex that allows users to write, run, and manage SQL queries and scripts. The script mentions using SQL Workshop to view required tables, create new pages, and manage database interactions, emphasizing its importance in the development process.

💡Column Groups

Column groups in the context of an interactive grid are used to associate related columns together, which can be manipulated as a single unit. The video script describes creating and utilizing column groups to organize the grid's layout effectively, enhancing user interaction with the data.

💡DML Operations

DML, or Data Manipulation Language, operations refer to actions performed on the data in a database, such as INSERT, UPDATE, and DELETE. The script explains how to enable editing in the interactive grid, which allows for DML operations to be performed directly through the grid interface without writing SQL code.

💡Primary Key

A primary key is a unique identifier for a record in a database table. The script mentions setting the 'primary key property' for certain columns, which is essential for defining relationships in the database and for enabling certain features like master-detail links in the interactive grid.

💡Master-Detail Relationship

A master-detail relationship is a type of data relationship where a master record is associated with multiple detail records. The video demonstrates creating master-detail screens in Apex, showing how selecting a master record, such as a continent, dynamically displays related detail records, such as countries or cities.

💡Scroll Paging

Scroll paging, also known as infinite scrolling or virtual paging, is a feature that loads data as the user scrolls, rather than loading all data at once. The script describes implementing this feature in an interactive grid, which is beneficial for handling large datasets by only rendering rows as needed.

💡Data Types

Data types define the kind of data that can be stored in a database column, such as text, numbers, or dates. The video script discusses changing default data types of columns to other types like radio group, pop-up list of values (Lov), date picker, and switch, to accommodate different forms of user input and display within the interactive grid.

💡Authorization

Authorization refers to the process of granting access or permissions to users or roles within a system. The script touches on the save button in the interactive grid being displayed only when the grid is editable and the end user has the authorization to add, update, or delete records, highlighting the importance of authorization in data manipulation.

Highlights

Introduction to the interactive grid feature in Tech mining with a sample application.

Installation process of the sample application directly into the workspace in the new version of Apex.

Exploration of the SQL Workshop for the required tables after installing the sample application.

Use of column groups to associate columns together in the grid and single row view.

Creating a new page with an interactive grid and setting up the data source with a SQL query.

Enabling and configuring the interactive grid for editing with data manipulation operations.

Handling errors related to primary key column definition for editing in the interactive grid.

Interactive grid capabilities such as sorting, freezing columns, and hiding columns.

Data manipulation through direct cell editing in interactive grids, not available in interactive reports.

Use of selection actions menu and row selector features after enabling editing.

Notification of unsaved changes when attempting to leave the page.

Single row view and report view options in interactive grids for data display.

Auto-generated processes by Apex Wizards for DML operations in interactive grids.

Changing column types to other types like radio group, pop-up LOV, date picker, and switch.

Protecting rows from DML operations by implementing a control column in the interactive grid.

Introduction to scroll paging or infinite scrolling feature in interactive grids.

Creating master-detail relationships in interactive grids using SQL Workshop.

Building a master-detail screen manually with multiple regions and their associations.

Demonstration of master-detail functionality with continent, country, city, and population data.

Summary of techniques learned in the video, including installing applications, enabling editing features, exploring interactive grid features, and creating master-detail relationships.

Transcripts

play00:00

a very warm welcome to Tech mining

play00:02

explore features of interactive grid

play00:05

to get Hands-On exposure you need a

play00:08

couple of tables that come with a sample

play00:10

application

play00:11

execute these following steps to install

play00:13

the sample application to get the

play00:15

required tables click gallery

play00:19

then click on Sample apps

play00:24

scroll down a bit

play00:28

to sample interactive grid application

play00:31

in previous versions of Apex these

play00:34

applications were downloaded to your

play00:35

computer in zip format then we've used

play00:38

to import these downloaded zip

play00:40

applications to our workspace

play00:43

but in this new version of Apex directly

play00:46

click the install button

play00:49

[Music]

play01:00

leave these advanced settings to default

play01:02

I can install application button this

play01:05

will install the application directly to

play01:07

your workspace

play01:09

foreign

play01:11

this application ID and name is

play01:13

auto-generated

play01:16

in the SQL Workshop menu click the

play01:19

object browser option see the two

play01:22

required tables

play01:25

[Music]

play01:38

this is the view of our installed sample

play01:40

interactive grid application

play01:44

groups are used to associate columns

play01:47

together in the grid and single row View

play01:50

open sales web application

play01:52

[Music]

play01:54

create a new page by clicking the create

play01:57

page button

play02:00

select interactive grid option

play02:05

enter 100 for page number

play02:10

column groups for page name

play02:13

[Music]

play02:15

set page mode to normal because it's a

play02:18

normal page

play02:19

don't include form page

play02:23

on the data source screen select local

play02:26

database

play02:27

set Source type to SQL query

play02:30

source code link is provided in video

play02:32

description

play02:34

after downloading open part 5 folder

play02:37

you'll get files used in video

play02:39

[Music]

play02:51

foreign

play02:52

keep the default off value of editing

play02:55

enabled

play02:56

expand navigation breadcrumb is turned

play03:00

on by default

play03:00

[Music]

play03:03

set breadcrumb parent entry to no parent

play03:05

entry

play03:06

[Music]

play03:10

navigation is also turned on by default

play03:14

leave these values to default

play03:16

[Music]

play03:18

click create page button

play03:30

in the page designer under the column

play03:33

groups region right-click the column

play03:35

groups node select create column group

play03:39

in the properties pane set the heading

play03:41

attribute for this new group to Identity

play03:44

under these groups columns will be

play03:47

placed at runtime

play03:49

create two more groups

play03:51

enter compensation notes for their

play03:54

headings attribute

play03:59

[Music]

play04:04

save your work

play04:09

expand the columns node

play04:13

click the amp number column

play04:15

[Music]

play04:18

set its type to Hidden foreign

play04:25

clicky name column

play04:26

[Music]

play04:28

scroll down to the layout section

play04:31

and set this group property

play04:33

this step will place a name column under

play04:36

identity group at runtime

play04:42

set group property for remaining columns

play04:44

as performed in video

play04:46

[Music]

play04:54

foreign

play04:58

[Music]

play05:27

foreign

play05:28

[Music]

play05:39

hit save and run page button

play05:45

this is Page 100 in which columns are

play05:48

displayed in specified group

play05:53

[Music]

play05:57

execute these following steps to enable

play05:59

editing in the interactive grid page

play06:01

100.

play06:03

click the column group's interactive

play06:04

grid region

play06:06

in the properties pane click the

play06:08

attributes tab

play06:10

turn on the enabled attribute

play06:15

make sure all these three data

play06:16

manipulation operations are also enabled

play06:19

scroll down to the toolbar section to

play06:22

ensure that the show property is turned

play06:24

on

play06:26

also the two toolbar buttons reset and

play06:29

save are also enabled

play06:32

reset removes any customizations such as

play06:35

filters column width ordering and so

play06:38

forth and reloads the report definition

play06:40

from the server

play06:42

save will only save changes made to this

play06:45

interactive grid without needing to save

play06:47

the whole page

play06:49

the save button will be displayed only

play06:50

when the interactive grid is editable

play06:53

and the end user has the authorization

play06:55

to add update or delete records

play06:59

after making these changes save and run

play07:02

the page

play07:03

[Music]

play07:09

if you encounter this error interactive

play07:11

grid column groups doesn't have a

play07:13

primary key column defined which is

play07:15

required for editing or in a master

play07:17

detail relationship

play07:18

[Music]

play07:23

then click the amp number column in the

play07:24

page designer and turn on the primary

play07:27

key property in the source section

play07:30

foreign

play07:33

run the page

play07:35

[Music]

play07:43

note that now all the data manipulation

play07:46

buttons are enabled

play07:48

[Music]

play07:53

this selection actions menu is added

play07:55

automatically after enable editing

play08:00

this is row selector it indicates the

play08:03

current selected row these all features

play08:05

are added automatically after enabling

play08:07

the edit feature of the interactive grid

play08:10

interactive grid is a page component

play08:13

which is used to display data in row and

play08:15

column Matrix

play08:17

rows have fixed height and columns have

play08:19

a specific width that can be adjusted by

play08:22

dragging the border between column

play08:23

headers

play08:25

[Music]

play08:27

columns can be reordered with drag and

play08:30

drop by dragging the handle at the start

play08:32

of a column heading

play08:33

[Music]

play08:38

data in columns can be sorted in

play08:40

ascending and descending order using the

play08:43

buttons in the column heading

play08:45

foreign

play08:53

[Music]

play08:59

columns can be frozen using the freeze

play09:01

button in the column heading pop-up menu

play09:06

[Music]

play09:11

to hide a column click this hide button

play09:13

in the menu

play09:15

this action vanishes the name column

play09:21

the toolbar includes a reset button by

play09:24

default which restores all the report

play09:26

settings to their defaults

play09:32

interactive grid also allows you to

play09:34

manipulate data simply by clicking on a

play09:37

cell and editing its value which is not

play09:40

available in interactive reports

play09:42

to enter edit mode press the edit button

play09:46

test it by doing some changes

play09:49

[Music]

play10:00

this option is a menu select delete row

play10:03

this row is now marked as deleted

play10:08

[Music]

play10:17

use the revert changes option from this

play10:20

menu to revert a record marked as

play10:22

deleted

play10:26

select duplicate row option it

play10:29

duplicates the selected row

play10:35

use add row option to add a new row

play10:38

type any name

play10:44

if you try to leave the page while there

play10:46

are unsaved changes you will be notified

play10:49

any action that causes refreshing the

play10:51

data such as changing a filter or

play10:53

sorting will warn if there are unsaved

play10:56

changes page Nation does not affect

play10:59

changes

play11:00

[Music]

play11:02

add another row

play11:08

Type n in on leave column because it is

play11:11

mandatory column

play11:13

[Music]

play11:23

all edits are stored locally until you

play11:26

press the save button

play11:30

[Music]

play11:34

click single row view option

play11:37

as its name suggests it displays single

play11:40

row at a time

play11:42

editing is also supported in this View

play11:44

[Music]

play11:47

click report view to switch back

play11:50

[Music]

play12:02

this is processing tab a process named

play12:05

save interactive grid data is added to

play12:08

processing tab

play12:09

with an interactive grid automatic row

play12:12

processing DML type process to perform

play12:15

DML operations without writing any SQL

play12:18

code

play12:19

data manipulation language or DML

play12:22

operations are insert update and

play12:24

deletion of Records which we performed

play12:27

in previous steps

play12:28

this process is added by default when an

play12:31

interactive grid is made editable

play12:36

in this step you will change default

play12:39

types of some columns to some other

play12:40

types

play12:42

with page 100 being displayed in page

play12:44

designer click rendering tab

play12:46

[Music]

play12:48

expand columns node click job column

play12:52

set its type attribute to radio group

play12:55

[Music]

play13:00

when you select radio group type you are

play13:03

asked to associate a list of values to

play13:05

populate item

play13:07

for list of values type attribute select

play13:10

SQL query

play13:13

[Music]

play13:15

enter source code query in SQL query box

play13:18

foreign

play13:19

[Music]

play13:26

query fetches distinct job IDs from

play13:29

table then shows them in the job column

play13:31

using radio group type

play13:36

turn off display extra values property

play13:39

turn off display null values property

play13:43

[Music]

play13:48

next click MGR column change its type to

play13:53

pop-up Lov foreign

play14:02

SQL query for list of values type enter

play14:05

statement in SQL query box

play14:08

[Music]

play14:25

click higher date column make sure that

play14:28

type attribute of this column is set to

play14:30

date picker

play14:32

[Music]

play14:34

click on leave column set its type to

play14:37

switch

play14:38

this will display on or off state for

play14:41

this column

play14:41

[Music]

play14:45

only click tags column

play14:48

change its type from text area to

play14:50

shuttle

play14:53

set list of values type to static values

play14:56

by clicking display 1 display 2 text

play14:59

next to the static values property enter

play15:02

following static values

play15:03

[Music]

play15:05

foreign

play15:08

[Music]

play15:15

specified a pair of static display and

play15:18

return values

play15:19

here you didn't use return value because

play15:22

return value is optional

play15:25

if a return value is not included then

play15:27

return value equals display value

play15:30

click OK button to close static values

play15:33

screen

play15:34

foreign

play15:39

run page button

play15:44

[Music]

play15:51

double-click on any record under job

play15:54

column to see values in a radio group

play15:57

do same as for manager column this will

play16:00

display a drop down list in selected

play16:02

cell carrying names of President and

play16:04

managers

play16:07

press Tab Key of your keyboard the

play16:09

cursor's focus will move on to higher

play16:11

date column and date picker window will

play16:13

pop up

play16:17

keep pressing Tab Key to access on leave

play16:19

column which will now show on and off

play16:22

switch

play16:27

column which should come up with a

play16:29

shuttle carrying five static values

play16:32

defined in previous step

play16:34

using Arrow key named move all move

play16:36

these values to right pane click save

play16:39

button to write your changes to database

play16:41

[Music]

play16:47

in this step you will see how to protect

play16:49

rows from DML operations in interactive

play16:52

grid

play16:53

[Music]

play16:56

with page 100 being displayed in page

play16:58

designer click column groups region in

play17:01

SQL query section change query and use

play17:04

source code query

play17:05

[Music]

play17:12

SQL query adds a column named control to

play17:16

implement a simple rule that managers

play17:17

and presidents cannot be edited or

play17:19

deleted

play17:20

this column is then selected in allowed

play17:22

row operations column property under

play17:24

attributes tab expand columns node

play17:28

after amending the SQL query you will

play17:30

see control column click this column set

play17:33

its type to Hidden

play17:34

[Music]

play17:38

also turn on the query only property

play17:40

under source this way control column

play17:44

will query only and will not be

play17:45

displayed at runtime

play17:47

click the column group's interactive

play17:49

grid region

play17:53

then click attributes tab in the

play17:54

property pane in the edit section for

play17:58

allowed row operations column property

play18:00

select control column

play18:02

[Music]

play18:06

save page and run it

play18:09

[Music]

play18:13

click edit button in edit mode

play18:17

rows that cannot be edited or deleted

play18:19

are grayed out

play18:20

DML operations will not Implement on

play18:23

rows marked in gray color

play18:28

another exciting feature of interactive

play18:31

grid is scroll paging also known as

play18:33

infinite scrolling or virtual paging

play18:36

you need a database table with lots of

play18:38

Records to assess this feature

play18:40

[Music]

play18:43

in this feature you will use this table

play18:46

[Music]

play18:49

foreign

play18:51

which carries more than 4000 records

play18:55

for this feature implementation we need

play18:58

to create a new page

play19:00

[Music]

play19:06

click interactive grid option

play19:09

[Music]

play19:12

set page number to 111.

play19:15

[Music]

play19:18

page name to scroll paging

play19:20

[Music]

play19:32

thank you

play19:36

enter following select statement

play19:39

[Music]

play19:48

rest of the page properties will remain

play19:51

same

play19:54

[Music]

play20:01

click create page button

play20:04

[Music]

play20:09

in page designer click scroll paging

play20:13

region then in properties pane click

play20:15

attributes tab

play20:19

make sure under pagination Section type

play20:22

is set to scroll and show total row

play20:25

count is turned on

play20:27

click save and run page button

play20:29

[Music]

play20:33

scroll down using your mouse wheel to

play20:36

test this amazing feature

play20:38

after enabling this feature region

play20:40

appears to carry entire result set but

play20:42

rows are rendered on demand as you

play20:44

scroll

play20:45

when you scroll down in interactive grid

play20:48

model fetches data from server as it is

play20:50

needed by View

play20:52

you can even drag scroll bar handle all

play20:54

the way to bottom and then scroll up

play20:56

you will see total number of records at

play20:59

the bottom of interactive grid

play21:00

[Music]

play21:03

foreign

play21:07

makes it effortless to create master

play21:09

detail relationships you can create all

play21:13

types of Master detail screens very

play21:15

easily from SQL Workshop menu select SQL

play21:19

scripts option

play21:21

[Music]

play21:24

click upload button

play21:26

in upload scripts screen click choose

play21:29

file button

play21:30

in open dialog box from source code in

play21:33

part 5 folder select Master detail SQL

play21:37

file

play21:40

click upload button

play21:45

in SQL scripts interface click run

play21:48

button appearing in last column

play21:52

on runscript screen click run now button

play21:56

[Music]

play22:00

four tables along with relevant data

play22:02

will be created

play22:06

all statements should be successful and

play22:09

should displaying zero errors

play22:12

foreign

play22:15

T will execute to create four tables MD

play22:18

continent country City and population

play22:21

tables along with relevant data to

play22:24

demonstrate Master detail feature you

play22:27

can view these tables from SQL Workshop

play22:29

in object browser interface

play22:30

[Music]

play22:43

click data button to view data in these

play22:46

four tables

play22:47

this data displays at runtime

play22:50

in app builder interface

play22:52

[Music]

play22:55

create a new page by clicking create

play22:57

page button

play22:58

this time Select First Option blank page

play23:02

in blank page we have to create all

play23:04

components manually

play23:06

set page number to 112.

play23:10

name to master detail

play23:15

page mode to normal

play23:17

rest of the page properties will remain

play23:19

same

play23:20

foreign

play23:23

click create page button

play23:26

[Music]

play23:32

in page designer right-click components

play23:34

node in rendering tab select create

play23:37

region

play23:38

set following properties for new region

play23:41

this region will display data from

play23:43

continent table

play23:44

[Music]

play23:54

this asterisk query will fetch all

play23:56

records from this table

play24:00

after entering SQL query expand columns

play24:04

node under this region

play24:06

click continent ID column

play24:08

set its type to Hidden

play24:10

[Music]

play24:12

under Source section turn on primary key

play24:15

property you must Define a primary key

play24:17

column for an interactive grid region

play24:19

which is required to establish a master

play24:22

detail relationship

play24:24

create another region under continence

play24:26

region by right-clicking main components

play24:28

node

play24:29

this region will act as detail for the

play24:31

continent's region

play24:33

at runtime when you select a continent

play24:35

this region will display a list of

play24:37

countries in selected continent

play24:43

[Music]

play24:57

expand columns note under countries

play25:00

region

play25:01

click country ID column

play25:04

set its type to Hidden turn on primary

play25:06

key property under source

play25:09

you set primary key property to yes

play25:11

because this region will act as a master

play25:14

for cities region created in next step

play25:16

now associate this detail region to its

play25:19

Master continents

play25:22

click countries region set master region

play25:25

property under master detail to

play25:27

continence

play25:28

this should be set when this region is

play25:30

detail region in a master detail

play25:32

relationship with another region on page

play25:35

for master detail relationship to work

play25:38

correctly you must also select column in

play25:40

detail region which are foreign keys to

play25:43

master region by setting master column

play25:45

property

play25:46

click continent ID column in countries

play25:49

region set its type property to Hidden

play25:55

[Music]

play25:59

Aster column under master detail to

play26:02

continent ID which references same

play26:04

column in master region

play26:06

[Music]

play26:14

foreign

play26:17

place it under countries region this

play26:20

region will show a list of cities when

play26:22

you select a country from its Master

play26:24

region

play26:24

[Music]

play26:38

foreign

play26:42

[Music]

play26:52

columns note under cities region

play26:55

click City ID column

play26:58

set its type to Hidden

play27:00

[Music]

play27:02

turn on primary key property under

play27:05

source

play27:07

click country ID column in this region

play27:10

set type of this column also to Hidden

play27:15

cluster column to Country ID to point to

play27:18

same column in countries region

play27:20

[Music]

play27:25

create last region to display population

play27:28

of a city

play27:29

[Music]

play27:43

foreign

play27:46

[Music]

play27:59

columns note under population region

play28:02

click population ID column

play28:05

set its type to Hidden since this is

play28:08

last region you do not need to specify

play28:10

this column as a primary key

play28:13

however you have to set a couple of

play28:15

properties for City ID column in this

play28:17

region to associate it with its Master

play28:18

set its type property to Hidden Master

play28:22

column to City ID

play28:23

[Music]

play28:26

that's it

play28:28

save and run page

play28:29

[Music]

play28:37

click row representing Europe in first

play28:39

region

play28:40

as you click this row second region will

play28:43

display countries in Europe continent

play28:46

click Germany in second region this will

play28:49

refresh third region with a list of

play28:50

cities in Germany

play28:55

click Berlin City to see its population

play28:57

in fourth region

play29:02

[Music]

play29:08

do same as for South America continent

play29:12

[Music]

play29:28

we've learned following techniques in

play29:30

video while implementing various

play29:32

features

play29:33

installing sample application in Apex

play29:36

workspace

play29:37

learned about column groups in Oracle

play29:39

Apex

play29:40

enabled editing feature of interactive

play29:43

grid

play29:44

changed columns types from default

play29:46

deeply explored interactive grid

play29:48

features

play29:50

edited data by DML operations

play29:53

learned about auto-generated processes

play29:55

by Apex Wizards

play29:57

protected rows from DML operations

play30:00

learned about scroll paging feature

play30:03

and master detail relationship in

play30:05

interactive grid

play30:07

thanks for watching

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Oracle ApexInteractive GridSample AppsData ManipulationMaster-DetailScroll PagingDML OperationsWeb DevelopmentSQL QueriesUser InterfaceApplication Installation
هل تحتاج إلى تلخيص باللغة الإنجليزية؟