Master-detail - want to filter details VO

Hello

I have a master-detail with Show/Hide advanced table table advanced using a link. When the master is questioned (data providers), the secondary table (supplier Sites) returns all rows that is as expected.

However, I want to further filter the secondary table based on additional parameters of an OAMessageTextInput Bean. I can recover the user entry of the bean of text input, but my problem is that I'm unable to filter the DetailVO.

Pointers?

Thank you

p

I thought about it. (always the case once you post)

Blog link below gave me the advice I was looking for and managed to do the work.

Framework OA Blog: research on the table of master / detail in OFA

The key is to order

OAAdvancedTableBean innerTable = (OAAdvancedTableBean) webBean.findChildRecursive ("detailTbl");
OAInnerDataObjectEnumerator enum1 = new OAInnerDataObjectEnumerator (pageContext, innerTable);

Browse objects then remove detail that I didn't.

Tags: Oracle Applications

Similar Questions

  • Is master detail in cascade LOV possible for details on a form?

    I have a form master detail to assign levels of skills to employees. Skill levels fall within areas. I have a LOV on the level of skills in the details, but I want to filter LOV skills by area, using a LOV cascading as follows:
    --------------------------------------------------------------------------------------------------------
    Master region
    Data on employees, etc..
    ---------------------------------------------------------------------------------------
    Detail region
    * [LOV domain] * {it is page-level element.  He appears only once on the page}

    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other related skills fields {here are the details, many on each page}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    etc.

    [buttons, etc.]
    --------------------------------------------------------------------------------------------------------

    I added the page level [area LOV] element as part of the selection list. It works and is called P45_DOMAINS

    I then modified the query on the [skillset LOV] to add a where clause for the item clause:

    where DOMAIN =: P45_DOMAINS

    It does not work. [Skillset LOV] returns no data.

    Hello
    What version of Apex?

    If on 4.x then you did P45_DOMAINS LoV the Parent of the child LoV?

    If your form detail is a tabular form then LoVs cascading are not supported. You must build your own LoVs cascading using the technique from Denes Kubicek example here.

    See you soon,.

    Published by: Dominique on 23 August 2012 09:29

  • ADF Faces 11, add where clause to the detail view in the master/detail relationship

    Hello

    I have two display objects only read connected by a link in a relationship master detail.

    They are displayed in a treetable in the form.

    I have a method on the java object impl view master class, I use to add custom where claused based on entries different user and then run the query.

    Works well, master and detail is interview properly.

    But I also want to further filter the detail view (view from destination in the display link). However, as soon as I add whereclause in the detail view against the master
    relationship of detail seems to have disappeared and are no detail record. I also tried to add a view criteria but with the same result.

    Your comments will be appreciated.

    ADF FACES 11g release 1.


    Jan

    You can get the ViewLinkAccessor, then the ViewObject and try to apply the ViewCriteria, followed by executeQuery... what you are already doing.
    Better to paste your code here...

  • Total unique table (no master/detail, no accessors view)

    Hello
    ADF tutorials are full of sum of groovy accessor "wage Total employees of the current Department" showing master/detail.
    I need to make the sum of a column of unique view object and there is no master/detail relationship: object of a view, column, and footer Total.

    There are solutions, each with a downside.

    1. I can have a separate SumViewObject, select sum (attr) in the table. The downside is when I apply panelCollection filters to a table, the filters are not applied to the SumViewObject. So, I see the total value if no filter applied.
    2. I can calculate sum in a bean managed to access lines of the iterator. The disadvantage is that it might be enough number of rows in a table and I must RangeSize the value - 1 to seek what is not good for performance.
    3. I could try to calculate the amount in the same view as an additional line object. Not the best SQL query practice as well.

    So what is the solution of predered?

    Thank you.
    ADF 11.1.2.1

    Hi Ilya,
    define a transitional attribute in your view with the value expression:

    adf.object.findRowSetForRow("").sum ("LabourCostCurrency")

    LabourCostCurrency is the attribute that you want to calculate the total.

    Place this transitional attribute in the bottom of your column of LabourCostCurrency.

    Works for me

  • Join page master detail

    I am trying to create a master - master - detail page in PHP environment that uses the Assembly between two tables in the same db MySQL.

    The first page (chessmenu.php - chessmenu of the recordset object) displays a list of the types of the Exchequer in a MySQL table called chessmenu in the db of chess:
    The 3 areas are: itemID (auto_increment), itemName (IE. Marble) and itemType (M)
    (NOTE: in this test, there are 3 rows, marble, glass and theme - itemType is my field joining, M, G, and T respectively - which are all unique)

    I want this first page a link to the next page and send the URL = chessboards.php parameter? recordID = <? PHP echo $row_chessmenu ["itemType"];? >

    I created the second page (chessboards.php - chessboards recordset) and let the FILTER in the recordset as follows:
    itemType = recordID URL parameter

    When I run the first page, displays items appropriate, however, when I click on one of these elements (i.e. marble (M)) it does not display anything on the second page. I ran the TEST query on the second page in the recordset of filtering, and when I enter M, it displays the correct records (2 in total).

    They would then select the type of Exchequer of marble of the second page, which would then send them to the details page (3 pages total, so my comment about master, master, detail)

    What I am doing wrong? I send the incorrect URL parameter? Any help would be appreciated. I thought I was following the instructions in the TUTORIAL on this site:
    "If the recordsets is different, make sure the recordset on the detail page contains at least one column in common with the recordset on the master page." The common column is usually the record ID, column, but it can also be the join field from related tables. »

    BTW - the two fields of ItemType in the two Tables are the same (CHAR (1))
    Thank you

    Steve

    UPDATE: I figured out how to do this. Sorry for the useless posting.

    ANSWER: The above worked as is (I forgot to update the front page during the test after some change). To display correctly in the second page, however, DO NOT drag the fields as you would for a detail of the page. As always, the second page is a master page, create a dynamic table instead (this will allow you to have several lines instead of the method). The URL parameter will send the appropriate information to the dynamic table as well.

    See you soon.

  • Master detail pages

    mySQL, php, Dreamweaver, MEASURE

    I am studying different possibilities of an approach of Master Page in detail:

    How can we have a Master detail page in the SAME page?

    If and only if the latter cannot be done, we have the details of the Page in a popup. But when we close the popup without (after editing details) how can refresh us the parent window, so that new data can be updated?

    Is there a way to do a Master in retail in the same page using show/hide properties, so when the user clicks show details details will be displayed. (using spry maybe?)


    Thanks in advance

    "oicram" wrote in message
    News:fcbdnq$LD2$1@forums. Macromedia.com...
    > > using 2 sets of records, one for the master (all records), one for retail
    > >(1
    (> account)
    >
    > Can you explain a little more please, what happens then?

    You apply a go to detail Page serverbehavior to the content of the master
    Recordset (list), then you the second recordset with the filter parameter
    the go to details serverbehavior Page and apply a ' Show if recordset.
    no empty' content detail

    > > Of course, look at this document:
    > Spry master and detail region overview and structure
    >
    > But that does not mean I should let my recordset and move to a Spry
    > DataSet?

    No it's not, but you can do master/detail with Spry

    > And what not also implys that I need to have a filter / search also > using
    > Spry components?

    You might, but once you don't have to.

    > Case I have a traditional set of records but I only want to apply a show/hide
    > with
    > some possible effects of Spry...

    Of course you can, sorry I missed the part "IF and only if, the last solution.
    can not be done"and responded in any case.

    Joris

  • [ADF, JDev12.1.3] master / detail af:tables the link is handled by ExecuteWithParams: how to create a master report / detail in a loop on the lines?

    Hallo,

    I have a page with 2 legs and they both contains an af:table created by dragging an instance of VO in the user interface.

    The 1st tab uses a master VO while the 2nd uses a VO detail.

    Between 2 your, there is not a link of VO master / detail.

    Opening Details tab I update the secondary table by calling the method ExecuteWithParams of the detail VO instance (in a managed bean).

    I would now like to generate a report that loop on the master table and that, for each line of master:

    • He writes in the report;
    • loops of registration of details (which are based on the master record) and also writes the report.


    Could you kindly suggest me which is the best way to achieve that through a code to write in a managed bean?

    Here I am interested how do to loop through the data, not in how to write the report.

    Thank you

    Federico

    Yes it will affect the selected line. If you want to ignore try using this code

        DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("DepartmentsView1Iterator");
        ViewObject vo = iter.getViewObject();
        for (int i = 0; i < vo.getEstimatedRowCount(); i++)
        {
          Row r = vo.getRowAtRangeIndex(i);
          System.out.println("DeptId= " + r.getAttribute("DepartmentId"));
        }
    
  • Master-detail functionality between the regions of PL/SQL and IR possible?

    4.2.1

    THM 2

    Hi all

    We have two regions in a page. The upper region is a region of PL/SQL that lists the 5 best wages by Dept. This was not done using traditional reports because management wanted a "dashboard" as the look and feel that is already existing and what is happening in that it is a pl/sql block that has the sliders and the necessary HTML, CSS in there.

    Below that is an IR when the user clicks on the dept of region of PL/SQL, it will refresh the IR below to display all employees in this Department

    Top of the page shows region of PL/SQL

    EMP name Dept wage

    Emp1 10 10000

    EMP2 10 950

    Emp3 20 800

    The Dept field is a hyperlink.

    When we click on Dept on this region of PL/SQL

    The lower IR should be updated (without submit page)

    Output

    Emp1 10 10000

    EMP2 10 950

    It is a kind of master-detail relationship between PL/SQL and Report (Detail) (Master) area Interactive

    We can hyperlink in the SQL in pl/sql area, but you wonder how trap line and pass the dept id to the IR and get this region to refresh account?

    All suggestions from the experts?

    Thank you

    Ryan

    It is a way to pass the info in connection

    Perform the dynamic Action of the link column report

    The dynamic action can submit the session state value, and then refresh the IR.

    On either by the way, you must create dynamic PL/SQL region to solve this problem, see this

    APEX reports: layout custom with a column named (model line)

  • How to use createRowSetIterator with 3 level master-detail?

    Hi experts,


    I use Jdev 12.1.3 and I need to iterate over objects in view of the AM lines (I have 3 level master-detail).

    With this code, I had access to the VO parent and create an iterator:

    ViewObjectImpl viewObject = getParentVO();  
    RowSetIterator rsIterator = viewObject.createRowSetIterator(null);  
    rsIterator.reset();  
    while (rsIterator.hasNext()) {  
       Row row = rsIterator.next();  
       // DO what do you want in Row  
    }  
    rsIterator.closeRowSetIterator(); 
    

    .. .but I don't know how to create iterators according to the parent of the child

    Any idea?

    Best regards
    Jose.

    OK, suppose that a relationship of master-detail Department and employees of the HR db schema. The link to the view that defines the master detail between the tables looks like

    The name of the accessor is EmployeesView. In the t generate line interfaces, including the accessors

    Make the avlailable of the accessor to the VO clinet interface

    and now you can iterate the children lines as

    private static ADFLogger _logger is ADFLogger.createADFLogger (DepartmentsViewImpl.class);.

    public void dummyTest() {}

    get the first line of the departmetns

    Line first = this.first ();

    DepartmentsViewRow depRow = (DepartmentsViewRow);

    lines children handler for employees

    RowIterator empView = depRow.getEmployeesView ();

    iterate over employees of the Prime Ministry

    Line row2 = empView.first ();

    While (row2! = null) {}

    do something with line 2

    _logger.info ("Emp:" + row2.getAttribute (0));

    row2 = empView.next ();

    }

    }

    This method is implemented in the DepartmentsViewImpl class.

    Timo

  • master detail in obiee 11g report

    Hello

    I create report master detail in obiee 11g (11.1.1.6.5). I want to use it to navigate from one report when you click on the chart to another report that has tables and graphs in the same dashboard too.

    Can you please how can I do

    Hello!

    You have two options:

    First: Apply channel Interaction. You can click in your master detail report and automatically your second report will change.

    Second: Use action links.

    Look at this link: OBIEE 11 G - master detail | GerardNico.com (BI, OBIEE, data warehouse and OWB)

    Pls mark so useful

  • Read only the terms - master detail

    I have a page with a master detail

    I created a read only condition and the master passed to read-only, but the detail does not...

    Why? Is not possible to put the retail component 'read only '?

    Hello

    If I understand, you want to the form is editable when the user is an admin user

    and read only when the user is a normal user.

    You can solve this problem by the use of dynamic actions

    to enable and disable some elements of this region (s)

    make this condition (standard user = admin = enable and disable)

    Another solution

    When do the master / detail with the wizard choose change details on a different page

    On the link change, you can set a condition (visible only when the user is ADMIN)

    Kind regards

    Frank

  • How to display two dept details at the same time in the form of master-detail

    Hi Experts

    In Forms 6I, using the Scott schema, table DEPT & EMP has created a simple form of master-details relationships.

    Currently when user Dept Block shows all lines dept and EMP block display data based on the selection of deptno.

    It's only a deptno both.

    If the user in the No. 10, block EMP Dept will display all the data related to 10

    If the user moves to 20 Deptno, block EMP will display all the data related to 20.

    And so on.

    But our requirement, what happens if we want to see the 10 and 20 at once (both several deptno)

    Thank you

    Thanks for your information.

    In fact, our requirement is only to display data, he own be no matter what update of data/insertion.

    So below and working for our requirement

    • Remove relationship
    • Additional box on master block.
    • Write code cursor on the box selection - which will fill/clear data block information based on the checkbox selection on block Master.

    Oracle Apps training: how to display two Department employee details at the same time in the master/detail relationship

  • Master / details enable and disable

    Hi all

    I am developing web app using jdeveloper 11.1.2.0

    On my page, I have a paintings of master / details
    I want to disable a field in the secondary table when a particular value in a field (in the drop-down list) is selected in the main table

    Thank you

    I did not understand you?
    ADF is smart enough to recognize the line currently selected in the master.

  • Master / detail Edit - any form of detail is displayed on the page?

    I have a simple application, built on a master of table BPR_PROC (a single column, PROC_NM). And a secondary table BPR_RUN (PROC_NM columns and a few others). There are only 4 pages: (1 House, Master 2, 3, 4 Login details). I did this as a standard form - create selection master / detail.

    When I create or edit a master (PBR_PROC), the mounting happens on details page - well, very well so far. But no form is displayed with the detail rows exist (according to the BPR_RUN of detail table) or whatever it is for me to go into details. (I'm sure I've done app M - d. before and the change of details form appears at the bottom of the details page but I am noit do here).

    Question: How can I fix to add / modify detail rows?

    WS: APEX_EXAMPLES_01
    User: demo
    PW: demo
    Appl: BPR_991203

    Thank you
    Howard

    (For later: Question: is there a simple way to do the master editing on master rather than on the detail page?)

    Howard (in training) wrote:
    Ah! I've recreated the problem - this time on pages 12 & 13 and as before

    the point value / Expression 1 Is NOT NULL column condition on the detail region seems to lack a little:

    So, it's a "bug"?

    Probably something to do with the creation of forms of master-detail using ROWID instead of a real process of generated by the wizard of PK. APEX theory. PKs relational DB meaningful, immutable like immutable PKs. Despite the bug condition region of detail, is why your column editable PROC_NM if it is used as the PK? It is a good way to break things. (I created now orphaned detail rows).

    If you want to take advantage of the built-in features of APEX as ARP and MRU wizard-generated process, then go with the flow: use surrogate keys. Otherwise you'll spend your time to write a lot of code manual.

  • relationship master detail

    Hello
    We have 3 blocks the relationship-based master detail
    Block A - header block
    Block B - block (block A child) child - multi block
    Block C - child of block B - block multi

    Block A
    Block C is a unique display form which is accessible when the button is triggered by the table of contents that block A and B are present on

    The user will enter data in block A and B and thenwill record data both

    Question
    (1) for a record in the block B - multiple records that may be present in the C block.
    We try to use an insert statement before the block B and explicitly to insert records into the table of block C. This approach is appropriate.
    (2) what are other possible solutions. -in terms of ttrigers used and at what level.

    Please answer as soon as POSSIBLE.

    Concerning
    SR

    948611 wrote:
    Hi Andreas,

    For the first part, Yes, it can be more than one record in the B block. What might be the appropriate trigger / level in this scenario.

    Hi SR
    If you want to insert the record in another table (table block C) after laying on a table (table B block), you can use the trigger for INSERTION posterior to the level of the blocks (block B), it fires after each record insertion.

    Hope this helps

    Hamid

    Mark correct/good to help others to get the right answers. *

Maybe you are looking for