AF:panelTabbed master / detail not using af:iterator Houston-34014 error

Hi all

I'm new when it comes to the ADF and I run a minor problem for my first use of the ADF case.

For starters, I'm using JDeveloper 12.1.2.

The use case is to display a list of views/tables/applications that we created in an af:showDetailItem inside an af:panelTabbed.  Then, within another af:showDetailItem, I to display different versions/versions of the selected object.

I have two entity objects:

ChiefObjectEO:

Object PK VARCHAR2

Description VARCHAR2

Category VARCHAR2

ChiefObjectFunctionAreaEO:

Object PK VARCHAR2

Functional_Area VARCHAR2

I created an Association using ChiefObjectEO.Object and ChiefObjectFunctionAreEO.Object as my relationship between the entity source and destination objects.

ChiefObjectFunctionalAreaJoinVO, I created an object from view between the two men.

I have a second view object which I created from SQL

ChiefPerforceFileReviRelVO:

Object VARCHAR2

ChangelistId BigDecimal

RevisionDate TimeStamp

Version VARCHAR2

Description VARCHAR2

I created a link between objects in two (ChiefObjectFunctionalAreaJoinVO and ChiefPerforceFileReviRelVO) with a 1 to * relationship by using ChiefObjectFunctionalAreaJoinVO.Object and ChiefPerforceFileReviRelVO.Object as my relationship between source and destination objects.

I added my af:panelTabbed and af:showDetailItem components and put my ChiefObjectFunctionalAreaJoinVO inside an af:panelCollection like an af:table of unique selection, sortable and filterable.

I added an other af:showDetailItem and put my ChiefPerforceFileReviRelVO (this was dragged like a child of the ChiefObjectFunctionalAreaJoinVO in my DataControl ensuring used the display link) as a read only the selection table.

I ran my application and appearance wise, everything seems fine.

pageload.png

However, if I select the second line in my ChiefObjectFunctionalAreaJoinVO I get this error message:

error.png

Now if, before selecting the second line, I go to my tab that contains my data ChiefPerforceFileReviRelVO (which seems in good condition) and then back to my tab original and select the second line of the error does not appear.

However, this error to appear on the first line and then at any time after the extraction of new data.  If for example, the error appears in the 1st record and my fetch size is set at 25, so it will then appear on the record of 26, etc..

I am looking for help on what to do about this error.  The strange thing that ignores the error completely the view link still works.  If the error but I can go to my secondary tab and everything is updated very well so I'm lead to believe that the link does not work properly.  Even when I get the error and return to the first record all shows correctly in the second tab.  It seems that I'm missing a link initial when loading the first first record as well as brand-new extractions just on the initial line.

This works well.  That's why I'm confused.  As I mentioned.  The error appears only when the records are retrieved initially and that it happens to first choose a line.  If the load 25 first, I click anywhere I get the popup that there is an error on the first record.  I click anywhere else on any other time and no errors appear.  Then the charge of 26-50, I select a line that the error appears indicating the 26th record, even though I chose the 2nd record.  charge of 51-75, the error in the 51st record.  Despite the error arise data is always display and represented properly in my child table.  So the only one who is actually wrong is why is the error appear?  All data and related links are working properly!

Edit: Just for curiosity I removed my child table completely.  I then select a record after loading and the error still appears.  So I don't know if that leads anyone to any kind of suspicion to help me, but it didn't take not the fact that the child table may have nothing to do with it.  I will check my view link is the only thing I can think of is the problem.

-Final Edit for the fix:

I hope someone can explain to me that I finally understood that.  I am all what they way back to recreate my VO joined.  In the 'old' VO time attribute of the object of the OS were called 'key '.  I only had one of the attributes of the object marked as a key to re-create my VO.  On this and recreate my link I never got the error again.  So why do put two keys in my VO attributes cause me this kind of problem?

Tags: Java

Similar Questions

  • Navigate a page master detail editing a page using detail rowKey

    Hi all

    I use JDev 11.1.1.0.1.

    A few cases test using HR schema:
    I have 2 pages countryLocation.jspx and departements.jspx with a control flow "deptFlow" between them.
    countryLocation.jspx is a master/detail page using country as a form of master and places like detail Table.
    Locations table is surrounded by an af:panelCollection. In the pane toolbar, there is an af:toolbarButton with "deptFlow" as an action. Button using 'table1:locationId' as partialTrigger.
    The departments.jspx page is also a master-detail with sites as a form of Master and departments as an array of detail.
    I do not support pods in the pages (should I?).
    When I click the button change, I want to see all the departments of the location I have selected table of localities in the countryLocation.jspx page.
    Unfortunately, this isn't the behavior.
    If I choose 'US' as a country and LocationId 1700 (Seattle) when I click on the button, it goes to departments.jspx Edit, but it shows LoactionId = 1000 (Rome - Italy).
    What Miss me?

    Thanks in advance.
    Paulo Domingues

    What technology do you use for the Service of the company (in the template)? ADF business components?
    If it's BC of the ADF, what type of departments use VO were based on the departments.jspx? It is a child of the locations, or is it a use of high level in the Application Module data model?

  • master detail report

    I want to create a master detail report using CF 10 generator, but I can't find the option.

    I would like to know do I insert a sup in detail band report to generate the master details report.

    If this is not the case, can you please indicate what is the procedure to build the master details report by using CF 10 generator.

    Your information and help is much appreciated,

    Kind regards

    iccsi,

    iccsi wrote:

    I would like to know do I insert a sup in detail band report to generate the master details report.

    Yes.

  • Report master-detail or list popup selection on LOV

    Master/detail report
    Using Popup LOV of a column in DETAIL. Why the RETURN_VAUE displays rather than the DISPLAY_VALUE? I need to display ITEMNO. It sounds like a problem with a tabular presentation?

    LOV is
    select ITEMNO display_value, ITEM_ID return_value
     from SH_ITEM
     ORDER BY 1
    Table
    *SH_ITEM*
    ITEM_ID
    ITEMNO
    ITEM_DESC
    Is actually long version that I really want
    select ITEMNO || ' - ' || ITEM_DESC display_value, ITEM_ID return_value
     from SH_ITEM
     ORDER BY 1
    Published by: userRRRYB on July 2, 2010 07:06

    Hi Alexandra,.

    In APEX 4.0, Popup LOV key support has been added to the built-in tabular feature (named for and based query LOVs), so now you can view the DISPLAY_VALUE according to needs. LOV Popup displays only the RETURN_VALUE, as you said, so it will not be your needs, but the new Popup LOV key should do the trick for you. If you change the attributes of a column in a table, update the column in question to the value of the point of his ' display as ' Popup LOV key (named LOV) or Popup LOV (query based LOV) key.

    Kind regards
    Hilary

  • Master - detail

    I have a problem in forms

    IAM having a master detail kickbacks block
    ORDERMAIN (orderno - primary key, total, orderdate)
    ORDERDETAIL (orderno - foreign key, itemcode, amount, quantity, rate, tax)

    at the level of form, I created master detail block using two table on orderno above as a join key
    I created a vertical canvas (outside canvas for block master detail) where iam having keys in order to
    run record, search for records (F7), display (F8) records, delete records etc..

    I would be able to save and search for records
    but when iam trying to run display records it is not executed

    See my code below

    button (search records)
    ----------------------------
    clear_form;
    go_block ('ordermain');
    enter_query;

    button (see the records)
    ----------------------------

    GO_ITEM('ORDERMAIN.) ORDERNO');
    execute_query;

    I mean iam getting this message:

    Press F8 to run

    Try to make the property button FALSE navigable to keyboard and mouse navigable FAKE.

    Please check the answer if it helps

  • ORA-16797: database does not use a server parameter file

    I can see newspapers apply pending data. But in the dataguard alter journal generates error ORA-16797: database does not use a server parameter file

    Error message in the logfile dataguard
    -----------------------------------

    DG 2010-03-23-17: 0 2 714415739 MICHAEL 46:45: GET_DRC finished
    DG 2010-03-23-17: 714415740 3 1000000 MICHAEL 46:45: GET_SITE: success. (len = 464)
    DG 2010-03-23-17: 714415740 3 1000000 MICHAEL 46:45: GET_SITE finished
    DG 2010-03-23-17: 2000000 3 714415741 MICHAEL 46:45: GET_SITE: success. (len = 481)
    DG 2010-03-23-17: 2000000 3 714415741 MICHAEL 46:45: GET_SITE finished
    DG 2010-03-23-17: 0 2 714415742 MICHAEL 46:45: CTL_GET_STATUS sent to the ANZPRD site for treatment
    DG 2010-03-23-17: 0 2 714415742 MICHAEL 46:45: CTL_GET_STATUS finished
    DG 2010-03-23-17: 47:32 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16797: database does not use a server parameter file
    DG 2010-03-23-17: 47:32 0 2 704706097 CTL_GET_STATUS operation cancelled during phase 1, error = ORA-16797
    DG 2010-03-23-17: 47:32 0 2 704706097 CTL_GET_STATUS operation cancelled during phase 1, error = ORA-16797

    QL > SELECT MAX(SEQUENCE#), THREAD # V$ ARCHIVED_LOG GROUP THREAD #;

    MAX(SEQUENCE#) THREAD #.
    -------------- ----------
    2, 2000
    2060 1

    I did the steps

    Create spfile pfie
    Shutdown
    Started by spifile

    No luck. Journal of applied began. but I see the same error in the datagurd log file

    Here's what it should look like:

    SQL> show parameter pfile
    
    NAME_COL_PLUS_SHOW_PARAM                                                         TYPE
    -------------------------------------------------------------------------------- ------
    VALUE_COL_PLUS_SHOW_PARAM
    ---------------------------------------------------------------------------------------
    spfile                                                                           string
    C:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILEORABASE.ORA
    SQL> 
    

    My guess is that the file is not in the right place. Check the location and your ORACLE_HOME environment variable.

    It should be in $ORACLE_HOME/database for windows, $ORACLE_HOME/dbs for real operating systems.

  • Master / detail. Third do level not updated, if the second tier is not returned

    We have three level model master / detail.

    The first and the second level is 1 to 1

    The second and third are 1 to *.

    The second level is just an empty container from now and should not be displayed to the user. But it takes to get the first level to the third level.

    If make us only the first and third level tabulated, the iterator behind the third level table is not correctly being updated, actions.

    If we make on the other hand, the second-level table, the iterator for the third level table IS updated, to action - such as changing the current line.

    We worked arround by 'hide' the second table level in a group separator collapsed. Is there another way to get arround this problem?

    Top-level iterator:

    < iterator lie = "First" RangeSize = '25'

    DataControl = "AMDataControl" id = "FirstIterator".

    ChangeEventPolicy = "ppr" / >

    Second level iterator:

    < iterator lie = "Second" RangeSize = '25'

    DataControl = "AMDataControl" id = "SecondIterator".

    ChangeEventPolicy = "ppr" / >

    Third level iterator:

    < iterator lie = "Third" RangeSize = '25'

    DataControl = "AMDataControl."

    ID = "Third" ChangeEventPolicy = "ppr" / > "

    Not sure, but maybe you can use custom (for the first table) table selectionListener, I you must refresh the second iterator of pageDef...

  • Master / detail prevent insertion line detail if the master does not exist

    Hello

    I have a complex page that has several pairs of master / detail on it. I have what should be a simple problem to work around that I can't understand. On each table (master or detail), I have a button create header and a delete button in each row. I have a few questions, I can't seem to cross.

    1. how to turn off the details create button if there is no master of the line or one has not been selected by the user? (At the moment you can create detail without a valid master line rows)
    2. how to disable the removal of main line button, if there is (or not) details of current lines?

    I think I only got 2 having a transient attribute on the main line that uses groovy and the accessor to link views to count the detail rows. It seems to work, but if there is a better solution, cleaner I'm all ears. I can't seem to operate 1 little matter what I try.

    Thanks for any help you can provide.

    Hello

    You can use iterator estimatedRowCount to disable the button of

    disabled="#{!(bindings.mastervoIterator.estimatedRowCount ge 0)}"
    

    and use the currentRow determint property if the current row is selected as

    disabled="#{!(bindings.mastervoIterator.currentRow ne null)}"
    

    Thus, the combination will be as follows

    disabled="#{!(bindings.mastervoIterator.estimatedRowCount ge 0 and bindings.mastervoIterator.currentRow ne null)}"
    

    I hope this helps...

    Kind regards.

  • 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

  • Form master-detail recording detail does not with ORA-20001

    Hello

    I have a master/detail form, the detail record has a timestamp field that I people using systimestamp via the default, it is a single field of view and everthing records very well. But if I change the format of the timestamp field via the DD-MON-YY HH24 attrubutes column, I get the following error on save

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-20001: find the invalid timestamp value, please check the timestamp format.

    Someone knows what's goin?

    Thank you...

    Looks like your display only column is based on the database column.
    If this is the case, you have little control for it in ApplyMRU.
    What you need to do is
    a. keep the TimeStamp column hidden with any mask format
    b. Add the form as a table with the format mask you want to display a column of data not

    In a Word, the DB column is in the proper format as required by the ApplyMRU but you display for users of the truncated version of that.

    See you soon,.

  • Using wizard to create forms of master / detail

    Hi guys,.

    I'm using JHeadstart 11.1.1.3.35 and having major problems trying to create records of master / details in a layout of the wizard

    Department Master (shape, style Assistant, insert enabled, new line on entry)
    Group of retail employees (form, data dependant, allowed insert, update has allowed)

    Using schema HR with a view link between services and employees

    Main group Department (Assistant)
    = > Region of the element (all the fields of the Department)
    = > Region container
    = > Region group (Group of retail employees)

    (NB - if I used a group of the region as step in the wizard at a higher level, the following error occurred during the generation which is why I wrapped it in a container of the region...

    [NewDepartmentNewEmp.jsff, default/pageComponent/formRegionGroup.vm] Journal of speed [error] method pushModelPointer threw the exception of reference $JHS for model default/pageComponent/formRegionGroup.vm at [1,1]
    [NewDepartmentNewEmp.jsff, default/pageComponent/formRegionGroup.vm] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'pushModelPointer' in class oracle.jheadstart.dt.jag.engine.velocity.JagEngineFacade threw exception class java.lang.NullPointerException: null

    The problem is that the detail of employee group does not start in design mode.

    I tried the create() method substitution in DepartmentsImpl

    protected void create (AttributeList attributeList) {}
    Super.Create (AttributeList);

    NewEmployee RowIterator = this.getEmployees ();
    NewRow row = newEmployee.createRow ();
    newEmployee.insertRow (newRow);
    }

    I also tried the override of the executeQueryForCollection method in detail (saw this solution suggested in another post on creating a form-form master / detail)

    protected void executeQueryForCollection (Object, object,
    Object [] bindParams,
    int i) {}
    super.executeQueryForCollection (object, bindParams, i);
    If (getEstimatedRowCount() == 0) {}
    Line = createRow().
    insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    }
    }

    Nothing works well. I want to be able to use a wizard to create a record of master / detail in presentation view shape-to-shape. Is it possible, using a detail group, or do I have to create a separate view object that contains two master entity objects / detail in it and then just use the only VO in the Group Assistant of JHeadstart.

    This seems a very basic requirement, I clearly do something wrong!

    See you soon,.
    Brent

    Brent,

    To start in design mode, you must create the Group NewDeptEMp as a top-level group, so he will have his own taskflow. You can then define the new display line on the input property.

    In your wizard NewDept, you create a group of the region DIRECTLY under the container of the separatePages region, check "Include as ADFc region" then select the NewDeptEMp group.

    To work around the error that you got during the generation of the group in the region as an immediate child of the container sepeartePages, use the following code to formGroupRegion.vm:

    # revision_history
    # Steven Davelaar 28-sep-2011
    Additional support # 1.2 for the group in the region as child of separatePages region container
    Team JHeadstart # 30-sep-2006
    Historical revisions # 1.1 added, the basic version is 10.1.3.0.97 (SU1)

    #if ($JHS.page.itemRegion)
    #JHS_PARSE ($JHS.page.itemRegion.templateIdentifier $JHS.page.itemRegion)
    #elseif ($JHS.page.regionContainer)
    #JHS_PARSE ($JHS.page.regionContainer.templateIdentifier $JHS.page.regionContainer)
    #elseif ($JHS.page.groupRegion)
    #JHS_PARSE ($JHS.page.groupRegion.templateIdentifier $JHS.page.groupRegion)
    #end

    Steven Davelaar,
    Jheadstart team.

  • Updating of the master/detail does not work after the failure of the validation

    After validation of the judgment of the further processing of a page page page master detail, I get the error message Oracle depending on the display of the detail portion:

    < code >

    ORA: 01445: cannot select ROWID, or sample, a view of join without key preserved table.

    ORA-06510-PL/SQL unhandled exception defined by the user.

    < code >


    Clues as to why this might happen?  The master of the page displays fine as well as the validation error message personalized appropriate. It's just part of detail (from SQL-based report) that is causing the problem.  I use either a ROWID.


    Thank you!

    Just an info for all those who may have this same problem in the future.  I corrected the error and it had nothing to do with the ROWID or views or something like that.  Under the section of Page rendering when you set the definition of the region in the source section, I included the "order by" clause in my SQL statement.  This was the cause of my ORA-01445 error!  When I removed the clause of the definition of the source, and instead included in the attributes report by checking the box of the appropriate column sorting (which allows the apex generate so for me), the error has disappeared!  The error message Oracle NEVER would have given me a clue to what caused the error.  I joined just thinking 'what if I take the order by clause.  What's a flukey fix!

  • Master detail form can not insert foreign key

    Hello

    I Master detail form, in the data block master, I Header_ID primary key and it is generated through trigger on the main table and this field is found in the data block but is hidden on the Web, this Header_ID is a key in another table, on the form, I created the main form and has also created the good relationship. now, when the new record is inserted, the Header_ID in the main table is filled properly while in the secondary table that goes with the NULL value. I have no idea how to solve this problem, any help will be appreciated

    Rather than use a database trigger, select INSERT before triggering in the basic data block to fill the HEADER_ID.

    In the before INSERT trigger, you'd have a line like:

    select seq.nextval into :MASTER.HEADER_ID from dual;
    

    When you do this in the before INSERT trigger will fill the element in the block MASTER that feeds in turn the question into the DETAILS or blocks.

  • problem in the form of master-detail when you use the ADF table for detail

    Hello

    jdev version - 11.1.2.1.0


    I create master shape detail using datacontrol drag as ADF master shape secondary Table.


    Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.

    and other show line that the previous record data based on the master.

    problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.



    Thanks in advance

    Hello

    If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines

    Frank

  • Scroll position does not reset the master/detail

    (I posted this in another section, but I thought I should post it here too).

    I work with master/detail and I have the following problem:

    When I scroll to the bottom of a retail box, and then click another item in the main column, it shows the bottom of the new retail area.  This is not what I want.  When I click on an item in the main column, I want to see the top of the new retail area.  How can I get there?

    Help, please!  Thank you!

    SC

    I would like to add a for the link instead of a javascript onclick event: funtion. I noticed that in my first answer, but let him slip so far there

    So, instead of this:

    
    
        
    {content}

    Try this:

    
    
        
    {content}

    OR try this: (removal of the function of the head and placing him in an event onclick for the link.)

    
    
        
    {content}

Maybe you are looking for