Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8932373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:18:38+00:00 2026-06-15T09:18:38+00:00

Where could I find any info on that. a)I’ll need to select which column

  • 0

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.

The form i'd like

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:18:39+00:00Added an answer on June 15, 2026 at 9:18 am

    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_where of the blocks, adding the value searched according to the field. For this, you will need to add the trigger pre-query. Something like:

    trigger of search button

    begin
      go_block('champions_block');
      execute_query; -- this triggers pre-query of champions_block
    end;
    

    trigger pre-query

    if :search.search_text is not null then
      -- this changes the where of your block
      set_block_property('champions_block',default_where, 'cname like %'||:search.search_text||'%');  
      --
    else
      -- remove previous where
      set_block_property('champions_block',default_where, '');
    end if;
    

    The show / hide of fields is more complicated, you will need to show / hide the items using:

    set_item_property('name_of_block.name_of_item', visible, property_true); -- false to hide
    

    And also will need to adjust the position of the other fields:

    set_item_property('name_of_block.name_of_item', position, pos_x, pos_y);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been unable to find any info on this, which seems like it could
I'm surprised that I could not find any info on this. I must be
I quickly searched for this before posting, but could not find any similar posts.
I couldn't find any basic info for designers (on a mac) for how SSH
I'm sure it should be obvious, but I could find any references on my
I've been searching around but could not find any answers to this. What I'm
I tried searching in google but could not find any useful answer, if(verifier.length() >
This should be a common scenario, but could not find any relevant post yet..
I googled about #!/usr/bin/perl , but I could not find any satisfactory answer. I
I've seen info on ovi that it supports widgets but can't seem to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.