Where could I find any info on that.
a)I’ll need to select which column is being searched
b)Select what data will be displayed with check boxes
c)If the selected column(in which you search) is the primary key column, then the form will also display the child table check boxes which, if checked, will display the columns along with the checked parent table columns.
The tables:
CREATE TABLE CHAMPIONS (
CNAME VARCHAR2(15) NOT NULL,
PRICELEVEL NUMBER(1) NOT NULL,
ROLE VARCHAR2(10) NOT NULL,
HPLEVEL NUMBER(2) NOT NULL,
ATKLEVEL NUMBER(2) NOT NULL,
MAGICLEVEL NUMBER(2) NOT NULL,
DIFFLEVEL NUMBER(2) NOT NULL
);
CREATE TABLE SKINS (
SNAME VARCHAR2(20) NOT NULL,
CNAME VARCHAR2(15) NOT NULL,
PRICELEVEL NUMBER(1) NOT NULL);
ALTER TABLE Champions ADD CONSTRAINT pk_Champions PRIMARY KEY (CNAME);
ALTER TABLE Skins ADD CONSTRAINT fk_Skins FOREIGN KEY (CNAME) REFERENCES champions(CNAME);
I don’t really care how this is implemented since i don’t know which way is possible. Since it’s just a 1-1 relationship, some sort of hiding might work.

if the pressed button is cname(the primary key) the first result table will of course have only one row while the second result table will be populated by the data associated with the selected primary key. If any other button is pressed the other table isn’t even displayed however the first one might have multiple rows displayed. The columns that are displayed in the results depend on the check boxes
If you don’t want to repeat the champion data displayed, create two separated database blocks, and add a relation between them.
If you want to display all data in one multi-row block, you will need a view that joins the data from the two tables.
Your search options will be a non-database block. When you click in the search button, you will need to change the
default_whereof the blocks, adding the value searched according to the field. For this, you will need to add the triggerpre-query. Something like:trigger of search button
trigger pre-query
The show / hide of fields is more complicated, you will need to show / hide the items using:
And also will need to adjust the position of the other fields: