ADF 11.1.1.2.0 paging in table. How to do this?

Hi,
I am using ADF 11.1.1.2.0 with ADF 11g.
I am looking to do paging in various tables that I have created frm the VOs. I do see that older ver. of ADF had a direct and a declarative approach to do paging but in ADF 11.1.1.2.0 does not seem to have that support.
What is the simplest way to achieve this. Basically user should see a next and previous button/link and it will fetch the next/previous set of records, without creating too many objects.
Pls guide.

There is no direct solution in adf rich faces for page navigation like if was present in 10g. You can do this if you use trinidad tables.
Paging is done implicit when you scroll down/up the adf table. If you don't like it you can try to implement it yourself.
Timo

Similar Messages

  • Aggregating table - how to solve this with ADF Faces

    Hello.
    I am trying to solve something that would typically be really simple. However, now i' using ADF faces which is new to me and i'm stuck.
    I want to show a table of rows with aggregated numbers (department in example below) and then "open up" any row by clicking on it to display the numbers that make up the aggregate (the guys in the helpdesk department in the example below).
    Something like this:
    DEPARTMENT SALARIES
    +Sales                  1.234.567
    +Warehouse         3.425.553
    -Helpdesk 655.000
    Joe 155.000
    Jill 300.001
    Burt 199.999
    +Personnel           546.225
    +Management     9.646.383
    And to make things more complicated, some of the aggregate rows in my real life example don't have any underlying rows. They just have the total. Can anyone give me hint about how to do this with an ADF Faces-control? I need to show management this can be solved quick and simple with ADF Faces, so i can convince them that it is the way we should be working in the future.
    Edited by: GoodCoffee on Jun 2, 2009 4:15 AM. Trying to indent the three rows under "Helpdesk"

    Hi,
    if you use ADF BC as the business Service then you can create a transient attribute (one that does not ave a database column ) and compute the total. Using JDeveloper 11g, you can use a Groovy expression. The below example calculates the Overall Salary paid by an department. The transient attribute is defined on the Department Entity Object
    XML View
    <Attribute
        Name="SumSalary"
        ColumnName="SUMSALARY"
        SQLType="NUMERIC"
        Type="java.lang.Long"
        ColumnType="NUMBER"
        IsQueriable="false"
        IsPersistent="false">
        <TransientExpression><![CDATA[Employees1.sum("Salary")]]></TransientExpression>
      </Attribute>The Employees1.sum("Salary") string is the Groovy expression that you need to add for the attribute. You select the created transient attribute in the EO editor and press the pencil icon. Then you select "Expression" as the value type and add the string.
    See: http://www.oracle.com/technology/products/jdev/11/how-tos/groovy/introduction_to_groovy.pdf
    Frank

  • ADF master-detail master selection not updating detail tables properly

    Hi All,
    I am using JDev version : 11.1.2.0.0
    I created new Fusion Web Application Module. In that module I created a master-detail data model and added them to a page fragment with a query panel. When I run it as a separate module, It works perfectly and Master selection correctly updates detail tables.
    But when I integrate that module to another Fusion Application(Add application jar file to the Master Application libraries), Master-details master selection not updating detail tables properly. This problem occurred sequentially.
    The problem is that.
    After the page load, first selection of the Master Table works correctly and detail tables update correctly.
    But second selection doesn't work, means detail table doesn't get update according to the Master table.
    And again in the third selection works correctly.
    This happens in a sequential manner. I monitor the behavior using Firebug. Observations are as follows,
    When running correctly, Response of the Post Definition is
    <?xml version="1.0" ?> <partial-response><changes><update id="pt1:t1"><![CDATA[<div tabindex="0" id="pt1:t1" class="xpa xpi" _leafColClientIds="['pt1:t1:c1','pt1:t1:c2','pt1:t1:c3','pt1:t1:c4','pt1:t1:c5','pt1:t1:c6','pt1:t1:c7','pt1:t1:c8','pt1:t1:c9','pt1:t1:c10','pt1:t1:c11','pt1:t1:c12','pt1:t1:c13']"><div id="pt1:t1::ch" style="overflow:hidden;position:relative;width:1365px;" _afrColCount="13" class="xz4"><table class="xz6" summary="This table contains column headers corresponding to the data body table below" id="pt1:t1::ch::t" style="position:relative;table-layout:fixed;width:1365px" cellspacing="0"><tr><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th><th style="padding:0px;padding-left:5px;width:100px;"></th></tr><tr><th id="pt1:t1:c1" _d_index="0" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c1::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">DateFormat</div></th><th id="pt1:t1:c2" _d_index="1" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c2::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">DefinisionId</div></th><th id="pt1:t1:c3" _d_index="2" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c3::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldId</div></th><th id="pt1:t1:c4" _d_index="3" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c4::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldLabel</div></th><th id="pt1:t1:c5" _d_index="4" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c5::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldLength</div></th><th id="pt1:t1:c6" _d_index="5" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c6::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldOffset</div></th><th id="pt1:t1:c7" _d_index="6" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c7::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldOrder</div></th><th id="pt1:t1:c8" _d_index="7" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c8::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldStatus</div></th><th id="pt1:t1:c9" _d_index="8" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c9::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldType</div></th><th id="pt1:t1:c10" _d_index="9" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c10::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">FieldTypeLen</div></th><th id="pt1:t1:c11" _d_index="10" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c11::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">IgnoreField</div></th><th id="pt1:t1:c12" _d_index="11" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c12::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">IsMandatory</div></th><th id="pt1:t1:c13" _d_index="12" _afrLeaf="true" _afrRoot="true" align="left" class="xz7"><div style="position:relative; float:right"><table id="pt1:t1:c13::afrSI" _afrHoverable="true" style="display:none" class="xzs" cellpadding="0" cellspacing="0"><tr><td _afrSortAsc="1"><a tabIndex="-1" class="xza" title="Sort Ascending"></a></td><td _afrSortDesc="1"><a tabIndex="-1" class="xzb" title="Sort Descending"></a></td></tr></table></div><div class="x19d">RecordType</div></th></tr></table></div><div id="pt1:t1::db" class="xyx" style="position:relative;width:100%;overflow:hidden" _afrColCount="13"></div><div id="pt1:t1::sm" class="xzt" style="position:absolute;display:none"></div><div id="pt1:t1::ri" class="xyz" style="position:absolute;display:none;overflow:hidden"></div><div id="pt1:t1::dataW" style="display:none"></div></div>]]></update><update id="f1::postscript"><![CDATA[<span id="f1::postscript"><span id="f1::postscript:st"><input type="hidden" name="javax.faces.ViewState" value="!-75cc188st"></span></span>]]></update><update id="d1::iconC"><![CDATA[<span id="d1::iconC" style="display:none"><span id="af_table::disclosed-icon"></span><span id="af_table::undisclosed-icon"></span></span>]]></update><update id="javax.faces.ViewState"><![CDATA[!-75cc188st]]></update><eval><![CDATA[AdfPage.PAGE.__handleRichResponseAction('/MillenniumCSD-ViewController-context-root/faces/FileDefinition?_adf.ctrl-state=cmpl0ptfg_7');]]></eval><eval><![CDATA[AdfPage.PAGE.sendStreamingRequest("pt1:t1");]]></eval><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/dnd-SHERMAN-1147.js</extension><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/nav-SHERMAN-1147.js</extension><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/menu-SHERMAN-1147.js</extension><extension id="adf-script-library">/MillenniumCSD-ViewController-context-root/afr/partition/gecko/default/opt/table-SHERMAN-1147.js</extension><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/jquery-1.7.1.min.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/dis_contx.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/js/floating_bar_bottom.js');</eval><eval>if(self.window.name != "MillenniumDepository"){   self.location = "mcsd.html";   }</eval><eval><![CDATA[AdfDhtmlLookAndFeel.addSkinProperties({"af|table-tr-column-scroll-animation-duration":"300","af|table-tr-column-reorder-animation-duration":"600","af|table-tr-hover-highlight-row":"true"});AdfPage.PAGE.addComponents(new AdfRichTable('pt1:t1',{'rowSelection':'single','rowBandingInterval':0,'editingMode':'none','afrSelListener':true}),new AdfRichColumn('pt1:t1:c1',{'sortProperty':'DateFormat','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c2',{'sortProperty':'DefinisionId','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c3',{'sortProperty':'FieldId','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c4',{'sortProperty':'FieldLabel','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c5',{'sortProperty':'FieldLength','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c6',{'sortProperty':'FieldOffset','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c7',{'sortProperty':'FieldOrder','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c8',{'sortProperty':'FieldStatus','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c9',{'sortProperty':'FieldType','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c10',{'sortProperty':'FieldTypeLen','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c11',{'sortProperty':'IgnoreField','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c12',{'sortProperty':'IsMandatory','sortable':true,'minimumWidth':12,'rowHeader':false}),new AdfRichColumn('pt1:t1:c13',{'sortProperty':'RecordType','sortable':true,'minimumWidth':12,'rowHeader':false}));AdfPage.PAGE.__recordSessionTimeout(1800000, 120000, "http://127.0.0.1:7101/MillenniumCSD-ViewController-context-root/faces/FileDefinition");AdfPage.PAGE.__initPollingTimeout(600000);AdfPage.PAGE.clearMessages();AdfPage.PAGE.clearSubtreeMessages('pt1:t1');AdfPage.PAGE.clearSubtreeMessages('pt1:resId1');]]></eval></changes></partial-response>
    When not running correctly, Response of the Post Definition is
    <?xml version="1.0" ?> <partial-response><changes><update id="f1::postscript"><![CDATA[<span id="f1::postscript"><span id="f1::postscript:st"><input type="hidden" name="javax.faces.ViewState" value="!-75cc188st"></span></span>]]></update><update id="javax.faces.ViewState"><![CDATA[!-75cc188st]]></update><eval><![CDATA[AdfPage.PAGE.__handleRichResponseAction('/MillenniumCSD-ViewController-context-root/faces/FileDefinition?_adf.ctrl-state=cmpl0ptfg_7');]]></eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/jquery-1.7.1.min.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/JarLoaderPages/dis_contx.js');</eval><eval>AdfPage.PAGE.addResource('javascript','/MillenniumCSD-ViewController-context-root/js/floating_bar_bottom.js');</eval><eval>if(self.window.name != "MillenniumDepository"){   self.location = "mcsd.html";   }</eval><eval><![CDATA[AdfPage.PAGE.__recordSessionTimeout(1800000, 120000, "http://127.0.0.1:7101/MillenniumCSD-ViewController-context-root/faces/FileDefinition");AdfPage.PAGE.__initPollingTimeout(600000);AdfPage.PAGE.clearMessages();AdfPage.PAGE.clearSubtreeMessages('pt1:t1');AdfPage.PAGE.clearSubtreeMessages('pt1:resId1');]]></eval></changes></partial-response>
    I could not figure out what went wrong when integrating to another module.
    Can you please help me to rectify this problem.
    Thanks
    dk

    Hi,
    sound to be an implementation specific issue that is hard to comment on without knowing how to reproduce it. If you have a rerooducible test case based on the Oracle HR schema using JDeveloper 11.1.1.6, zip it up, rename the "zip "extension to "unzip" and sent it to the mail address you find in my OTN profile. If you don't have that test case, explain how this can be reproduced
    Frank

  • Paging file is too small for this operation to complete.

    iTunes wont open. When I click on it, all it says is 'Paging file is too small for this operation to complete. Please help =)

    Now it says Aplication Error - The aplication failed to initialize properly (0xc000012d)

  • Host Agent Service critical - Paging file is too small for this operation to complete

    Hi all,
    at the moment I have the problem that some of my hosts get in the errorstate critical in VMM 2012 SP1.
    The error details in VMM are:
    Error (2912)
    An internal error has occurred trying to contact the hostname server: : .
    WinRM: URL: [http://hostname:5985], Verb: [ENUMERATE], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service], Filter: [select * from Win32_Service where Name="scvmmagent"]
    The paging file is too small for this operation to complete (0x800705AF)
    Recommended Action
    Check that WS-Management service is installed and running on server hostname. For more information use the command "winrm helpmsg hresult". If hostname is a host/library/update server or a PXE server role then ensure that VMM agent is installed
    and running.
    On the host i cannot connect to FailoverCluster or Hyper.V Manager. After a restart of the host the Problem is gone and the System is working without any Problems for some days.
    The paging file is set to 4GB and the OS is Server 2012.
    The hosts have 192GB of RAM.
    The configuration of the pagfile didn't change from Windows 2k8R2 to 2012.
    I didn't find any Errors in the eventlog. Do you have any idea where to check for that?
    Thanks,
    Patrick

    The hotfix didn't solve the Problem for me either. The WMI crash came again after a couple of weeks.
    An additional problem with VDS was detected and the following hotfix was installed:
    http://support.microsoft.com/kb/2884597/en-us
    Also a problem with Clusterservice was found, sadly MS is tagging this handle leak as "won't fix".
    Nevertheless one WMI Instance is still growing...
    We are testing a hotfix that so far looks promising. Its a private hotfix only right now. But the file is listed as KB494704 you may want to ask your support engineer to look into it.

  • ADF Menu container "shadow" does not appear... how to fix?

    In EM (Grid Control), the user can navigate to some MOS (My oracle support) content. The content which is flash (swf) is displayed within an iframe. There is an adf menu bar above the content area and if the user selects an adf menu for display, the main part of the menu container (that shows the menu items) displays fine, but the menu container "shadow" (below and to the right of the container) does not. Would anyone have any ideas on how to fix this?
    I've tried setting the z-index (of the iframe) but that didn't work.
    Thanks.

    if u r using ADF then u have to have adf libraries added.. the red lines are coming because jdeveloper could not find those classes mentioned.. the libraries have those classes.. so when u added the libraries.. u r red lines are gone..
    these libraries are needed
    http://docs.oracle.com/cd/E23943_01/web.1111/b31974/intro.htm#CHDHDHFJ
    JDeveloper adds the following libraries to the data model project:
    ADF Model Runtime
    BC4J Oracle Domains
    BC4J Runtime
    BC4J Security
    BC4J Tester
    MDS Runtime
    MDS Runtime Dependencies
    Oracle JDBC
    JDeveloper also adds the following libraries to the view project:
    JSP Runtime
    JSF 1.2
    JSTL 1.2
    ADF Page Flow Runtime
    ADF Controller Runtime
    ADF Controller Schema
    ADF Faces Runtime 11
    ADF Common Runtime
    ADF Web Runtime
    MDS Runtime
    MDS Runtime Dependencies
    Commons Beautils 1.6
    Commons Logging 1.0.4
    Commons Collections 3.1
    ADF DVT Faces Runtime
    ADF DVT Faces Databinding Runtime

  • Paging a Table

    Could someone help me with the code to maintain the data when paging the table. I populated the table based on the role that the user selected in a drop down. Here is my existing code.
    Protected Sub ddkRolesList_Select(ByVal sender As System.Object, ByVal e As SAP.Web.UI.Controls.AbstractDropDownByKey.SelectEventArgs) Handles ddkRolesList.Select
    Dim um As New UserManagement
    Dim role As String = ddkRolesList.SelectedKey.ToString()
    Dim users As Array = um.GetUsersOfRole(role, True)
    Dim user As String
    For Each user In users
    Dim tRow As New TableRow()
    Dim tCell As New TableBodyCell()
    Dim tCell2 As New TableBodyCell()
    Dim tCell3 As New TableBodyCell()
    tCell.TableCellContent = New TextView(GetName(user))
    tRow.Cells.Add(tCell)
    tCell2.TableCellContent = New TextView(GetEmail(user))
    tRow.Cells.Add(tCell2)
    tCell3.TableCellContent = New CheckBox()
    tRow.Cells.Add(tCell3)
    Table1.Items.Add(tRow)
    Next
    End Sub
    Thanks,
    Gabe Petro

    Hi Gabe,
    how are you doing ?
    have you informed yourself of the links presented by Ofer in the following thread : Portal User Management via .Net   ?
    that is the methodology to be able to access the UM from within NPDK
    comming to the code :
    the logical steps in your case
    1> read portal object
    2> create local copy of data object
    3> create local data table
    4> create default view and bind grid
    they are over engineered, but none the less should yeild the result you require
    what result do you get with the code ?
    um.GetUsersOfRole(role, True)
    please check the methods
    1> GetUserName
    2> GetUserEmail
    as they are outside the scope of the current function
    with respect,
    amit
    Private Sub BuildTable(ByVal roleID As String)
    Dim um As New UserManagement()
    Dim role As String = roleID
    Dim users As Array = um.GetUsersOfRole(role, True)
    Dim user As String
    tblRoleA.Header.Text = "Users of " & ddkRoleA.SelectedItem.Text
    Dim usersTable As New DataTable
    Dim myDataRow As DataRow
    Dim myDataView As DataView
    usersTable.Columns.Add("Name", Type.GetType("System.String"))
    usersTable.Columns.Add("Email", Type.GetType("System.String"))
    ' Iterate FileInfo objects to populate the DataTable.
    For Each user In users
    myDataRow = usersTable.NewRow()
    myDataRow("Name") = GetUserName(user)
    myDataRow("Email") = GetUserEmail(user)
    usersTable.Rows.Add(myDataRow)
    Next user
    ' Create a new DataView and sort it based on the sort field.
    myDataView = usersTable.DefaultView
    'myDataView.Sort = strSortField
    tblRoleA.DataSource = myDataView
    tblRoleA.DataBind()
    End Sub

  • ADF Unable to filter / sort date column in table

    Hi,
    I am using JDeveloper 11.1.1.7.
    I have a read only table inside a panel collection. One of the columns in the table is a date field. I have filterable and sortable properties set to true for all columns. Filter and sort property works for all columns expect the date column. The filter and sort options is not even shown for the date field (shown below).
    <af:column headerText="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.label}"
                                             id="c7" sortable="true" width="100"
                                             filterable="true">
                                    <af:outputText value="#{row.CreationDate}"
                                                   id="ot7">
                                      <af:convertDateTime pattern="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.format}"/>
                                    </af:outputText>
                                  </af:column>
    Please let me know if I am missing anything here.
    Thanks,
    Ashwin

    Hi Ashwin,
    As mentioned by Timo, for me also the filtering is working as usual.
    But while browsing through the ADF UI Guide I came across with below note
    If you want to use a component other than an inputText component for your filter (for example, an inputDate component), then instead of setting filterVisible to true, you can add the needed component to the filter facet.
    To do so:
    1. In the Structure window, right-click the column to be filtered and choose Insert inside af:column > JSF Core > Filter facet.
    2. From the Component Palette, drag and drop a component into the facet.
    3. Set the value of the component to the corresponding attribute within the FilterableQueryDescriptor class created in Step 1(not above step but you can find it in pg:390). Note that the value must take into account the variable used for the row, for example:
    #{af:inputDate label="Select Date" id="name" value="row.filterCriteria.date"}.
    This is in the section: 12.5.1 How to Add Filtering to a Table(pg:390).
    I hope it helps.
    Regards,
    Peddi.

  • ADF Master Table, Inline Detail Table - How to Scroll Range/Disclose Row

    JDev 10.1.3.2 ADF/BC
    I really need some help here. I've tried as many things as I could think of and I still cannot get this to work.
    Scenario: I have query/result page. User clicks a link in the result table to take him to another page. This page has a Master table, Inline detail table component (bound to a tree in the pageDef). Before the page renders, all I want to do is scroll the Master table to the current row (based on the previous query/result via invokeAction in pageDef) and disclose the inline detail. Simple, right? In addition, I'll need to scroll the inline detail to the current row as well.
    I would like to do this prior to the components rendering but would be interested in any coding to scroll and disclose.
    Thanks in advance,
    Tom

    I've come up with a solution to my problem. Unfortunately I'm not able to manipulate the table prior to rendering but this solution is probably the closest I'm going to get. Here is my code:
    I set up a af:poll component to fire once on my jspx.
        public void poll_PollListener(PollEvent pollEvent) {
            if (this.getFromProcess("unitRowKeyValue") != null) {
                int curIndx = this.getIteratorBinding("UnitsIterator").getRowSetIterator().getCurrentRowIndex();
                this.getUnitTree().setFirst(curIndx);
                if (this.getFromProcess("systemRowKeyValue") != null) {
                    this.getUnitTree().setRowIndex(curIndx);
                    DisclosureEvent de = new DisclosureEvent(this.getUnitTree(), true);
                    this.getUnitTree().queueEvent(de);
                this.storeOnProcess("renderPoll", false);
        }The setFirst method scrolls the table to the index specified. If the user, in my case, has selected a detail item (system), I want to disclose the detail. First I need to setRowIndex to the current index and then I fire a disclose event.
        public void unitTreeDisclosureListener(DisclosureEvent disclosureEvent) {
             if (disclosureEvent.isExpanded()) {
                 CoreTable coreTable = (CoreTable)disclosureEvent.getSource();
                 RowKeySet rks = new RowKeySet();
                 Object test = coreTable.getRowKey();
                 rks.getKeySet().add(coreTable.getRowKey());
                 coreTable.setDisclosureState(rks);
          }If I don't set the rowKey via the setRowIndex method above, the getRowKey does not return a valid rowKey. In my case, I only want one master row to be disclosed at a time.
    This all works great except for a bit of flicker to process the PPR request for the component.
    Next step is to see if I can scroll the Inline Detail table to the detail row selected in the Query/Result page.
    Tom

  • ADF Popup for adding a new Row in  table

    Hi All,
    I have VO which is rendering as table on my jsff.I created a button of createInsert to add a new row and after commit it saves the values in Table in DB.
    Works abst fine.
    Now i want to change this feature to that when a New Row should be Added, a pop up should appear in the format of a form, and at the click of OK it should save the data and on Cancel go back to Page.
    What i did was i added a pop up, in the pop up body i again dropped my VO as a form and added a dialoglistener to the pop up which commits on click of OK and Rollback on click of Cancel.
    I am not getting any exception but The Db is not modified with my entries.
    So its simple that i am commiting but nothing is changed till that time.
    How can i get the Task done?????
    Regards
    User

    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf
    insert operation using popup
    http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html
    Edited by: Erp on Oct 20, 2011 6:47 AM

  • ADF table: How to find out which rows were modified by the user

    Hi,
    I am using ADF table to display data that can be modified by the user (ReadOnly = false in the input text). I need to find out which rows were modified by the user, and only update (persist) those rows in the database.
    Is there an easy way to find out which rows were modified by the user.
    I am NOT particularly concerned with which columns were modified as I would update the entire row (if any data in that row is modified).
    I am using Oracle JDeveloper version 11.1.1.3.
    Thanks,
    Ash K

    Thanks Timo.
    I am using ADF Data Control (which are created from Web Service proxy) to display/update the data.
    In the backing bean, the operation that is invoked at the time persisting data is as follows:
    public void commitOperation {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("operationA");
    DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("someIterator");
    for(int i=0; i<dciter.getViewObject().getEstimatedRowCount(); i++)
    Row row=dciter.getRowAtRangeIndex(i);
    SomeObject someObject= new SomeObject ();
    someObject.setAttr1(row.getAttribute("Attrbute1").toString());
    someObject.setAttr2(row.getAttribute("Attribute2").toString());
    objectList.add(someObject);
    operationBinding.getParamsMap().put("param1", objectList);
    ResultObject result = (ResultObject) operationBinding.execute();
    Inside the for loop (or any other place in the backing bean), I would like to figure out if the row was modified by the user. Please let me know if how to get that. If ADF provides this automatically, that would be GREAT.
    Thanks,
    Ash K

  • Binding ADF data form fields with column of a table

    Hii All,
    I want to create ADF data form where fields will be in form according to the request parameter of a webservice and all that elemments should be bounded to a table .can any one please tell me how to do that in ADF .I have created the webservie and also able to access it from ADF page ,plz tell me how to configure it so that it will bind it's data with table.
    with regards,
    Deekay.

    Create a WS data control using the WSDL you have.

  • ADF Faces Dependent list boxes in an editable table

    Hi,
    I'm working with JDeveloper 10.1.3.1.0.
    I saw the topic "How to build dependent list boxes with ADF II" on F. Nimphius' Blogbuster.
    There it is shown how to handle dependent list boxes in an ADF Faces form. I tried this for an editable table but it doesn't work correctly: If there is more than one row in the resultset of the table, both dependent list boxes have the same content in all the rows though the content in the database is different.
    Can anyone help me?
    Thanks.

    Ok - I will try.
    I built the listboxes like it is described in "ADF Faces: How to built dependent lists boxes with ADF and ADF Faces Part II", Frank Nimphius' Blogbuster July, 2006.
    This is the full code of my ManagedBean:
    package asdb.view.backing;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.OperationBinding;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.binding.BindingContainer;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.uicli.binding.JUCtrlValueBindingRef;
    public class AktMitFktEdit {
    private BindingContainer bindings;
    public AktMitFktEdit() {
    public void kategorieWechsel(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bc = this.getBindings();
    DCIteratorBinding kategorienIter = (DCIteratorBinding)
    bc.get("OrganKategIterator1");
    Row rw =
    kategorienIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    String kategorie = (String)rw.getAttribute("Kategorie");
    OperationBinding opBindingOrganeLovIter = (OperationBinding)bc.get("ExecuteWithParams");
    opBindingOrganeLovIter.getParamsMap().put("kategorieParam",kategorie);
    opBindingOrganeLovIter.execute();
    public void setBindings(BindingContainer bindings)
    this.bindings = bindings;
    public BindingContainer getBindings() {
    return bindings;
    It works fine, when the user only want to update existing rows. But if he had inserted a new row and afterwards want to update existing rows, the listboxes don't show the correct contents. No error messages are displayed.

  • Adf Customized Selection Listner Not working in df Table

    Hi All,
    I am working on Oracle Adf with jdev version 11.1.1.5
    My table has single row and some columns are Select Boolean Check boxes.
    I am using my customized Selection Listener for this table.
    My problem is when table is rendered row selected automatically and selection Listener is not executed.
    Any help is appreciated ...
    Following is my code Snippet :
    <af:table value="#{bindings.homeDelToProxyParentVO1.collectionModel}"
    var="row"
    rows="#{bindings.homeDelToProxyParentVO1.rangeSize}"
    emptyText="#{bindings.homeDelToProxyParentVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.homeDelToProxyParentVO1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.homeDelToProxyParentVO1.collectionModel.selectedRow}"
    rowSelection="single"
    binding="#{backingBeanScope.backing_home3.t1}"
    id="t1" styleClass="AFStretchWidth"
    autoHeightRows="5"
    contentDelivery="immediate"
    selectionListener="#{backingBeanScope.backing_home3.homeDelToProxyParentSelectionListner}">
    <af:column sortProperty="selectAll"
    sortable="false"
    headerText="Select All" id="c24">
    <af:selectBooleanCheckbox value="#{row.bindings.selectAll.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.selectAll.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.selectAll.tooltip}"
    id="it3"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxySelectAll}">
    <f:validator binding="#{row.bindings.selectAll.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="EmpName"
    sortable="false"
    headerText="Employee Name" id="c3">
    <af:outputText value="#{row.EmpName}"
    id="ot2"/>
    </af:column>
    <af:column sortProperty="EmpPerNo"
    sortable="false"
    headerText="Person Number" id="c1">
    <af:outputText value="#{row.EmpPerNo}"
    id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.homeDelToProxyParentVO1.hints.EmpPerNo.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="NotifyDate"
    sortable="false"
    headerText="Notification Date"
    id="c7">
    <af:outputText value="#{row.NotifyDate}"
    id="ot3">
    <af:convertDateTime pattern="#{bindings.homeDelToProxyParentVO1.hints.NotifyDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="notification"
    sortable="false"
    headerText="Notification" id="c23">
    <af:selectBooleanCheckbox value="#{row.bindings.notification.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.notification.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.notification.tooltip}"
    id="it6"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyNotification}">
    <f:validator binding="#{row.bindings.notification.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="physicalAccess"
    sortable="false"
    headerText="Physical Access"
    id="c22">
    <af:selectBooleanCheckbox value="#{row.bindings.physicalAccess.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.physicalAccess.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.physicalAccess.tooltip}"
    id="it2"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyPhysicalAccess}"
    autoSubmit="true">
    <f:validator binding="#{row.bindings.physicalAccess.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="networkAccess"
    sortable="false"
    headerText="Network Access" id="c35">
    <af:selectBooleanCheckbox value="#{row.bindings.networkAccess.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.networkAccess.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.networkAccess.tooltip}"
    id="it17"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyNetworkAccess}">
    <f:validator binding="#{row.bindings.networkAccess.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="laptopDesktop"
    sortable="false"
    headerText="Laptop/Desktop" id="c5">
    <af:selectBooleanCheckbox value="#{row.bindings.laptopDesktop.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.laptopDesktop.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.laptopDesktop.tooltip}"
    id="it5"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyLaptopDesktop}">
    <f:validator binding="#{row.bindings.laptopDesktop.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="mobility"
    sortable="false"
    headerText="Mobility" id="c6">
    <af:selectBooleanCheckbox value="#{row.bindings.mobility.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.mobility.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.mobility.tooltip}"
    id="it4"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyMobility}">
    <f:validator binding="#{row.bindings.mobility.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="otherProperty"
    sortable="false"
    headerText="Other Property" id="c4">
    <af:selectBooleanCheckbox value="#{row.bindings.otherProperty.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.otherProperty.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.otherProperty.tooltip}"
    id="it7"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyOtherProperty}">
    <f:validator binding="#{row.bindings.otherProperty.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="hrActivity"
    sortable="false"
    headerText="HR Activities" id="c2">
    <af:selectBooleanCheckbox value="#{row.bindings.hrActivity.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.hrActivity.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.hrActivity.tooltip}"
    id="it1"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyHRActivity}">
    <f:validator binding="#{row.bindings.hrActivity.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    </af:table>

    Since there is only one row in my table, it is getting select as a current row by default.
    But my requirement is to call my custom selection Listener which will make it current in addition to it
    I am also enabling a command button pro-grammatically there which is initially disabled i.e.( Disable = true )

  • Oracle ADF RichSelenium class - any examples on how to use this?

    Digging around the net and found that there is a class for Selenium testing ADF Rich components, namely oracle.adf.view.rich.automation.selenium.RichSelenium located in oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-automation-11.jar.
    I've been searching for half a day now and cannot find any example code on how to use RichSelenium class for the life of me.
    There are examples of using Selenium with ADF (http://www.oracle.com/technetwork/articles/adf/part6-094560.html) but not using RichSelenium.
    Any lead or information would be highly appreciated, thanks in advance.

    OK figured out how to start using this RichSelenium class and thought I'd post my findings on this thread for the sake of anyone else who wants to know. Here's my code:
    -- START OF CODE
    package my.richselenium.test;
    import java.util.concurrent.TimeUnit;
    import org.junit.After;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.WebDriverCommandProcessor;
    import org.openqa.selenium.firefox.FirefoxDriver;
    * Base test class for handling common functionality across tests - setting up web driver, retrieving URL and cleaning
    * up and resources.
    public class myTest {
    public void runTest() {
    // Create WebDriver
    WebDriver myWebDriver = new FirefoxDriver();
    // Setup Web Driver Command Processor
    WebDriverCommandProcessor wdcp = new WebDriverCommandProcessor("http://www.google.com", this.driver);
    // Instantiate RichSelenium class object
    RichSelenium rs = new RichSelenium(wdcp);
    // Load specific URL
    rs.open("http://www.oracle.com");
    // Let's do some RichSelenium specific processing
    String [] someArray = rs.getAllFields();
    List<String> someList = Arrays.asList(someArray);
    // for loop advance
    for (String temp : someList ) {
    System.out.println(temp);
    rs.close();
    -- END OF CODE
    -----------------------------------------------------------------------------------------------------------------------------------------

Maybe you are looking for

  • Clean install of OS X Lion went from 7GB to 16GB, is this expected?

    Hi, I'm trying to see if others have experienced this as well? The whole OS only occupied 7GB (right after install) and after a reboot it reads 16GB. Is this expected behavior to occupy 2X the storage space? What is the extra ~9GB being used for? Det

  • I've developed a way to AUR search+install with pacman via proxy

    at the moment it's not complete, and the database is up-to-date only as of Oct-16-2007;; but i believe it's in a stable position to be tested .. i look forward to your feedback so anyway .. i call it alaura, and it is a system developed in python to

  • How to uninstall Zedge from my MacBook Air

    Hey there, can you help me and navigate me how to unisntall the Zedge ToneSync from my phone? I also have it on my iPhone and I cannot uninstall it either. I both cases it looks like the app is constantly running and impossible to delete. Also, after

  • Does my applet work for you?

    I can see it fine on my PC but nobody else can view it. http://www.info.com.ph/~arivera/game/testmain.html I'm using SDK 1.4.2

  • In va01 costcentre field is diable how to get it?

    Dear all, In programe SAPLKACB  scren  no. 1006 (which is for va01 trasaction)  it showing the costcentre field . My requirement is in va01 t-code i have to display in account assingment tab. If any body helpme. regards. shashi