TableView: keep the selected page

I use a htmlb:tableView with 50 - 100 entries.
The visible row size is 20, so I have multiple pages.
Is there a way to keep the selected page after a round trip.
At the moment, the first page is shown after each round trip, no matter which page was selected before.

Hi Daniel,
I have the same problem and I wish I had a solution like displayed upon :-). Here some hacking.
First in DO_HANDLE_EVENT method of controller:
* keep selected page of table view
  DATA: lcltvevt TYPE REF TO cl_htmlb_event_tableview.
* first get the correct event
  IF htmlb_event->if_htmlb_data~event_name = 'tableView'.
    lcltvevt ?= htmlb_event.
    IF lcltvevt->id = 'MY_CDAG_TABLE' "your tableView id
      AND lcltvevt->event_type = 'navigate'
      AND lcltvevt->navigationmode = 'BYPAGE'.
*     navigate pageDown, pageUp, top, bottom
      CASE lcltvevt->navigationtype.
        WHEN 'Index'.
*       sorry I have no idea for index
        WHEN 'pageDown'.
*         hold data in model instance       
          lcl_mo->cdag_add_info-firstvisrow =
          lcltvevt->firstvisiblerow +
          lcltvevt->visiblerowcount.
        WHEN 'pageUp'.
          lcl_mo->cdag_add_info-firstvisrow =
          lcltvevt->firstvisiblerow -
          lcltvevt->visiblerowcount.
        WHEN 'top'.
          lcl_mo->cdag_add_info-firstvisrow = 1.
        WHEN 'bottom'.
          lcl_mo->cdag_add_info-firstvisrow =
          ( lcltvevt->rowcount DIV
          lcltvevt->visiblerowcount )
          * lcltvevt->visiblerowcount + 1.
      ENDCASE.
    ENDIF.
  ENDIF.
secondary in the view:
          <htmlb:tableView id              = "MY_CDAG_TABLE"
                           visibleRowCount = "12"
                           fillUpEmptyRows = "false"
                           allRowsEditable = "X"
                           table           = "//MODEL/CDAG"
                           headerVisible   = "FALSE"
                           iterator        = "<%= it_cdag %>"
                           visibleFirstRow = "<%=model->cdag_add_info-firstvisrow%>" />
If you want to get the index, try this
* check for selection mode (for later using internal)
  CALL METHOD request->get_form_field
    EXPORTING
      name  = `htmlbevt_par1`
    RECEIVING
      value = l_name_of_event.
* l_name_of_event is something like "Index,1,12,20,P" on index selection.

Similar Messages

  • How to keep the selection as the old when I select one and click the submit

    maybe it is a HTML problem,but I still ask for help here!
    When I select one option in the form's element-select and submit it ,I want to keep the JSP page as old, but I can't .I also use cookie and bean.The problem is still being.

    store the parameter names and their corresponding values in a variable, say Hashtable. After you do the submit, you can retrieve the values from the hashtable.
    example:
    if you have these parameter names:
    "name", "age"
    then you can do:
    Hashtable h = new Hashtable();
    h.put("name", request.getParameter("name"));
    h.put("age", request.getParameter("age"));Have this hashtable available in your response jsp so you can retrive the old data.

  • I am trying to delete pages from a PDF file. I opened the bookmarks, selected the pages to delete and choose Edit Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    I am trying to delete pages from a PDF file. I opened the bookmarks in the PDF file, selected the pages to delete and choose Edit > Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    Resolved

  • How to keep the whole page open during browsing

    I am trying to work out how to keep the whole page open in Safari i.e. the top most line with the Apple logo, file, edit, view etc. whilst browsing.  What is the setting to achieve this ?  Since installing Yosemite my MBP 2011 with SSD is behaving oddly at times. Where is the "back" when in Support Communities or is going into the history tab the only way ?
    thanks

    When in the ASC pages, my method involves opening separate windows.
    So I can go back to the reference page from where I first visited a thread.
    Also, pages open faster at times into a new window instead of a tab. As
    my setup has a bit more display than necessary, a few extra windows are
    easier than a bunch of tabs in one frame that have no point of reference.
    Plus, if I wish to copy/paste or drag into another window, or access extra
    content for the sake of reference, I have that; & may use another browser.
    For some content, different browsers may be a preference. I'm used to more
    than two, and one of three becomes more dedicated to things like web mail.
    There may be some options in launchpad items, such as they are.
    Mission Control can access other hidden windows. There's a short
    cut for Full Screen that when used again, reverts to previous size.
    Not sure if this gets near your question, but thought I'd put it out here anyway.
    edited

  • How to get UIDRef of the selected page item in indesign cs3

    Hi,
        I want to get the UIDRef of the selected page item like Rectangle Frame. Can you show me the complete code snippet to get the UIDRef of selected Rectangle Frame. I need this UIDRef for getting the geometric bounds properties(width and height) of the selected rectangle frame to display the user in dialog box.
    Regards,
    K.Saravanan.

    Hi,
    UIDList selection;
    InterfacePtr<ISelectionManager> pSelectionManager(Utils<ISelectionUtils>()->GetActiveSelection(), ISelectionManager::kDefaultIID);
    if(pSelectionManager == nil){
    break;
    InterfacePtr<ILayoutTarget> pLayoutTarget(pSelectionManager->QueryConcreteSelectionBoss(kNewLayoutSelectionBoss), ILayoutTarget::kDefaultIID);
    if(pLayoutTarget == nil){
    break;
    selection = pLayoutTarget->GetUIDList(kDontStripStandoffs);
    Then, you can use this interface "IGeometry" to get information about spline size.
    InterfacePtr<IGeometry> pGeometry(selection.GetRef(i), IGeometry::kDefaultIID);
    if(pGeometry== nil){
    break;
    PMRect splineBounds = pGeometry->GetStrokeBoundingBox();
    PMReal width = splineBounds.Height();
    PMReal hight = splineBounds.Width();
    Regards,

  • I would like to change the project page layouts, but setup option in Project Superuser are not available. How can I change the selected page layouts?

    Hi
    I updated the page layouts for a project in Project Management. Now I woujld like to change those chosen page layouts, but the setup options for the project are no longer available for me to change. How can I update the original chosen page layouts (for performance management) to different layouts or change the chosen layouts to the default (blank) layouts?
    Thanks
    Chris van de Graaf

    AppleMan,
    It all began inside the settings of my Sanyo VPC-HD2000A when somehow the selection got switched from 1280 x 720 to that other setting with so-called 25fps. Also, I don't know whether the mishap occurred before or after I took my new footage.
    I edited the clips last night and now they are on my blog and channel and they seem ok but slightly fuzzy.
    I used a Sanyo VPC-HD2000A .7x wide angle lens with macro and I notice that when I zoomed in to the little sun conure, the picture blurred. I think that might be something that happens when one zooms the focus.
    Also, I was born and raised to a teenager in Hawaii, but now Southern California has me in its grip.
    -L

  • Htmlb:tableView Recover the selected row

    Hi.
    How can I recover the selected row in a internal table, with the htmlb:tableView, in the onInputProcessing?
    Thanks very much!
    I'm using this sentence in the "layout":
    <!-- Visualizamos Línea de selección + tabla interna -->
        <htmlb:tableView id             = "myTableView"
                         visibleRowCount = "<%= c_ver_registros %>"
                         width                 = "<%= c_ancho_tabla %>"
                         selectionMode    = "SINGLESELECT"
                         table                  = "<%= T_TABLA %>" >
        </htmlb:tableView>
    null

    hi Marcos,
        While calling the Tableview in the layout get the selected row index in the attribute <b>selectedRowIndex = "<%= var_selectedindex %>"</b>   { where var_selectedindex should be defined as a pageattribute} the tableview definition should be like this..
    <htmlb:tableView id = "myTableView"
    visibleRowCount = "<%= c_ver_registros %>"
    width = "<%= c_ancho_tabla %>"
    selectionMode = "SINGLESELECT"
    <b>selectedRowIndex = "<%= var_selectedindex %>"</b>
    table = "<%= T_TABLA %>" >
    </htmlb:tableView>
    And in the <b>inputprocessing</b> ,
    Try this code..
    IF htmlb_event IS NOT INITIAL AND htmlb_event->if_htmlb_data~event_name = 'tableView' AND
         ( htmlb_event->if_htmlb_data~event_type = 'cellClick'   OR
           htmlb_event->if_htmlb_data~event_type = 'rowSelection' OR
           htmlb_event->if_htmlb_data~event_type = 'navigate' ) .
        DATA  tableview_event TYPE REF TO cl_htmlb_event_tableview.
        tableview_event ?= htmlb_event.
          IF lr_tableview_event->selectedrowindex IS NOT INITIAL .
               var_selectedindex  =  tableview_event->selectedrowindex.
        ENDIF.
      ENDIF.
    regards,
    Bhanu.

  • Jtable keep the selected cells' background

    hi,
    I want to change the background color of the selected cells.
    after selection, I may do another selection,but I want to keep the previous selected cells' background color.
    any help will be appreciated!
    thanks!
    zhangv

    Did you try using Ctrl + Mouse Click ?
    Remember you need to set following property before you try the above solution:
    tableObj.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION );

  • I can no longer play movies since upgrading to iOS8.  The videos will flip to the play screen then immediately flip back to the selection page.

    I am using an iPAD2 with 32gbytes on iOS8.1.1.
    After upgrading to iOS8.0, the movies I had on my iPAD no longer would play.  When I select a movie, it changes to the play screen, then immediately flips back to the selection screen.  The movies are in the :movies" category.  I tried to reclassify them to "home movies" under the INFO option, but it is grayed out.
    I did just copy another movie and it automatically was classified as a "home movie" and it play just fine.  My guess is this has something to do with the category it is in.  However, I cannot change the categories on the previous movies.
    Any help is appreciated.

    Can you record and play new VMs?
    Can you sync them to your computer?
    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from a back that was made then the VM played back. See:                                                
    iOS: How to back up                                                                                     

  • How to keep the select arrow on the same button when returning to the menue after finished feature?

    Hello,
    just after my primary question is answered and I corrected my buttons there's another one which I cannot answer myself:
    I'm putting together a DVD with menues which contain a lot of options/buttons. People who watched the DVD wanted that the select/highlight arrow stays/returns to the button they selected prior. That's because there are so many buttons/options that some people might not remember which feature they just watched. So this means if people select the "Vacation 2008" button/feature the select/highlight arrow should be on the same button after the feature is finished and it returns to the menue.
    Since I haven't seen any functions/options for this: Is it possible to do or isn't it or does it happen just naturally?
    Hope this isn't too confusing :-)
    Help is appreciated!
    Thank you,
    Chris...

    ChrisHei wrote:
    Where would I select "Last Menu" for this to happen? In the properties for the button or for the timeline? And where exactly: "overwrite" or "remote menu" selection?
    Not in any override. Don't set any overrides unless you understand exactly how they work, or they will royally mess up your disc navigation.
    Normally, you select "Return to Last Menu" for an end action of the object (timeline, slideshow, playlist, etc.) that is playing. You can also set the Menu Remote property for the timeline/slideshow to "Return to Last Menu".

  • Can I keep some selected pages unpublished?

    I have a website, published to an FTP site, with a bunch of pages. Is there a way that I can specify which pages are published, and which are not?
    I would want to do this if I am working on a new page, but don't yet have it finished, but in the meantime I want to update another page on the same site. If I click on "Publish" every page on that site gets published.
    Is moving the page off of that site my only option?
    Thanks!

    Yes. Go to the Inspector/Page/Page pane and remove the page from the navbar. It will be published but not be present in the navbar so visitors will not know it exists.
    Click to view full size
    OT

  • Make a region editable while keeping the entire page as read only

    Hi All,
    I have made an entire page as readonly via the following :
    ClientUtil.setViewOnlyRecursive(pageContext, webBean);
    Now I want the entire page to be readonly except for a sub tab used in the page.
    <oa:subTabLayout id="subTabLayoutRn">
      <ui:contents>
        <oa:header id="tasksTabRN" extends="/oracle/apps/ozf/claim/webui/TasksTabRN"/>
      </ui:contents>
      <ui:subTabs>
        <oa:subTabBar id="subTabBarsRN">
          <ui:contents>
            <oa:link id="tasksTabLink" text="Tasks">
               <ui:primaryClientAction>
                  <ui:firePartialAction event="updateSubTab"/>
               </ui:primaryClientAction>
             </oa:link>
          </ui:contents>
       </oa:subTabBar>
      </ui:subTabs>
    </oa:subTabLayout>
    This sub tab i want to display as editable. Can anyone kindly provide any suggestions on how to achieve this?
    Thanks,
    Arpita

    Hi Sushant,
    Thanks for the reply.
    I am using setViewOnlyRecursive on condition basis only i.e.
    If (status of claim is close / cancelled / pending_approval)
    then
    ClientUtil.setViewOnlyRecursive(pageContext, webBean);
    But I want to make tasksTabRN of the subTabLayout as editable if status of claim is pending_approval.
    How do i code this condition ?
    In the below code, we can get the subTabLayout control but what to do next?
    if(webBean!=null)
    OASubTabLayoutBean subTabLayoutBean = (OASubTabLayoutBean)webBean.findIndexedChildRecursive("subTabLayoutRn");
    if(subTabLayoutBean!=null)
    UINodeList childList = subTabLayoutBean.getIndexedNodeList();
    if(childList!=null)
    RenderingContext rdgCtxt = pageContext.getRenderingContext();
    int size = childList.size(rdgCtxt);
    OAWebBean child = null;
    for(int i=0; i<size; i++)
    child = (OAWebBean)childList.getUINode(rdgCtxt, i);
    if(child!=null)
    String name = child.getUINodeName();
    if("tasksTabRN".equals(name))
    // We can set the value of  subTabLayoutBean as rendered or hideSubTab
    // But how do i make this as editable.
    //subTabLayoutBean. ????
    break;

  • I checked do not track but when I reboot it's unchecked. I can't keep the main page MSNBC when I reboot after making it my start page. I asked to clear history on exit but when I reboot it back at never delete.

    When I reboot after checking the box NOT to track it is unchecked. After making MSNBC my starting page and I reboot it goes back to Mozilla Firefox and another tab comes up with it Mozilla Firefox Start Page, how do I get rid of the second tab and keep MSNBC? I also selected to NEVER keep history to delete it when I exit and after rebooting it has keep history.
    Thanks,
    DG

    Try the following:
    close iWeb.
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home/Library/Preferences folder.
    go to your Home/Library/Caches/com.apple.iWeb folder and delete its contents.
    reboot.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • I can't keep the web page zoomed out, after I click a link or go to a differnet page, it goes back to being zoomed in, what can I do to keep it that way?

    I went to the toolbar, clicked on View, then Zoom, then Zoom Out. It does Zoom Out, but after I click a link or go to another web page, it Zoom's right back in. How do I keep it Zoomed Out where I want it permanetly?

    If you need to adjust the font size on websites then look at:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592

  • Trouble in finding enough master pages for the creation of books, and to keep the master pages I create

    I am frustrating the the small number of master pages available to create books in Aperture; it is much smaller than in iPhoto. Is it possible to access more master pages?
    I created new master pages, but I can use them only for the book into which I created them. How can I keep them for all my projects? Many thanks in advance.

    My Firefox remembers history from over a year ago, and unless you are using a setting or external tool to clear it, or load huge numbers of pages/download huge numbers of files, Firefox should pretty easily remember links you've accessed in recent months.
    To see what Firefox has computed as the number of URLs to remember, you can check here:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''.hist''' and pause while the list is filtered
    (3) Look for '''places.history.expiration.transient_current_max_pages'''
    Mine's set to 104858. I don't know how that was determined.

Maybe you are looking for

  • Asset Revaluation issue - Reval of Current year depreciation

    Hi All, We are setting up the system to do asset revaluation for our company code in South America. My client wants to revalue the assets from Jul'09 to Dec'09. 1) We have maintained inflation indexes for the last day of each period in the year 2009.

  • Redhat or suse linux installation on lenovo g560

    Hi, I have a linovo g560 with os window xp,now i want to install redhat linux,also tried to install suse linux on my laptop with cd.but after some screen and runnibg kernel the cd drive and hard drive detection gets failed.and the installation mode g

  • Adobe 9 Pro Extended

    Hi Have a copy of the free Adobe 9 and want to upgrade it to include the above. Have attempted the upgrade to 9.4.5 but that didn't work. Any advice/tips/instructions/pointers would be most appreciated. Thx & rgds Mike

  • HT1338 How do you get abode flash player to work on a Macbook Pro Retina?

    I have downloaded the latest version of Abode Flash Player but it still does not work on You Tube, do I need to change any settings on my Mac?

  • Any issues with Premiere CS5 and CS4 on the same machine?

    I want to install the trail version of Premiere CS5, but I want to know if I'll still be able to run CS4 if needed during the trial period, as well as after the trial period if I decide not to upgrade.  Does uninstalling CS5 mess up CS4 in any way? J