ADF Table sorting not working for  newly inserted rows

Hi,
I am using Oracle Jdeveloper 11.1.1.6.2
I am trying to sort the table after inserting the mew rows using ADF Table UI sort option, But the newly inserted rows are not getting sorted.
The code i am using to add a row is:
        ComplianceLibraryAMImpl am = getDataControl();
        EmKeywordVOImpl rep = am.getEmKeywordVO1();
        NameValuePairs nvp = new NameValuePairs();
        nvp.setAttribute("KeywordName", keyword);       
        Row row1 = rep.createAndInitRow(nvp);
        rep.insertRow(row1);After this addition we are doing ppr on the table and then trying to sort using sort icon in table.
But the newly added rows are not taking part in sort.
What am i missing?
Thanks,
Tripuresh

This is the expected behavior. Check bug 9109010 - newly added and unsaved rows don't participate in sorting as per design. Try saving the rows and then sorting.
Regards,
Aditya

Similar Messages

  • ADF table sorting not working - Possible Bug

    Hi all,
    I'm getting this error when I tried to sort a table.
    <06/11/2012 09h14min53s BRST> <Warning> <EclipseLink> <BEA-2005000> <2012-11-06 09:14:53.839--UnitOfWork(28365105)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Column "clientes.nome" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause.
    Error Code: 8127
    Call: SELECT COUNT(id) FROM "clientes" ORDER BY nome DESC
    Query: ReportQuery(referenceClass=Clientes sql="SELECT COUNT(id) FROM "clientes" ORDER BY nome DESC")>
    <06/11/2012 09h14min53s BRST> <Warning> <EclipseLink> <BEA-2005000> <2012-11-06 09:14:53.917--UnitOfWork(25154371)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Column "clientes.nome" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause.
    Error Code: 8127
    Call: SELECT COUNT(id) FROM "clientes" ORDER BY nome DESC
    Query: ReportQuery(referenceClass=Clientes sql="SELECT COUNT(id) FROM "clientes" ORDER BY nome DESC")> I'm using MSSQL server and I tried the same code with MySQL and everything worked.
    I really don't know waht to do, anyone have faced this problem?

    Yes,
    Column "clientes.nome" is invalid in the ORDER BY clause because it is not contained in either an aggregate function or the GROUP BY clause.I've create an Aplication using EJB 3.0 and ADF faces. The table on view layer I've created dragging and dropping the list from DataControl.
    When I run the app, the table load fine but it's not sorting the table and on log the server give that error message posted before.
    This error is coming only when I use MSSQL server, on MySQL it's working well.
    Edited by: 969768 on 06/11/2012 04:14
    Edited by: 969768 on 06/11/2012 04:18

  • Filtering not working for newly added child objects in master-detail table

    Hi,
    I am using Jdeveloper 11.1.1.4 version.
    Problem scenario:
    Filtering of records is not working for newly created child objects in a master-detail scenario.
    Steps to reproduce this issue using HR Schema (using LOCATIONS and DEPARTMENTS table ) :
    1. Create Business components (EO's & VO's ) for LOCATIONS & DEPARTMENTS table)
    1. Create a .jspx page and insert a readonly master table of Locations
    2. Insert a child table (inline-edit table) of Departments and enable filtering
    4. For the child table, drag and drop CreateInsert operation as a toolbar button .
    5. Create a new child record using the toolbar button and enter data .
    6. Filtering on the newly created child record's attributes does not work.
    Please note that the same filter works for existing child records.
    Any suggestions for resolving this issue?
    Thanks,
    Vikas

    Found from Fusion Developer's Guide the following snippet about QBE functionality :
    "+When you create data controls, all data collections will automatically include a Named Criteria node with an All Queriable Attributes criteria. This is the default view criteria that includes all the searchable attributes or columns of the data collection. You cannot edit or modify this view criteria+. "
    So, the question is if the implicit view criteria cannot be edited, how else to set the query execution mode to "Both" ?
    Shouldn't ADF BC support this by default? Is this a bug?
    Note:- If you create a maste-detail table using POJO datacontrols, filter works correctly for newly created child records also .
    This seems to be an issue with ADF-BC datacontrols only.
    Thanks,
    Vikas

  • Command Link in ADF table is not working/ PPR event not getting fired

    Hi All,
    I am having ADF Table, in that one column is with command link if click on command link, it is not navigating to corresponding page or method of a bean. If i give same command link out of the table it working fine, this issue i am facing is in IE9.
    if i use IE in compatibility mode the links works fine, even in IE8 version also.
    Browser: IE 9
    Jdev version: 11.1.1.5.0
    I tried all possible things, but nothing workout for me.
    showPopupBehavior not working in IE9 for af:table buttons (jdev11.1.1.5.0)
    Partial page rendering not working in ie9
    Command Link in ADF table is not working
    Thnks

    Hi,
    please file a bug if you have a customer support contract and provide a testcase
    Frank

  • Select All in a table does not work for Drag and Drop

    Hi. I am using Jdeveloper 11.1.1.2 but have also reproduced in 11.1.1.3.
    I am trying to implement drag and drop rows from one table to another. Everything works fine except when I do a Select All (ctrl-A) in a table, the table visually looks like all rows are selected, but when I try to click on one of the selected rows to drag to the other table, only the row I click on is dragged.
    I tried setting Range Size -1, fetch mode to FETCH_ALL, content delivery to "immediate" but nothing works.
    I even have reproduced not using a view object but just a List of beans with only 5 or 10 beans showing in the table.
    Does anyone know how to get Select All to work for a Drag Source?
    Thanks.
    -Ed

    Frank-
    OK, thanks for looking into that. I also submitted this service request, which includes a simple sample app to demonstrate the problem:
    SR #3-2387481211: ADF Drag and Drop does not work for rows in table using Select All
    Thanks again for the reply.
    -Ed

  • Table Sorter Not working in EP 7.01

    Hi All,
    The table sorter stopped working in ep 7.01.
    Can anyone comment why?
    Are there any notes or patches to be applied?
    Thanks and Regards,
    Nuzhat

    Hi Shanti,
    Thanks for replying.
    I am working on WD for Java.
    Can you please give me your table sorter Java file?
    I think there may be issues in versions.
    Previous server was ep 7.00 and now when code is moved to ep 7.01 sp05 patch 1, the table sort doesnt seems to work. even though I checked all the codes are there in the new system.
    Thanks and Regards,
    Nuzhat

  • Command link in adf table is not working..

    Hi All,
    I am having ADF Table, in that one column is with command link and,if click on commnad link it is not going to coorsponding action or actionListener methods of bean. If i give same command link out side of the table it working fine.But i have to pass some perameters on click of button.
    I am getting same problem in many places , if i delete the page and page-def files again if i create some times it is working but some times not working. Is there any specific reason for this.Following is the code snippet...
    <af:column sortProperty="GlobalDealId" sortable="false"
    headerText="#{bindings.DsaDealsResultsVO1.hints.GlobalDealId.label}"
    id="c8">
    <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="#{pageFlowScope.editProfileCompleteness.sample}" immediate="true" partialSubmit="true">
    <af:setActionListener from='"#{row.GlobalDealId}"'
    to='"#{pageFlowScope.globalDealId}"'/>
    <af:setActionListener from='"#{row.CustName}"'
    to='"#{pageFlowScope.custName}"'/>
    <af:setActionListener from='"#{row.IsSaDeal}"'
    to='"#{pageFlowScope.isSaDeal}"'/>
    </af:commandLink>
    </af:column>
    Even i tried with out immediate="true" partialSubmit="true" also.
    And i set ChangeventPolicy = ppr for Iterator in page defnation file.
    Awaiting for ur reply.

    Hi,
    the real problem of the original poster seems to be <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="createMDM" immediate="true" partialSubmit="true"> having immediate set to true in which case the request goes from restore view to render response. You usually use immediate=true on a command item to cancel an action (bypassing all the other JSF lifecycle steps).
    Peter551059,
    you don't give us much information about your case. So if the problem is IE9 and you verified IE9 is supported for the version of JDeveloper you use, then - in case you have a support contract - my best advise is to file a service request and have support looking at it just in case you hit a defect that should be filed as a bug
    Frank

  • Can you help with Tcode to fill this SETUP table? not working for me.

    Hi,
    For the datasource 2LIS_11_VASCL (SD Sales: Schedule Line Item), I need to fill the Setup Tables via OLI*BW
    I understand the * to be the application number, which in this case it is 11 but I get a message that OLI11BW does not exist.
    1. Can you  help me with the tcode to fill the setup table for 2LIS_11_VASCL?
    2. Since there are several datasources with the same application number 11, how do I fill only 2LIS_11_VASCL without filling the others:
    2LIS_11_VAHDR                     Sales Document Header Data
    2LIS_11_VAITM                     Sales Document Item Data
    2LIS_11_VAKON                     Sales Document Condition
    2LIS_11_VASCL                     Sales Document Schedule Line
    2LIS_11_VASTH                     Sales Document Header Status
    2LIS_11_VASTI                     Sales Document Item Status
    2LIS_11_V_ITM                     Sales-Shipping Allocation Item Data
    2LIS_11_V_SCL                     Sales-Shipping Allocation Schedule Line
    2LIS_11_V_SSL                     Sales Document Order Delivery
    Thanks

    Ok,
    I tried that and it basically bring you to OLI7BW as suggested above.
    1. At this point, how do you know which of these it is actually filling:
    2LIS_11_VAHDR Sales Document Header Data
    2LIS_11_VAITM Sales Document Item Data
    2LIS_11_VAKON Sales Document Condition
    2LIS_11_VASCL Sales Document Schedule Line
    2LIS_11_VASTH Sales Document Header Status
    2LIS_11_VASTI Sales Document Item Status
    2LIS_11_V_ITM Sales-Shipping Allocation Item Data
    2LIS_11_V_SCL Sales-Shipping Allocation Schedule Line
    2LIS_11_V_SSL Sales Document Order Delivery
    2. Also, what does it mean when after running OLI7BW wide, with no restriction on my system, still rsa3 shows no records for 2LIS_11_V_SCL?
    Any other way to confirm that there may not be any data in 2LIS_11_V_SCL?
    Or any way, to make an entry which reflect in 2LIS_11_V_SCL so that I can verify if OLI7BW actually fills the setup table?
    Thanks

  • ADF dependent dropdown not working for me

    I used the following example
    [http://ranajitsahoo.blogspot.com/2008/05/how-to-implement-dependent-drop-down.html]
    I can not get the dependent employee list to populate.
    I tested my emplist object from the app module tester and the values were retrieved after I input my parameter for deptid
    This is what I verified:
    Departmentlist properties -- autosubmit = true, id=empdeptid
    Emplist properties -- partial triggers = empdeptid
    Page Def properties:
    Bindings
    Execute with parameters was added
    iterator is Emplistiterator bind value = bindings.EmployeesView1DepartmentId.inputValue
    Executables:
    invoke action was created binded to executewithparms and placed before the emplist
    refresh was set to render model
    Can anyone see anything that i missed?

    Frank,
    Thanks. I was able to find one of your blogs and get my drop down boxes working.
    I'm not sure I totally understand this piece of code
    OperationBinding opBindingEmployeesLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    Can you tell me what it is doing??
    Thanks so much

  • Initial filling of logistic table is not working for Volume Tracking

    Hi,
    I have set up the TSCA 12B scenario for volume tracking. When starting the initial filling of the logistic tables the system recognizes the composition correctly (log file is OK). However the result is that table CCRCT_EHS_COMP is not filled at all and the table CCRCT_EHS_COMP_REG is filled correctly. Has anyone experience what could be the reason that table CCRT_EHS_COMP is not filled?
    Thanks,
    Paul
    I found the solution. There are 2 different version of determining the composition for TSCA 12B. I changed to the other one and the problem was solved.
    Edited by: P. Hensgens on Feb 21, 2012 1:17 PM

    Hi,
    You have to debug the entire system behaviour , the approval process using the second approver.
    As first step , please check the security level of the second approver. Restart of workflow is based on the security level of the approver.
    you can find the parameter for security level in the personalization tab of the user .
    there is one function module  which determines wether the workflow should be restarted (or) not.
    i do not remember the exact name of the function module.
    1)start transaction se37
    2)enter bbpwflrestart*.
    3) system will return a number of function modules , of them one function module determines wether to restart the workflow (or) not.
    Please check what does the above function module return for the user and the shopping cart , there will be one parameter 'restart' which triggers the start

  • Global Temporary table is Not working For Pdf Reports

    Hi all
    we are using oracle db-10g, developer suite-10g.
    While generating the Report for the satisfying several conditions we are fetching the data into
    Global temporary table
    On commit preserve rows
    from this temp tables excel is generated properly. but pdf is not generating can anybody exaplain why it is not generating and what to do for that
    Thank you

    query and view are not possible
    here i am giving one of the requirement
    my project is belongs to inventory project.
    report should be generated on the different selection criteria like
    1)user can select one or more product codes
    2)for that product code one or more item codes can select
    like this so many different selection are there more than 12 selections from different tables
    For this each different selection product code into gtt_prod_cd and item_cd into gtt_item_cd. after that performed the query and in where clause we are comparing the values with gtt.
    can you please suggest me what to do for PDF Reports

  • Dynamic Table Sorting not working going from MX to 8

    I have a table with a repeat region and had buttons to sort
    any of the columns on the page.. This was working in Dreamweaver MX
    but since upgrading to 8 it doesn't.
    The way I did it in MX was to create two variables:
    varName - DateSubmitted (default value which is db field
    name) - Request.QueryString("order") (runtime value)
    varSort - ASC (default value) - Request.QueryString("sort")
    (runtime value)
    And my SQL statement:
    SELECT *
    FROM TableName
    ORDER BY varName varSort
    How can I dynamically sort tables in Dreamweaver 8??
    Thanks much

    In many cases you are better off sorting on the client side
    JS rather than server side. Just search the web and you'll find
    plenty of code examples.

  • ExcuteQuery does not return the newly inserted row in the database

    Jdeveloper Studio Edition Version 11.1.1.4.0
    I have a  use case where i insert a row in the database (without commit) and re-query the iterator to see the data in the jsf page. This was working file till we were using a directly the data control. Now our data control is inside a primary data control and it has stopped working. We don't see the inserted record in the page. Just to add that we are creating both the master and the detail record using the database procedure. Please helps us with a workaround or a solution and i have attached the code for reference.
        public void createSCAgr(ActionEvent actionEvent) {
              BindingContainer bindings = getBindings();
              OperationBinding operationBindingSC = bindings.getOperationBinding("createAgreement"); // this is calling a procedure to create record in the both master and detail table
              Object resultSC = operationBindingSC.execute();
              DCIteratorBinding iterator2 = ADFUtils.findIterator("PadForAgr1Iterator");
            iterator2.executeQuery();        // re-query the master record
              DCIteratorBinding iterator1 = ADFUtils.findIterator("FinForAgr1Iterator");
              iterator1.executeQuery();  // requery thedetail record
    best regards
    Sanjay Chatterji

    Hi Timo,
    Yes, I mean root application as the direct data control.
    This has been working earlier and the difficult part is that it is still working fine for two of the screens. The screen in which it works are those which does not have master detail relationship in them.
    We are using PL/SQL to create the new row as it involves using many database functions / packages  to populate the base data for the freshly created row. which we use to get to the screen for further changes and commit.
    We have been using this way for log time and it worked fine.
    Sanjay Chatterji
    Message was edited by: SChatterji

  • Early Adopter release : Extract DDL for tables does not work

    Hi,
    just had a look at Raptor - really nice tool - easy install - could be a replacement for SQLnavigator for us. One or two things I noticed though ...
    1)
    Export->DDL for tables does not work throws following error
    java.lang.ClassNotFoundException: oracle.dbtools.raptor.dialogs.actions.TableDMLExport
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at oracle.ideimpl.IdeClassLoader.loadClass(IdeClassLoader.java:140)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at oracle.dbtools.raptor.dialogs.BasicObjectModifier.launch(BasicObjectModifier.java:142)
         at oracle.dbtools.raptor.dialogs.BasicObjectModifier.handleEvent(BasicObjectModifier.java:210)
         at oracle.dbtools.raptor.dialogs.actions.XMLBasedObjectAction$DefaultController.handleEvent(XMLBasedObjectAction.java:265)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:530)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:785)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:499)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    and 2)
    when I click on a package body - I get "loading ..." below it but it never puts the
    procedure names in and the "loading ..."message stays in the tree view - however you do get to see the packages in the source window.
    Realise this is very much a work in progress and am grateful to see an early release such as this. Looking forward to the production release.
    Best regards,
    David.

    OK thanks for looking ....you've obviously got the fixes on your to do lists
    Noticed that the SQL tab when you select an object works fine - displays the
    DDL for the object
    Do you think you'll have functionality so you can select many objects (shift left click) and
    then create a DDL script for them? It looks like you can do this for all objects in a schema but
    the ability to select a subset of objects in a schema would be very useful for our DBA's.
    Couldn't see any good reason for keeping using SQLNavigator
    Many congratulations on producing such a useful tool.
    Kind regards,
    David.

  • Drill down is not working for Pivot tables,but working for chart

    I have two reports and trying to navigate betwen summary report to detail report. But details report is displaying all the records .The filter condition is not working and displaying all the filters .I have Case statement in my filter.But the summary report column where the filter condition is applied is aggregated in the RPD level. Does this might be the reason ?. Is it passing different type of data type to details report ?. The filter condition is not working for Pivot table .But Chart is working fine and displaying the only selected records based on the filter condition.
    Please help me with the below issue.

    Hi sil174sss,
    Per my understanding you are experiencing the issue with the excel report which have add the drill down action, after export to excel only the expanded nodes included and the collapsed nodes is not shown, right?
    Generally, if we expand the nodes before export to excel then the excel will display the expanded details row and keep collapsed the details row which haven't expand, but we have the toggle "+","-" on the left of the Excel to help
    control the expand and collapse, when you click the "+" you can expand the collapsed notes to see the details rows.
    I have tested on my local environment with different version of SSRS and can always see the "+","-" as below:
    On the Top left corner you can find the "1","2", this help to control the "Collapse All" and "Expand All".
    If you can't see the "+","-" in the excel, the issue can be caused by the Excel version you are currently using, and also excel have limit support of this, please provide us the Excel version information and the SSRS version. You
    can reference to this similar thread:
    lost collapsing columns when export to excel
    Please try to export other drill down report to excel and check if they work fine, if they did, the issue can be caused by the drill down action you have added in this report is not correctly, if possible, please try to redesign the report.
    Article below about how to add  Expand/Collapse Action to an Item for your reference:
    http://msdn.microsoft.com/en-us/library/dd220405.aspx
    If your problem still exists, please feel free to ask
    Regards
    Vicky Liu

Maybe you are looking for