Display and update of fields in different tables on the same page.
I am facing two problems...(1) I have a report on which I show several fields of 4 different tables. For each row of data, there is a link to change on the first column. By clicking on the link change, I show you a form where I want to show the respective data. On the link change, even if I send you the data in the report, they do not appear on the form (what edit link is clicked). Also, there is only room for 3 items to ship through the link change.
How to display the data correctly on the form? Is there another way to use the link change?
(2) on the form, how do I update the data from different tables?
Thank you
Gargi
Hi Lisa,
The text of presentation on the INSTEAD OF triggers is in: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#sthref7918]
First of all, your SQL View contains a unique key so that your triggers and the two Apex know what is updated.
Then, you can create instead of triggers for "instead of INSERT ON viewname", 'instead of UPDATE ON viewname' and 'DELETE ON viewname' on your SQL view. What do these triggers depends on what you need. In the trigger code, you refer to new data using: NEW.column_name and old data using: OLD.column_name (updates both: OLD and: NEW values).
I'm not sure of the SEPARATE, the GROUP IN question. You would certainly have a unique key on each record. It could be that the DISTINCT or GROUP BY clause will have to be taken out of the SQL view and is part of the source of the region, so that the SQL view does nothing with the data other than to join several tables in a single "table" from the Primary Key/Foreign Key relationship.
Andy
Tags: Database
Similar Questions
-
Form and a report on a related table, on the same page.
Hello.
I use Apex 2.1 in Oracle Express on Windows.
I have a table, SUPPLIERS, whose primary key is ACCOUNT_CODE, and an INVOICES table, which has a column also called ACCOUNT_CODE, and of course the idea is ACCOUNT_CODE can be used to join the two tables.
I created an application, then a 'form on a table with the report' for PROVIDERS, while I have page 1; a report on the SUPPLIERS and page 2; a form for editing a particular record of SUPPLIERS.
So far so good.
Now, on page 2, I also want to have a summary of the invoices of the supplier which I am editing the record. So I created a region and in a report on the BILLS.
The question is: How can I make sure this invoice report shows only the records where the BILLS. ACCOUNT_CODE corresponds to the value of SUPPLIERS. That is currently used by the form ACCOUNT_CODE?
Thank you
NickHi Nick,
If I understand your question then for the report of the Bills on the second page. do the SQL code for the report of something like:
Select * from invoices where Account_Code =: P2_Form_Item_Containing_Account_Code_From_Suppliers.If you do not have this code of behalf of the providers already in the form, you could do a hidden and protected field that contains the account_code of this provider. I hope this helps.
-Marc -
can I display different tables at the same time?
Hi all
It is probably a newbie question, but is it possible to display different tables at the same time? I use SQL Developer 1.5.5 and I seem to be unable to display several tables at the same time, whenever I chose to open another table, the old table disappears. In other words, the Bulletin Board only switches to your new choice in the table list navigation. Any ideas anyone?
Kind regards
WFMenu item "Tools-> Preferences-> database-> ObjectViewer Parameters"; Make sure that "automatically freeze object viewer Windows" is checked.
HTH.
Hrsg.:.
-
Insertion of records in two different tables at the same time?
Hello everyone, I have question about inserting records in two different tables at the same time, I'm looking for is by the way a unique id, which is created in the first statement insert to the second insert statement. Example of this problem:
< cfquery name = "addRecords1" datasource = 'test' >
Insert Into Table1 (name, Date, age)
Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.) "Name # ' >.
< cfqueryparam cfsqltype = 'cf_sql_date' value = '#arguments. "Date # ' >.
< cfqueryparam cfsqltype = "cf_sql_int" value = "#arguments. Age #"(>); "
Select SCOPE_IDENTITY() as RecID;
< / cfquery >
< cfquery name = "addRecords2" datasource = 'test' >
Insert into Table2(Company,City,Date,ID)
Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.Company #" >,)
< cfqueryparam cfsqltype = "cf_sql_char" value = "" #City # ">,"
< cfqueryparam cfsqltype = 'cf_sql_date' value = "" #Date # ">,"
( < cfqueryparam cfsqltype = "cf_sql_int" value = "How to pass RecID to insert in this table?" >).
< / cfquery >
In this example, I'm inserting records in table 1 and creation of IDENTITY SCOPE as RecId. I would like to pass this id and insert it in my table 2. This Id, I'll use in my second table as an identifier. If anyone knows anything about this please let me know. Thank you.
); QueryName - DOT - ColumnName, so it should be:
); HTH,
^_^
-
How to find the same column name in different tables in the same schema
Hello
I find the 'ename' column name in different tables in the same schema.
Thank you
NrHello
Try this query
Select column_name, table_name from user_tab_columns where column_name = 'ENAME ';
Award points and end the debate, if your question is answered or mark if she was...
Kind regards
Lacouture.
-
IS THIS POSSIBLE AND IF YES COLOR 'HOW' TO HAVE DIFFERENT LINKS ON THE SAME PAGE?
Hello
IS THIS POSSIBLE AND IF YES COLOR 'HOW' TO HAVE DIFFERENT LINKS ON THE SAME PAGE?
How to replace the color of Page link?
See you soon,.
Dreamer101.1
Yes, it is possible, using CSS.
Here's how. You already know that the link colors are set in the following css rules:
- a: link
- a: active
- a: visited
- a: hover
All you have to do to have another set of links of different colors is to create another set of rules that set different colors and also have different names:
- a.name1:link
- a.name1: active
- a.name1:visited
- a.name1:hover
Can link you these rules to the anchor as a class tag: something.
You can have as many sets of rules to link given that the names you can think of.
Happy linking!
-
Pass values between different areas on the same page.
Hi guys!
I'm developing a simple application where we have the list of students. I'm displaying information on a separate page for each student. Do you have any idea how and if I can pass parameters between regions, on the same page? I have a view showing, student card name information etc, and I want to create another view on the same page, which will be the student and will return a list of its subscribed courses.
Part of my database is something like this:
-------------
Students
------------
ID (PK)
------------
-----------------------
Student_course
-----------------------
ID (PK)
Student_id (FK)
Course_id (FK)
----------------------
----------------
Course
----------------
ID (PK)
You have no idea how this can be done? I found information how to pass parameters between pages, but not on the same page.
Thanks in advance!
P.S. I am using the Application Express (declarative programming via a web browser), the use of the Application Builder.
I discovered that I really had to. I just had to replace the "1" in my sql query with: P9_STUDENT_ID
Thanks for your help anyway!
-
Culture in two different places in the same page
What on Earth, I want to crop in two different places in the same page. For example, I want to keep something in the upper part and something in the lower part, but skip the other parts. What happens on Earth, I can do that, gentlemen?
There is a rectangle of cropping by page. What the parties 'ignored' would look like? Flat white?
-
Text links in different color on the same page
Is it possible to create text links which are of different colors on the same web page? I use CS4 on Mac. I have CS6, but obviously, I know so little about the design of web sites that I'm terrified of switching. In any case, I just want to know if it's possible. Thank you.
Julie
Well Yes, you can do it using css.
In the css to your page, you can add something like...
{a.redlinks}
color: Red;
}
{a.Bluelinks}
color: Blue;
}
And in the html code, all the links that you want to be red, the value of their class to redlinks and links you want to display blue, add the class bluelinks.
They end up that looks like this...
-
I can't create several different uls on the same page
There is a nav - ul on the page.
#online - nav ul {}
text-align: left;
display: block;
padding: 5px;
Width: 130px;
margin: 5px;
list-style-type: none;
}
I need uls several points, squares etc. on the same page, width 300px and text sizes different and color etc. But every time I get ul I get the same div as above. How can I change the new lists?Thank you, that's all.
-
This concerns 4.3 Pages, I prefer.
I have written two different books, both with notes - one with a lot of notes.
I would like to print them both, at the same time, on a single page legal-size, 8 x 14. I can get.
I did this time in divvying up toward the top of the page itself and by running the paper into the printer twice - once for the top the half and, again, once for the lower half. It worked very well... but my printer is becoming tired! (former HP).
Recently, I tried to print the most complex book on top, with all the heavy notes, in a 'box' above. I managed to get this set only to discover that you are unable to print notes in a text box! Curses.
Unfortunately, through the raggedy of the time evolution, these books are more than a length. However, I know that I can squeeze and tweezers to them by giving them different sizes and depths of the page. Certainly, foreign and unknown.
Why the question is: is it possible to print simultaneously two different files (texts not only) on the same sheet of paper? Each of these texts has notes.
Hi aws.
4.3 pages. It will work for you?
A single page with two columns
Insert a column break between the two versions. Notes appear on the same page.
Kind regards
Ian.
-
Is there a way to create a button etc to get different views of the same page?
I have a page full of product images and wants to give the viewer an option to choose the size of the images on the page. So far, I just had two different pages with the same images and created a hyperlink button to switch between views. The reason why I want to get the two points of view on the same page, is I want to use the same name for each page. Muse won't let me create two pages with the same name, so now I have a parent page "Products" (with large images) and its child page "products 2" (with the small images) with a hyperlink linking them. "» This also creates a problem in the menus, since the 'product 2' does not have the active menu bar.
I have the same problem with the creation of the site in different languages. I would like to make a simple drop-down list with options "Suomi" and "English". What I have to create two different sites in two different languages and have just the hyperlink connect for example home pages?
Thanks for the tips!
You can use any number of widgets to create online pop-overs / hover pods / galleries. Lightbox to the ToolTip, anything is possible. The language issue to indeed create individual sites and crosslink them.
Mylenium
-
All the help instructions are to import and export bookmarks bookmarks between different brands of browsers.
Assuming that each of these different users use a different profile of Firefox. You can use the built in Fx4 Sync feature. Click on Setup Sync in the menu selections, create an account and then have each user created their profile to use this new account synchronization. It syncs more bookmarks; things like history, passwords, etc. So if it's only the bookmarks you are concerned with that, use customize only synchronize bookmarks when you set up each user. Good luck and have fun in sync.
-
Get the number of lines to different tables on the same line
How can I get the number of lines for the different tables in a single line:
SELECT count (A), count (B), count (C) table tb_a A, tb_b B, tb_c C;
Thank you!Maybe if you want a little sophisticated look ;)
select * from (select 'a' tbl_name,count(*) cnt from table_a union all select 'b' tbl_name,count(*) cnt from table_b union all select 'c' tbl_name,count(*) cnt from table_c ) pivot (max(cnt) kount for tbl_name in ('a' as tbl_a,'b' as tbl_b,'c' as tbl_c))
Concerning
Etbin
-
Two different Menus on the same Page
I created a menu in my master page in the header section and another in the page footer section. I want the menu headers to show less number of links page saying 5 so that the page footer to display all pages.
I used the option "exclude page from menus" but it removes the page menu at the same time when I want to delete only in the header menu. How can I achieve that?
In the options for the widget:
Maybe you are looking for
-
PCI\VEN_8086 & DEV_1C3A & SUBSYS_2ABF103C & REV_04 PCI VEN_8086 & DEV_1C3A & SUBSYS_2ABF103C PCI VEN_8086 & DEV_1C3A & CC078000 PCI VEN_8086 & DEV_1C3A & CC0780 driver required device
-
When I started my laptop, I got the following message: "updates the configuration, step 3 of 3, 0% complete". It keeps just close and restart with the same message. I tried to l ' turn off and commissioning and pressing F8. Any kind of reboot I try d
-
From what I read, the E4200 is supported by two separate networks, one on the 2.4 GHz band, one on the 5 GHz band, then an additional network for guests on the 2.4 GHz band. Is it possible to have the comments rather like a normal network network so
-
BlackBerry Z10 error "too many devices are connected to this account.
I just bought a new z10, I used BIS of my network too. But when I created my email to work through Microsoft Active Sync, z10 me "too many devices are connected to this account" ... What can I do now for this problem?
-
problem in installing cyberlink power dvd on my Windows 7 laptop 13
installed power cyberlink dvd 13 on my Windows 7 laptop but wouldn't open it directly or by the shortcut. Tried to install and uninstalled the program using also shortened fix and compatibility troubleshooting but the problem remains.