Htmlb:tableView - automatic refresh

<b>Hi,</b>
I use htmlb:tableView  to display data.
Have you any idea how to do automatic refresh to the tableView ?
<b>Thanks, Natalia.</b>

Here is the Sample code which reload every 2 seconds..
Look at the ouput:
http://grizzlyweb.com/webmaster/javascripts/examples/refresh.htm
<html>
<head>
<title>Refresh JavaScript Example</title>
<noscript>
<meta http-equiv="refresh" content="2">
</noscript>
<script language="JavaScript">
<!--
var sURL = unescape(window.location.pathname);
function doLoad()
    // the timeout value should be the same as in the "refresh" meta-tag
    setTimeout( "refresh()", 2*1000 );
function refresh()
    window.location.href = sURL;
//-->
</script>
<script language="JavaScript1.1">
<!--
function refresh()
    window.location.replace( sURL );
//-->
</script>
<script language="JavaScript1.2">
<!--
function refresh()
    window.location.reload( false );
//-->
</script>
</head>
<!--
    Use the "onload" event to start the refresh process.
-->
<body onload="doLoad()">
<script language="JavaScript">
<!--
    document.write('<b>' + (new Date).toLocaleString() + '</b>');
//-->
</script>
</body>
</html>
For more detail look at the below link..
http://grizzlyweb.com/webmaster/javascripts/refresh.asp
<i>* Reward each useful answer.</i>
Raja T

Similar Messages

  • Tableview getting refreshed when changing data in the rows

    Hi Gurus,
    Iu2019m doing a BSP with MVC. The requirement is as below.
    In the main page there is a button u2018Create Orderu2019, to create a sales order, once I click this button, another screen (pop up) comes up and within that I have a Tableview display with the below fields with the data of 20 records.
    Material no
    Quantity
    Delivery Date
    Here user is allowed to choose the quantity and delivery date by selecting each row.(with MULTISELECT option in BSP)
    The issue is after I select first row and change the quantity and date, and if I click on second row, the Tableview gets refreshed to enable the second row to be editable and the changes what I did on the first row are also refreshed.
    So i want the Tableview not to be refreshed when selecting the multiple rows. So that I can keep the changes I make to the quantity and date fields Can you please suggest any method.
    Cheers,
    Srini.

    Hi Srinivas,
    You need to capture the value entered by user in Quantity and date field and update the internal table with these values for the current selected row.
    For ex.
    The tableView code is like:
                          <htmlb:tableView id                  = "material"
                                     headerText          = "<%= otr(Z_SUS/HEADER_TEXT_MATERIALS) %>"
                                     headerVisible       = "true"
                                     design              = "alternating"
                                     onRowSelection      = "MyEventRowSelection"
                                     selectionMode       = "MULTILINEEDIT"
                                     width               = "880"
                                     filter              = "SERVER"
                                     emptyTableText      = "<%= otr(Z_SUS/EMPTYTABLE_MATERIALS) %>"
                                     iterator            = "<%= iterator %>"
                                     table               = "<%= gt_materials %>" />
    In eventhandler OnInputProcessing :
    DATA: lt_fields type tihttpnvp ,
               ls_fields like line of lt_fields.
    call method request->get_form_fields
                changing
                  fields = lt_fields
    Now the internal table lt_fields contains all the editable cell values , just update the internal table of your tableview with these values.
    You can try these threads
    [Thread-I.|Re: Retrieve changes made in tableView]
    [Thread-II|https://forums.sdn.sap.com/click.jspa?searchID=24460585&messageID=5516977]
    Search the forum for more information on this.
    Regards,
    Anubhav

  • HTMLB: tableview filter problems

    Hi,
    We developed a BSP application in CRM Web_IC. Whenever user goes to this screen, it retrieves the results from SAP CRM table and lists the entries. We used htmlb:tableview with filter attribute set to 'SERVER'. The first row of the entry is used to filter the entries displayed based on wildcard search and redisplay the same.
    We noticed that all this handled by client side eventing (Java Script) and it works okay in our development and testing environment.
    But we got wierd results when it went for user testing. On some of the machines, the page looks refreshed but the list display does not change based on the search. We thought it might be caching problem so we tried with different IE settings, it looks okay for some time on one of the machines but the problem gets repeated after wards. The situation is we cannot afford intermittent problems.
    OS are win'2000 and XP and browser is IE 6 with sp1 and sp2. The problem is not consistent so none of the combinations actually suggested if the problem is related to one area.
    Has anyone experienced similar to above. Any ideas are welcome.
    Message was edited by: Raju Datla

    Thanks Rainer,
    Without making any changes, today majority of the users are did not encounter the problem. I could not check the browser server cache settings as the BSP is using MVC and these fields are missing.
    Thanks and Regards,
    Raju
    I lost how to add points. I remember there was a document on how to add points, which I could not get by search. Could you help me how I can award points to you.
    Sorry for that and Thanks
    Message was edited by: Raju Datla

  • ICWC htmlb:tableview filter problems

    Hi,
    We developed a BSP application in CRM Web_IC. Whenever user goes to this screen, it retrieves the results from SAP CRM table and lists the entries. We used htmlb:tableview with filter attribute set to 'SERVER'. The first row of the entry is used to filter the entries displayed based on wildcard search and redisplay the same.
    We noticed that all this handled by client side eventing (Java Script) and it works okay in our development and testing environment.
    But we got wierd results when it went for user testing. On some of the machines, the page looks refreshed but the list display does not change based on the search. We thought it might be caching problem so we tried with different IE settings, it looks okay for some time on one of the machines but the problem gets repeated after wards. The situation is we cannot afford intermittent problems.
    OS are win'2000 and XP and browser is IE 6 with sp1 and sp2. The problem is not consistent so none of the combinations actually suggested if the problem is related to one area.
    Has anyone experienced similar to above. Any ideas are welcome.

    Hi Sasi,
    Unfortunately I could not get any direct solution to the problem. I chased SAP OSS and SAP direct consultant who was working with us with no solution. Last time, I heard it was sent to htmlb team at SAP. I stopped chasing after that as project gone live and I fixed the problem by putting a search area and button using client side eventing. 
    If you read the source code once the page is displayed, you can see that SAP writes Javascript to handle the search. I copied the code as Javascript function and placed a button to fire this function which handles the filter as normally SAP does.
    Regards,
    Raju

  • How to insert check box fields in a htmlb: tableview

    Hi,
    Can anybody tell me how to insert check box fields in a htmlb: tableview in a sequence of rows in a table view. How to generate the sequence no for the checkbox inorder to know the row that is checked.
    Thanks in advance,
    Aruna.

    Here is the code which has the custom "Checkbox" in the tableview & Triggers the event. <b>You can identify the checkbox based on cell ID (p_cell_id)</b> in the method "IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START" & Based on the event name + Cell ID. Look at the code & let me know if you any issue.
    <b>Layout:</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "design2002+design2003"
                   controlRendering = "SAP"
                   rtlAutoSwitch    = "true"
                   forceEncode      = "ENABLED" >
      <htmlb:page title="Test " >
        <htmlb:form>
          <%
      data TV_ITERATOR Type Ref To zcl_itr.
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = application.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id              = "fligts"
                           headerText      = "Flight"
                           width           = "100"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "10"
                           fillUpEmptyRows = "true"
                           showNoMatchText = "true"
                           filter          = "server"
                           sort            = "server"
                           onHeaderClick   = "MyEventHeaderClick"
                           table           = "<%= APPLICATION->itab %>"
                           iterator        = "<%= ITERATOR %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Event Handling:</b>
    DATA: EVENT_ID1 TYPE REF TO IF_HTMLB_DATA.
    EVENT_ID1 = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    CASE EVENT_ID1->EVENT_SERVER_NAME.
    IF NOT event_id1 IS INITIAL.
       if event_id1->server_event+0(9) = 'chkevent'.
      SPLIT event_id1->server_event AT '-' INTO v_event v_dummy v_row v_col.
      endif.
    endif.
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS.
         CLEAR p_column_definitions.
        CLEAR p_overwrites.
        DATA: tv_column  TYPE TABLEVIEWCONTROL.
        tv_column-COLUMNNAME  = 'FLDATE'.
        tv_column-edit        = 'X'.
        tv_column-sort        = 'X'.
        tv_column-TITLE               = 'Flight Date'.
        tv_column-WIDTH  = '100'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CONNID'.
        tv_column-TITLE               = 'Conn.ID'.
        tv_column-WIDTH  = '70'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CHECKBOX1'.
        tv_column-TITLE               = 'Check Box'.
        tv_column-WIDTH  = '30'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
    endmethod.
    METHOD IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
           DATA: L_EVENT TYPE STRING.
      CASE P_TABLEVIEW_ID.
        WHEN 'fligts'.
          CASE P_COLUMN_KEY.
            WHEN 'CHECKBOX1'.
    *          CONCATENATE 'chk_event' '123' '2323' INTO L_EVENT SEPARATED BY '-' .
    CONCATENATE 'chkevent' p_cell_id INTO l_event SEPARATED BY '-'.
              P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY( ID = P_CELL_ID
            ONCLICK = L_EVENT CHECKED = 'false' ).
          ENDCASE.
      ENDCASE.
    ENDMETHOD.
    Hope this will solve your problem.
    <b><i>* Reward each helpful answer.</i></b>
    Raja T
    Message was edited by:
            Raja T

  • Is there a way to automatically refresh a webpage in Firefox 3.6.10?

    hi there,
    I am hoping the Firefox team can help with a small problem, is there a way of automatically refreshing webpages within Firefox 3.6.10 and 4.06 beta? We are building an interesting website at the moment and the client is using Firefox 3.6.10to view the site. Each time they go onto the new website to see the changes we have done, they are shown old pages. We need to rectify this problem as quickly as possible, for our client without requesting that they refresh the page each time they go onto the site.

    You can do that by changing a hidden preference.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # In the filter box type '''browser.cache''' to bring up a small number of preferences
    # Double-click on the preference '''browser.cache.check_doc_frequency''' and change its value to '''1'''
    For more details on that preference see http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • When I sign into or out of Gmail - many other pages automatically refresh. How do I stop this?

    I hate automated things, when it's NON consensual and it's part of some automated bullshit trip.
    I might have half finished texts on the other open tabs, or what ever, but it's MY bandwidth to chew up on things I see fit, not the people of Mozilla, or Google or whoever.
    And while the account page is gmail, that I am signing into or out of, the other pages are NOT google pages either.
    I think the designers of the "refresh / automatic refresh" should be shot - because the reason I have a PAGE (tab) open, is because I want to access THAT page, and not a later version of it...
    This auto-reload / refresh of some tabs absolutely annoys the piss out of me, because I did not ask for it, and there is NO apparently easy up front way to stop it from happening - which I also think is one of the best way to alienate users of a product - by building in a host of idiot functions with NO control over them.
    So how do i stop this from happening?

    ''the-edmeister [[#answer-690349|said]]''
    <blockquote>
    That may be happening for websites that participate in Google+. ''IOW, Google+ knows about a lot of things you use on the internet; like they're following you around.'' You may want to check those websites to verify that they are connected with the Google+ program, or not. ''In that case, my hypothesis is incorrect.''
    I think what happens is that you sign in at Gmail, which is a Google+ sign-in these days, and all the other web pages that participate in the Google+ program somehow "sense" that you have just logged into Google+ and reload their page to reflect that you are nowlogged into the Google+ program. Google+ was originally an "option" at Gmail, but that ended not to long after Google+ came about - like within 6 months or so.
    http://www.google.com/intl/en/+/learnmore/better/
    One solution is to stay logged into Google+ / Gmail all the time. Another is to transition away from Gmail over time and use a different web-mail platform instead; and eventually stop using Gmail altogether.
    </blockquote>
    Yeah this is sounding like "THE PROBLEM" and what drives it. However, the solutions you have offered are not "solutions", in that they do not "FIX" the issues, they merely circumvent or bypass them.
    Since I can't go punch Eric Schmitt on the nose for being a nazi prick, and send him the bill for wasting my internet data, I want to stop the collusive programming practices of the people from Mozilla and Google - from operating my computer, contrary to my mandates. i.e. It's my computer and I am paying for my bandwidth." - I have total say so about what I allow to go on, not anyone else.

  • Error when displaying amount field in HTMLB Tableview

    Hi all,
       I am displaying some 'X' table in HTMLB Tableview and it has one amount field.But reference(currency) field of that amount field is in other table . I know it gives the error.
    Please tell me there is any other way to resolve this problem with out adding reference(currency)field in the same table?
    Thanks and Regards ,
    Harikrishna .

    Hi Hari,
    But reference(currency) field of that amount field is in other table . I know it gives the error.
    It will not give any error , you can use the currency key field of other table or structure .
    Alternatively you can use  predifined type DEC instaed of CURR  .
    Regards,
    Anubhav

  • Grouping Key Rows In HTMLB Tableview BSP

    Hello Experts,
    I've a HTMLB Tableview in BSP Application. I need to group the key rows with same value into one.
    Current Layout
    KEY  VALUE 1    VALUE 2
    A       X                 Y
    A       X                 Y
    B       X                 Y
    B       X                 Y
    Required Layout
    KEY  VALUE 1    VALUE 2
    A       X                 Y
              X                 Y
    B       X                 Y
             X                 Y
    It's somewhat similar to grouping the key rows in ALV. Not sure how to achieve this in BSP.
    Please help....
    Regards,
    Satyajit
    PS: Posted this thread in BSP Forum earlier and haven't got any response yet. So reposting it in ABAP General for a quick response.

    Hi Satyajit Mohapatra,
    please refer to fixedColumns. Therefore check on your system:
    BSP: SBSPEXT_TABLE
    Page: TableViewFixedColumns.bsp
    There you can find the solution.
    Regards, Jonas

  • I want to prevent open websites from automatically refreshing.

    I work with many tabs open at the same time during my work day. I wonder if the fact that they automatically refresh frequently is a factor in slowing Firefox. How can I disable the automatic refresh? I do not with to close and reopen as they all require logins and it takes too much time.

    Sorry, it looks that my reply above ended up in the wrong thread.
    I'm not aware of a way to prevent automatic refresh if the page uses JavaScript to achieve this.
    It is also possible to do this via a meta refresh tag.
    In some cases this extension can help.
    *RefreshBlocker: https://addons.mozilla.org/en-US/firefox/addon/refreshblocker/
    It doesn't work with refresh done via JavaScript as will be used in most cases these days.

  • Automatic refresh of photo order when changing photo titles in iPhoto 9.6

    I've just moved from an older version of iPhoto to 9.6.
    In the previous version, when you changed the title of a photo (within an event), the sort order of the photos was automatically and immediately updated.  In 9.6 it isn't - I have to do View - Sort Photos then select another sort criteria (e.g. date), then do this again for title, to get the photo order to refresh.
    Does anyone know if I am I stuck with this new (retrograde) behaviour, or if there's a way to get iPhoto 9.6 to automatically refresh the photo order?
    Otherwise, is there a keyboard shortcut for refreshing the photo order, or for changing the view - sort photos criteria?
    Thanks in advance for any help!

    It will resort if you leave the Event (click All Events button) and then go back.  Not a good solution but quicker IMO than using the View ➙ Sort menu method. 
    Be sure to send a bug report to Apple via http://www.apple.com/feedback/iphoto.html.

  • UWL: No automatic refresh after completing workitem in iView

    Hi,
    our system is EP 6 SP2 P4 HF 7 with CM HF 6.
    We have configured a workitem launched by an individual iview - this works fine.
    For execution of this workitem we call SAP_WAPI_CREATE_EVENT and save values in simple_container. After this SWW_WI_ADMIN_COMPLETE is called to complete the workitem to be cleared from UWL inbox.
    If I refresh the tab manual all works fine - the completed workitem is not more there. But with automatic refresh this executed workitem is still listed.
    Do you have any idea what we are doing wrong?
    Configuration in uwl.standard:
      <Views>
        <View name="myWorkItemView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.DE9_TS99500153" columnOrder="detailIcon, subject, priority, creatorId, createdDate, dueDate" sortby="createDate:descend, priority:descend" tableDesign="STANDARD" visibleRowCount="20" headerVisible="yes" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="60" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" actionPosition="top">
    I appreciate your help,
    thanks in advance,
    Thorsten Bingmann

    Hi Ross,
    concerning our problem (no WI completion by auto refreshing UWL) we have yet no solution. SAP Support told us to configure the cache lifetime of UWL to smaller size, but alas this does not solve the problem.
    As you mentioned the blank webgui screen: I think this behaviour is by design. Calling an ITS transaction there's no other way to end the ITS session as of using the back or return button and get an end of session. The given status (WI new status: completed) indicates that UWL and ITS process the WI correct.
    A smarter way to execute the concerning WI ID is to configure it in the xml file as generic decision task. Then you'll get an inline rendered java iview with decision "accept" or "decline" and the new status will be shown in UWL. This will take place of (standard) ITS configuration. Please have a look at the HowTo Guide of UWL.
    Hope it helps,
    regards,
    Thorsten Bingmann

  • My aol inbox does not automatically refresh and display new messages in firefox, but it does in google chrome. How do I fix this?

    I have been trying to update settings to allow my aol mail to automatically refresh when new messages come in, vs having to click on the "inbox" in order to view new messages. I followed aol's troubleshooting steps to allow for this, and I finally got it to work in google chrome... but it will not automatically refresh in firefox. can you please help? thanks!

    Which troubleshooting steps did you get?

  • Automatically refreshed workspace and changes into LIVE

    Hi,
    I've noticed that changes made directly into LIVE
    are immediately visible to automatically refreshed
    child workspaces. However the answer to the FAQ
    question "When sharing changes made in a child
    workspace with another child workspace, should I
    use periodic (manual) or continually (automatic)
    refresh?", states that this type of change must
    be refreshed manually.
    What is the expected behaviour afterall?
    Regards,
    Karina Borges

    Karina,
    For continually refreshed workspaces, changes made in the LIVE workspace will be immediately visible.
    For non-continually refreshed (NCR) workspaces, the changes are not immediately visible - to see the changes, NCR workspaces have to be manually refreshed.
    We will update the FAQ to make this point clearer.
    regards,
    - Ramesh.

  • Automatic refresh in the inbox.

    Hi There,
         We have implemented a new workflow project. Work items are not being refreshed automatically when the user comes back to the inbox.
    Is there any way we can automatically refresh the inbox.
    Joe Vellaiparambil

    Hi Joe,
    normally the inbox is refreshed automatically when you enter.
    We found the program that is called when you enter the inbox.
    Here you can add additional code.
    Function module: SINWP
    subroutine: append_folrg_to_tree
    Best regards,
    Werner.

Maybe you are looking for