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
Nick

Hi 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

Tags: Database

Similar Questions

  • 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

  • form of multiple tables on the same page for apex 5?

    Hello

    Oracle Application Express Feature Requests, in the form of multiples would have been applied as a new replacement grid editable (feature ABBI).

    but I do not see this new feature of 5 APEX EA1.

    It would be delayed in the next version of Apex?

    concerning

    Jean-Marc

    in the EA apex 5 feedback, I have my answer:

    "

    Thank you
    Thank you for your comments. Yes, we plan to remove the restriction of a
    Unique IR by page and it is our intention to deliver it in the context of
    AI2.

    We * don't * the intent of the APEX to allow several tabular
    forms on a single page. On the contrary it is provided under the new
    Several rows to change the region that we plan to implement. Kinda like when IRs were
    introduced and SQL reports were kept also, this new region
    will be executed as a whole new type of region, not replace
    Tabular forms. The implementation of the new multi-line Edit region type has
    been moved to the APEX 5.1. Our intention is to have a relatively short SUMMIT
    5.1 development of the time for items such as this
    reprogrammed. The management representation statement will be updated soon
    These changes are reflected in our planning.

    Kind regards
    APEX Team. "

  • Interactive report with the subreport Details on the same page

    Hi all

    I am fairly new to APEX, sorry if my question is too obvious. I use Apex 4.0.2 on top of Oracle 11.2.

    I have an interactive report that lists the contents of a table. Since there are a lot of columns in this table I would like the report to only show that some identifier columns and all of the currently selected folder is displayed using another report in a separate area on the same page.

    The 'link' on the interactive report column is almost that, except that he jumps on another page; I would just like to have a subreport, updated with the data that is selected instead of a new page is displayed. Does anyone know how to do?

    Thanks for your help,
    Chris

    Chris,

    This looks like what I usually do in my referential data.

    I use the wizard to create the "report."

    I make sure that the two regions (the form and report) will be created on the same page number

    so I check/change the order of regions (second report in the first place, form)

    then I put in the form to display in the column 2

    Kind regards
    Richard

    P.S., the report shows only enough columns to recognize records. the screen displays all records

  • How to make a form with report and a form of inclusion in the same page?

    Hey, guys:

    I was wondering if you could have any link or examples to show how to make a form with report and a form of inclusion in the same page, these two forms are related to the same table. Our customer wants that a user can add a new row to the table in a form and see all lines created by this user in a report, the report should provide link change as well. the problem is: whenever I inserted a new line or change a line or delete a line, and submitted and return to this page, all hidden elements lost their values, this report is empty, and some display only items also lost their values. Could someone give me any suggestions?

    Thank you very much!

    Sam

    So, the problem is essentially with page elements lose their session state values when re-loading of the page. How do you define values for the elements of the hidden page? You have default values defined for those? They are based on the database column? What is the "Source" parameter for these items on the page? It is set to "Always, replace any value in session state"? You have any process of 'Empty the Cache', which is reset these values to null element?

    What is your version of the Apex?

    I would recommend that you have installed for example in apex.oracle.com. This would help to better understand the issue.

    Published by: jaouad khalifi on 13 December 2012 22:11

  • Form and report on the same page...

    Hello

    I want to have a form and report on the same page... as soon as the user enters the information and send the form via the button then the report should be able to display adding...

    can I know how to do this...

    Thanks in advance

    Hello

    Its simple...

    01. firstly create a page with a region to allow the user to insert records.
    02. it's over then add another region and choose 'Report' and region type and generate a report to show the details of the table above

    Thank you

  • How to do a partial update of a form and a report on the same page?

    Hi all

    Im trying to make a page where you have a report on the top, and when you click on the link instead go to the form page, the form on the page is on the bottom of the report. Let's say that im trying to send an id from the report to the item below so that I could go get the rest of the element. However when I pass, other elements would still refer to it as null.

    If I am not wrong it could be done with the quote, but I want it to be partial refresh...

    I tried the steps detailed here, but it didn't work when the lower part is an also a report:

    https://forums.Oracle.com/thread/2345863

    I also tried, but this actually submits a page...

    Base Oracle: Tutorial Apex - form & amp; Report shares the same page

    would it not possible to get a form and a report in a partial refresh page?

    Post edited by: T101_cyberdyne

    Hello

    Do you mean something like this:

    http://Apex.Oracle.com/pls/Apex/f?p=vincentdeelen:26:26

    If so, you must create a dynamic action with a javascript action to set the id of the report line in the form of code field and further action from pl/sql to retrieve the record based on the identification number. You can use this record to set the shape of other items in the field.

    For the example in the link above, the code is as follows.

    action of javascript:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text)

    $s ('P26_EMPNO', empno)

    action of PL/SQL:

    declare

    cursor c_emp is

    Select * from EMP

    where empno =: p26_EMPNO;

    BEGIN

    for r_emp looping c_emp

    APEX_UTIL. SET_SESSION_STATE ('P26_ENAME', r_emp.ename);

    APEX_UTIL. SET_SESSION_STATE ('P26_JOB', r_emp.job);

    APEX_UTIL. SET_SESSION_STATE ('P26_MGR', r_emp.mgr);

    APEX_UTIL. SET_SESSION_STATE ('P26_HIREDATE', to_char (r_emp. HireDate, 'dd-mon-yyyy'));

    APEX_UTIL. SET_SESSION_STATE ('P26_SAL', r_emp. SAL);

    APEX_UTIL. SET_SESSION_STATE ('P26_COMM', r_emp.comm);

    APEX_UTIL. SET_SESSION_STATE ('P26_DEPTNO', r_emp. DEPTNO);

    APEX_UTIL. SET_SESSION_STATE ('P26_ORDNO', r_emp.ordno);

    end loop;

    END;

    Make sure you list the item id in the field "Page of Items to submit" and ALL your form elements in the field "Page of Items of return" as follows:

    http://www.vincentdeelen.com/images/OTN/plsql_action.PNG

    A screenshot of the configuration of dynamic action:

    http://www.vincentdeelen.com/images/OTN/dynamic_action.PNG

    Kind regards

    Vincent

  • How to export data to excel that has 2 tables with the same number of columns and the column names?

    Hi everyone, yet once landed upward with a problem.

    After trying many things to myself, finally decided to post here...

    I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.

    It works very well with a single table. The problem now is that I cannot do the same with 2 tables.

    Because the tables have the same number of columns and the columns names.

    Here are the 2 tables with column names:

    Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2)
    SL_NOSL_NO
    MODELMODEL
    END_DATEEND_DATE
    U-1U-1
    U-2U-2
    U-4U-4
    ..................
    ..................
    U-20U-20
    U-25U-25

    Given that the tables have the same column names, I get the following error :

    402 error at line 103, column 4

    required aliases in the SELECT list of the slider to avoid duplicate column names.

    So how to export data to excel that has 2 tables with the same number of columns and the column names?

    Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?

    Help me with this please.

    Thank you.

    Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?

    see you soon

  • Click on a button to fill out the form on the same page of the report

    Hello

    I have a report that contains a name I want to move to a field in a form on a different region on the same page.
    My button on the report was her own column called ADD_LINK. This is the button. "< id button ="apexir_btn_ADD"class =" button apexir "type ="button"value ="Add"onclick =" "> < span > </span > Add < / button >.

    Once you click on this button, I have the form region fade. The region is called add the tag to the employee, which has P4_ROWID, P4_EMPLOYEE_ID and P4_TAG_ID.
    Once the area is displayed, I want #NAME # to show in the P4_EMPLOYEE_ID.

    I copy this form in another page, where I had it before. It made more sense to move it to this page for purposes of interface, then perhaps this tidbit will help as well.

    If someone has an answer to it, great. I'm new so thanks for the help.

    Thank you.
    Jeremy

    Its market not now and I did in the region never delete because you use the same area for the two remove hide/show the corresponding keys.

  • Tabular and normal form on the same page

    Hi all

    need some advice as how to submit both tabular form and normal form on click of the "submit" button. The tabular presentation comes from another table and the normal form, and like I said I have to insert in their adjacent tables at the same time...

    Thanks guys...

    Hello Stefan,

    You may find it useful to examine the behavior of the details page in the master form / detail in the example of APEX Application, where changes to forms (based on Master table) region and in the region in a table (based on the detail table), are saved by clicking a button. If you work with APEX 4.0, install the sample database Application, run it and select the tab 'orders '. Page commands, pg 4, is the master page, displaying information about the customer orders. If you click the Edit on the link of one of the lines, say for example the customer 'Bradley, Eugene', this will create a branch to the detail, pg 29 of the sample Application page. The 'Save Changes' button will save the changes to the two parts of the page. Form region changes are saved via a process of automatic Page turning (DML), and in the detail region changes are done via update line Multi (MRU) and Multi line remove (MRD) process.

    I hope this helps.
    Kind regards
    Hilary

  • Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    Hi all

    Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    I did program mentioned above but it does not work. Can you tell me what is the problem?

    There is no error is indicated in the program. If someone knows about it please try to find solutions and help me out of this problem.

    I have attached my program with this message.

    Thank you in advance!

    (1) FOR loops are your friend here.  You can make a slight restructuring using loops, and then you will have less mess to deal with, the inner loop through tunnels of autoindexing to make it even simpler.

    (2) I would only treat the numeric values of the characters.  So go terminal of control of the chain, the capital letters and byte array to before the outer loop.  You can use a size of Board over there to tell how many times the outer loop to iterate.

    (3) the Index table is extensible.  So you only need over the index of the first, and it will increment itself, as it develops.

    (4) you need to finish the lookup table (table 3D)

  • Link chart action for refreshing a report of region within the same page

    Gurus of the APEX

    As long as we have the graph and report region region on the same page and based on the action of graph link must be able to refresh the report region within the same page

    for example: I expense spend by category such as a pie chart and on the link of the action of which I want to refresh a report region by the right of it (in the same page) to show the details contained in this category spend - also I do not have to réactualisiez around the same page, just to refresh the region related to the category Click on the graph

    Any help would be great on this - I use APEX 4.2

    Thank you

    Shas

    Thanks Tom / Scott - sound now worked

    Following my code for the javascript function in the page section,

    function clickPie (pID) {}

    $x('P4_ITEM_CATEGORY').value = pID;

    $('#CategoryDetailsDD').trigger ('apexrefresh');

    }

    And here is my URL of the link graphic action section

    JavaScript:clickPie("#label#")

  • Wrap text around a table in the same period, possible?

    Is it possible to get the text to wrap around a table, without having to make the array in its own framework (as a separate object)? Of course the table would have its width less than the width of the text block, enough so that the text could flow into the empty space next to it (see photo).

    sample text wrap.jpg

    It is my intention to do them in the same frame so that she would follow the traffic whenever there are changes. I know that I can use the anchored object tool, but it has its limitations (which must be on the same page as - and - below the insertion point). When I do a report with sequential numbering - as in this case the notes, table and figures, etc. - and correctly generate a table of contents (to be in order) depends very much on the position of each element (even the location of the insertion points). If an item is in the same frame, or as a separate object, affects the sequence. Even notes must be in the same continuous framework to work correctly.

    From the point of view of InDesign, a table is just a text character, although it still occupies a full range in itself. You cannot add wrap at a table, only a framework containing.

  • A report on the current record of another report on the same page of filtering

    Hello

    I have a report on the same page and form in an APEX application. The interactive report is used for sorting/filtering etc. and the form is used to present the data for one record at a time, but also to allow updates in the selected fields. This was done using the wizards, little 'edit' is click on the button to change the shape of the selected record.

    I also have (or want to have) a second non-interactive report on the page, which contains some records according to the record of the main report that is currently selected and appearing in the form.

    I tried to make a simple 'SELECT fields WHERE the link field is equal to the main report', but he doesn't always says no data found.

    Basically, I need to be able to have a query for the second report which says "SELECT those fields WHERE the site is equal to the site displayed in the form.

    A click on the button 'Edit' of small pencil/paper on a report, this set some ActiveRow or something like that I can use to filter the second report?

    As you can tell from this post, I'm in my childhood skills database and any literature/advice on how to do this (outside MS ACCESS...) would be appreciated.

    Hello

    What is your version of the Apex?
    You define a column as to be the link.

    Do you mean something like this?
    https://Apex.Oracle.com/pls/Apex/f?p=40323:71
    If you click on the deptno column, it refreshes DEPT report.

    Kind regards
    Jari

  • Delete and stay on the same page!

    Hi guys,.


    As we detail in the following image:

    http://www.9M.com/upfiles/PlT97853.PNG

    I have a report and a form on the same page. When press on delete I want to remove the checked boxes and refresh 'DOWNLOAD' region, or stay on the same page.

    NOTE: 'Action' button Delete is - submit page.

    I hope my question is clear and look forward for assistance.

    Thanks in advance,
    Fateh

    Hello

    Can you please create a branch under after instruction processing, you can see the same page itself. So, after the removal of the process, it will come to the same page.

    Hope this could help you.

    Thank you & best regards
    Srikkanth.M

Maybe you are looking for

  • What happened to TOOLS tab? For example &gt; how to switch to USER AGENT SWITCHER? Thank you

    Many reference sites pull-down shown in older versions of FF. I can't find the sweater down in 8.01 and change has made many 'How to' articles on the Net... pointless not to mention navigate within FF. Thank you

  • System does not load after startup - Satellite A500 repair

    Hi guys,. I have a problem with my laptop. I closed my laptop directly by cutting of the switch. After I boot the laptop that the system recommends the Startup Repair, but he could not fix and after it comes to the home page and do not charge as.Some

  • Feature satellite C50-B14Z and ODD

    I am 87 years old then please take into account my ignorance. My C50-B14Z Satellite has a drawer that did not move. Any suggestions please?

  • Note Book PC not start

    Product - WQ761UA #ABA Windows 7 Error - not found boot drive, install the operating system and hard drive (3F0) No change

  • Auto focus does not work anymore

    Hi all The autofocus on my EOS 50 d has stopped working. I have tried different lenses, checked the settings (it is not in manual mode), cleaned the contacts, etc.. One day, it worked very well, and then stopped. When I try to focus, the sounds of th