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

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

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.

Similar Messages

  • HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID?

    HI.
    HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID????
    GABRY =)

    You need to use
    data : grid1  type ref to cl_gui_alv_grid.
      call method grid1->get_selected_rows
        importing
          et_index_rows = i_sel_alvrows[].

  • Making 10 table control rows to be displayed always

    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 user without scrolling.
    At present though I define the lines as 10 for each table they are getting adjusted to 4 lines per table and getting fit to the screen.
    But what I need is irrespective of the size of the monitor it should display all the tables with all the data. The screenmay have the scroll but not the tablecontrol.
    for e.g
    Table 1 Actual data is
    1 flight
    2 Train
    3 Car
    4 Flight
    5 Hotel
    6 Other
    7 Car
    But it is displayed as with scroll option for table control
    1 flight
    2 Train
    3 Car
    4 Flight
    I need it to be displayed as irrespective of the size of monitor
    1 flight
    2 Train
    3 Car
    4 Flight
    5 Hotel
    6 Other
    7 Car
    Please help.
    Regards
    Sai

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?

    I have changed my Apple ID name and I want to change it on iCloud, however I am not able to delete the previous account because I need to turn off the Find my iPhone - and for that I need to log in with the old name and that is not working. Help anyone?

    Hey tulgan,
    This link will provide information on what to do after you change your Apple ID:
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796
    Welcome to Apple Support Communities!
    Take care,
    Delgadoh

  • I am dual booting my mackbook pro with windows 7 64 bit. Yesterday it started locking up at the disk drive selections screen, when you hold down the "option" butting when powering on. I have been searching all morning, and so far nothing. Thanks. :)

    Hey folks,
    I have been using bootcamp for months now with windows 7 64 bit, and its been fine, yesterday while I was rebooting to do some gaming, at the hard drive selection screen when you boot holding the "options" butting down, it locks up when I select the windows drive and just sits there for ever. It doesn't throw an error, it boots fine into Lion.
    I searched all morning and didn't find anything, was hoping that someone might have an idea.
    Thanks in advance

    Search again. Microsoft has tips on what to do and Windows has a number of features
    system restore points
    automatic system repair using the Win7 DVD
    system restore image creation
    Just like you would with OS X Lion and Lion Recovery and Repair
    Use WinClone 3 www.twocanoes.com $20 to make an image just like you would with Disk Utility Restore or Carbon Copy Cloner
    rollback to last known good boot check point
    rollback a driver or program or any changes
    clean out temp files
    clean registry
    chkdsk
    https://discussions.apple.com/people/The%20hatter?view=bookmarks

  • HT4108 I have an iPhone4, used and locked to the UK network. I need to pay for the phone to be officially Unlocked. In the meantime we used it as a device to check emails and games etc.. We put a pass lock and after many failed attempts we forgot what it

    I have an iPhone4, used and locked to the UK network. I need to pay for the phone to be officially unlocked.
    In the meantime we used it as a device to check emails and games etc.. We put a pass lock and after many failed attempts we forgot what it is. Now the phone is Disabled and iTunes can not fix it since it can not update the Software without the phone being officially unlocked..
    any idea how to do this?
    Please advice

    gencml wrote:
    We put a pass lock and after many failed attempts we forgot what it is. Now the phone is Disabled and iTunes can not fix it since it can not update the Software without the phone being officially unlocked..
    any idea how to do this?
    Please advice
    You need to visit Apple Store, and show ownership proof in case of forgotton pass code.

  • HT203167 I have just bought this iPad-so all is new. I was downloading an app from the montessorium site on the Internet -paid for the app -it said I needed iTunes to complete the download - which I thought I had done - but I don't have the app on my iPad

    I have just bought a new iPad -I was downloading a new app from montessorium web site-paid for the app-was told toi needed iTunes to complete the download-so opened iTunes but nothing happened- can anyone help me??

    Welcome to the Apple community.
    I'm not really sure what you did, however you can only purchase apps from the App Store not from individual websites. I've taken a look at the website myself and it does direct you to the App Store, is this what happened for you.

  • I need to display all the previous months sales.

    Hi Gurus,
    I have a requirement were i need to display all the previous months sales.
    i.e if a user enters sept 2011, then in report it should display from April 2011(which is the first month of fiscal year).h
    and also it should display total sales in another column till that month.
    Regards
    Arun

    Hi,
    Part 2 and Part 3 of the document.
    Link: [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f002c608-2533-2c10-25a1-d0e7f7b5b662?QuickLink=index&overridelayout=true]
    Link: [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10fc4382-afa6-2c10-1380-fa224fe4324f?QuickLink=index&overridelayout=true]
    Documents by 'Surendra Kumar Reddy Koduru' are always useful. Try to go through all of them.
    All the best!!!

  • HI ALL SINCE TWO DAYS I AM DOWNLOADING VIBER BUT I AM NOT HAVING MY ACCESS CODE AND EVERY TIME I DELETE THE APPLICATION AND DOWNLOADING IT AGAIN BUT ALWAYS THE SAME RESULT PLEASE I NEED YOUR HELP FOR THE ACCESS CODE.MY PHONE NUMBER IS 0022996969896.THANKS

    HI ALL SINCE TWO DAYS I AM DOWNLOADING VIBER BUT I AM NOT HAVING MY ACCESS CODE AND EVERY TIME I DELETE THE APPLICATION AND DOWNLOADING IT AGAIN BUT ALWAYS THE SAME RESULT PLEASE I NEED YOUR HELP FOR THE ACCESS CODE.MY PHONE NUMBER IS 0022996969896.THANKS IN ADVANCE

    try this website this should help you http://helpme.viber.com/index.php?/Knowledgebase/List/Index/1/iphone

  • What are the differences between the Apple 64GB iPad Air with Retina Display and the Apple 64 iPad with Retina Display MD512LL/A 4th Generation

    what are the differences between the Apple 64GB iPad Air with Retina Display and the Apple 64 iPad with Retina Display MD512LL/A 4th Generation ?

    The iPad with retina display only comes in the 16GB version and it has the A6 processor which is a step down from the Air model. Having said that, I stream movies on my iPad 3 with retina and it has the A5 processor and the movies stream just fine as does everything else that I do on the internet.
    If 16GB is enough storage for you, the $100 savings compared to an iPad Air model is a fair amount of money and that might sway me if I was just worried about saving some money. However, that's not my style. I always go for the largest capacity that I can afford and the faster processor if I have the choice.
    Having said that, if it were me, I would select the 32 GB iPad Air. But in spite of the information that you provided in which you want to base your decision, only you can be the judge of what will be best for you, and remember that you cannot add storage capacity to the decide later. You can purchase external WiFi drives if you need the storage, but to me, that takes away from having the really small footprint and portability of only having to carry the iPad around gives you.

  • Whats the difference between the 13-inch: 2.5GHz with Retina display and the 2.6GHz macboock pro?

    whats the difference between the 13-inch: 2.5GHz with Retina display and the 2.6GHz macboock pro?

    http://www.apple.com/macbook-pro/specs-retina/
    At the top of the page youi can cycle between the Macbook Pro specs and the Macbook Pro with Retina specs.

  • The desktop of MacBookPro is cut when displayed in the 27"LED cinema disply

    the desktop of MacBookPro is cut when displayed in the 27" LED cinema display although the resolution of the display is 2560 x 1440 how can i make it cover all the display ?
    i found a resolution with comment called stretch but i didn't like the quality
    Regards

    Try moving the cursor off both the left and right sides of the MBP's display. It could be the displays are just not arranged as you expect them.
    This can be altered by going into Displays Preferences and, under the Arrangement tab, you can move the small blue rectangles, meant to represent the two displays, into an order which matches their true arrangement.

  • How to get all the index of "selected rows" in table control?

    Hi Gurus,
    I have a table control, wherein I need to get selected row so that I can get its respective TABIX.
    I know that the event for capturing selected row is in PAI.
    I also ensure that the w/ selColumn name in my screenpainter is exactly the same as my declaration in ABAP.
    TOP INCLUDE
    YPES: BEGIN OF Y_ZQID_CHECK,
            IDNUM           TYPE ZQID_CHECK-IDNUM,
            WERKS           TYPE ZQID_CHECK-WERKS,
            MATNR           TYPE ZQID_CHECK-MATNR,
            LICHA           TYPE ZQID_CHECK-LICHA,
            LIFNR           TYPE ZQID_CHECK-LIFNR,
            ECOA_S          TYPE ZQID_CHECK-ECOA_S,
            ID_STAT         TYPE ZQID_CHECK-ID_STAT,
            ID_DATE         TYPE ZQID_CHECK-ID_DATE,
            FLAG_MAILCOA(1) TYPE C,
            MARK(1)         TYPE C, "Name of w/ SelColumn in ScreenPainter: T_ZQIDCHECK_DISCH-MARK
           END   OF Y_ZQID_CHECK.
    DATA: T_ZQIDCHECK_DISCH TYPE STANDARD TABLE OF Y_ZQID_CHECK WITH HEADER LINE.
    PAI
    PROCESS AFTER INPUT.
    * MODULE USER_COMMAND_9004.
    LOOP AT T_ZQIDCHECK_DISCH.
      MODULE READ_TC_DISCH .
    ENDLOOP.
    module READ_TC_DISCH input.
      DATA: W_LINE_SEL TYPE SY-STEPL,
                  W_TABIX    LIKE SY-TABIX.
      GET CURSOR LINE W_LINE_SEL.
      W_TABIX = TC_ID_ONLY-TOP_LINE + w_LINE_SEL - 1.
      MODIFY T_ZQIDCHECK_DISCH INDEX TC_ID_ONLY-current_line.
    If I am selecting single row, I can properly get the selected index via debug.
    BUG:
    When I'm selecting multiple rows in table control, only the last row is always being read inside the loop of my table control.
    Please see the screenshot.
    [url]http://img268.imageshack.us/img268/5739/tcselectedrows.jpg[url]
    Notice in the debug screenshot, even if it's just in the 1st loop of table control, it automatically gets the 4th table control index, instead of the 2nd one.
    Helpful inputs will be appreciated.
    Thanks.
    Jaime
    Edited by: Jaime Cabanban on Dec 9, 2009 3:16 PM

    Hi,
    Are you sure that you have selected multiple line for tablecontrol in the property window of the tablecontrol.
    Flowlogic.
    LOOP WITH CONTROL TC_01.
         Module Get_Marked.
    ENDLOOP.
    Module Pool
    Module Get_Marked.
    read the data from the internal table where mark  = 'X'.
    this should give you only selected records.
    Endmodule.
    Kindly check the tablecontrol property.
    Regards,
    Ranjith Nambiar

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

    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.rowKeyStr} in the from value of the buttons action listner but here this is not valid a red line appears when i write this in the from value , in the expression builder when i expand the jsp objects i can't find row node also if i expand the bindings node i can't find my attributes!! .
    please some one help me to do my task .
    thanks for care ,
    Ahmed Oraby

    Hi All,
    I am also trying to access the #{row.some_Attribute} of a table of the selected row. But it does not run it correctly. It says the reference to row can not be found. Any idea how to access the #{row.something} in ADF 11g.
    Thanks,
    Neeraj

Maybe you are looking for