Home > Default > In the af:table selected row need to display in the next page?

In the af:table selected row need to display in the next page?

October 11Hits:0
Advertisement
Hi,
I am using jdev 11.1.2.3.0.
I tried one sample application, in that jspx page, I am having the af:table and button in my view activity. In that table select one row and click on the button that time, the navigation page always show the first row. Suppose I select the 5th ro and navigate the page also displaying the first row only. So I don't know how to proceed this? Kindly suggest me.
Regards,
Ragu

Answers

Hi Timo,
I used the selectionListener tag also.
Anyway Here I posted my jspx page.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="EmployeesView.jspx" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:panelCollection id="pc1">
<f:facet name="menus"/>
<f:facet name="toolbar">
<af:toolbar id="t2">
<af:commandButton text="Edit Employee" id="cb1" action="Edit" />
</af:toolbar>
</f:facet>
<f:facet name="statusbar"/>
<af:table value="#{bindings.EmployeesVO.collectionModel}" var="row" rows="#{bindings.EmployeesVO.rangeSize}"
emptyText="#{bindings.EmployeesVO.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.EmployeesVO.rangeSize}" rowBandingInterval="0"
filterModel="#{bindings.EmployeesVOQuery.queryDescriptor}"
queryListener="#{bindings.EmployeesVOQuery.processQuery}" filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.EmployeesVO.collectionModel.selectedRow}"
selectionListener="#{bindings.EmployeesVO.collectionModel.makeCurrent}" rowSelection="single"
id="t1">
<af:column sortProperty="#{bindings.EmployeesVO.hints.EmployeeId.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.EmployeeId.label}" id="c1">
<af:outputText value="#{row.EmployeeId}" id="ot1">
<af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesVO.hints.EmployeeId.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.FirstName.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.FirstName.label}" id="c2">
<af:outputText value="#{row.FirstName}" id="ot2"/>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.LastName.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.LastName.label}" id="c3">
<af:outputText value="#{row.LastName}" id="ot3"/>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.Email.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.Email.label}" id="c4">
<af:outputText value="#{row.Email}" id="ot4"/>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.PhoneNumber.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.PhoneNumber.label}" id="c5">
<af:outputText value="#{row.PhoneNumber}" id="ot5"/>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.HireDate.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.HireDate.label}" id="c6">
<f:facet name="filter">
<af:inputDate value="#{vs.filterCriteria.HireDate}" id="id1">
<af:convertDateTime pattern="#{bindings.EmployeesVO.hints.HireDate.format}"/>
</af:inputDate>
</f:facet>
<af:outputText value="#{row.HireDate}" id="ot6">
<af:convertDateTime pattern="#{bindings.EmployeesVO.hints.HireDate.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.JobId.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.JobId.label}" id="c7">
<af:outputText value="#{row.JobId}" id="ot7"/>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.Salary.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.Salary.label}" id="c8">
<af:outputText value="#{row.Salary}" id="ot8"/>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.CommissionPct.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.CommissionPct.label}" id="c9">
<af:outputText value="#{row.CommissionPct}" id="ot9"/>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.ManagerId.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.ManagerId.label}" id="c10">
<af:outputText value="#{row.ManagerId}" id="ot10">
<af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesVO.hints.ManagerId.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="#{bindings.EmployeesVO.hints.DepartmentId.name}" filterable="true" sortable="true"
headerText="#{bindings.EmployeesVO.hints.DepartmentId.label}" id="c11">
<af:outputText value="#{row.DepartmentId}" id="ot11">
<af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesVO.hints.DepartmentId.format}"/>
</af:outputText>
</af:column>
</af:table>
</af:panelCollection>
</af:form>
</af:document>
</f:view>
</jsp:root>
After click the Edit Employee button it should navigate the another page and which record I choose.

Read other 8 answers

Tags:

Related Articles

  • In the af:table selected row need to display in the next page?October 11

    Hi, I am using jdev 11.1.2.3.0. I tried one sample application, in that jspx page, I am having the af:table and button in my view activity. In that table select one row and click on the button that time, the navigation page always show the first row.

  • Jdev11.1.1.0.1 How can i navigate to get details of the table selected row?October 11

    hi , i'm using jdeveloper 11.1.1.0.1 , and i want to navigate from a page containing a panel collection which contains a table with single row selection to another page contains the details of this selection. in 10g i was do that using #{row.rowKeySt

  • WebDynpro, Table, selected rows, multiselectOctober 11

    Hi together, I've got a problem with my "table-control" in WebDynpro. I just want to read the selected rows in the tablecontrol. To read one row is no problem: wdContext.currentnode..... But if there are more selected rows I don't know how to ha

  • How to get table selected row without SelectedRowKeysNovember 30

    Greetings, i am using JDeveloper 11.1.2.4.0 ADF application, and i have few table that contains only 1 and some times 2 rows. When the table loads, by default, the first row is selected, and i cant call a selection listener (by selecting a row and ca

  • Ignore table selection rowsNovember 30

    Hello, I use a table  to show some information. If accidentally  I select a row the program stop to work and I have to use the task manager to close  the program and labview. How to ignore or disable the cell selection in table, so if i click in a ce

  • Delete Selected rows in ALV displayNovember 30

    Hi everyone, I have a requirement where in my output display, I will have 3 buttons, like Select all, Deselect all and Delete selected. For Select all and Deselect all I am able to write code and they are working fine. But for Delete selected I am no

  • How to set selected row in alv display?November 30

    Hi, How do I select some particular row in alv - say at first display i want to highlight 4th row. How can i do that? Thanks, Sheeltry to use method set_selected_rows just after method for first display.Read other 3 answers

  • Making 10 table control rows to be displayed alwaysNovember 30

    Dear All, How to make a table control display 10 lines always..?Hi, Thanks for the response I have 3 table controls in a single screen. Each will have minimum 7-10 rows ( filled data ). I need to display all the table with all the rows visible to the

  • Table: disappearing row separatorsNovember 30

    I have a table that breaks across several pages. On the last two pages only, the rule/separator at the top of the first row does not display. All other pages are OK. All the content that's included in the affected rows is there--just no border at the

  • Get values from selected row in a Table?October 11

    Hello. I'm on VC 7.1 (the trial version downloaded from SDN). I'm trying to figure out a way to retrieve some values from the currently selected row in a Table element through the output connector. I have a web-service which returns results to the Ta

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 1.470 s.