Refreshing iViews

hi all,
i am having a scenario like this.
i have two iViews both having tableViews.
i am selecting multiple rows in the first iView and clicking the button. the selected rows has to be displayed in the second iview which has tableView.
i dont want the second iView to get refreshed at the same time  that of first one....
it has to be refreshed after few mins....since i am using portal service to set and get the data...
please do suggest some ideas...
regards,
purushothaman.

Hi Darrell,
first, I act on the assumption that both iViews are URL isolated. I totally agree that the scenario sounds like being better implemented in one iView, and all trouble would have been gone. But given the case of two iViews, let's look at the details:
> If you were to use EPCF eventing, the client side
> event would be called before the server side event,
> therefore refreshing the second iview before the first
> iview had saved the information.
Maybe, maybe not   It is correct that the client side event would be fired (and retrieved) first, before the first server roundtrip starts. But both iView server roundtrips would happen more or less in parallel, it's a race condition which is "faster" in updating / accessing a model (both requests with high probability will be served "in parallel" by two threads).
With the special situation when both models of the iViews get changed, one would have to implement some sync mechanism. This is more or less in deep discussed here: How to suspend thread of iView?
One alternative: Always have two models in memory of iV1, the actual and the last one, with some counter attached to it. And iV2 has a counter which model it expects at rendering time being the actual model (just increasing with every refresh). That way it would be regardless which iView wins the race: If models 7 & 8 are in memory and iV2 knows 8 is the actual one, on the scenario described it takes the values from model_8, independent if iV1 meanwhile has updated to model_9; iV2 anyhow knows that the next actual model will be model_9 -
Definitely, these techniques are all workarounds, and I'm already getting confused thinking of the JS part (but my hate for JS is a different topic). And if with POM eventing (I've never used it; is it documented? Does it work for URL isolation (don't expect that)?) this could be done easier - go that way.
OK, so far for today I think,
best regards
Detlev
PS: Points rewarded would be welcome

Similar Messages

  • Refresh Iview with changed iView properties

    Hi All,
    There are two iviews in a page..
    1) par Iview
    2) transaction iview
    If an event takes place in par file iview it should reflect in transaction iview also by changing the Tcode of transaction iview programmatically...
    we have to display the same page with the new values....
    is there any way to achieve this...
    Thanks
    RGNG

    Hi Raghavendra,
    You can trigger client events to refresh iviews.
    Please refer this SAP doumentation
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/aebf40b87e0366e10000000a1550b0/content.htm

  • Prompting Users to Refresh iViews in the Portal

    Hello SDN,
    How do I modify properties setting via Property Editor to prompt users to refresh the iViews PRIOR to execution?
    Please advice, thanks for any helps.
    Regards,
    NN

    Hi NN,
    This needs to be decided at the time of creating an iview only. However you can still edit that property by going to that ivew.
    Open that iview.
    Go to properties.
    Enable the Show 'Refresh' Option radio button.
    Secondly you can use the option of Cache Validity Period over there.
    If you are concerned about some webdynpro iview you can simply increase the connection timeout in the corresponding Jco connection.
    Hope this helps!
    Regards
    Atul Shrivastava

  • Refresh iView

    Is there a way to add a refresh button for an iView instead of using context menu?

    OK - I found that if I add the toolbar to the Innerpage as opposed to the framework the FrameworkTagLibrary anchors are working with the exception of the "addToPortalFavoritesAnchor" - which was the only one that DID work when I added the toolbar to the framework. 
    When I use the
    addToPortalFavoritesAnchor
    tag I get a javascript Error "Object Expected"  - I get the same error when trying to use the
    javascript functionAddToPortalFavorites();
    which is utilized by the lightPageToolbar provided by SAP.
    Any ideas on how to get the addToPortalFavorites working with this toolbar are appreciated.
    Edited by: TA on May 1, 2009 10:19 PM
    So the object expected that is missing is the function AddToPortalFavorites -> I have searched the javascript files for both the PageTitlebar and Frameworks but cannot find this functionality - any ideas on where to get this?

  • Refresh iViews problem....

    Hi,
    I am getting a serious problem under EP 6.0.
    Lets say that we have 2 browsers opened with the same page. In this page, we have an iView.
    If I run the iView on Page1, I display the result and everything works fine.
    If I do a refresh on Page 2, I get the result displayed in Page1.
    It means, that my iView cannot serve for multi users...because there is a refreshing problem.
    The problem may come from my static variables defined in my DynPage class....
    Can someone help ?
    Thanks.

    Hi David,
    I think I have understood your problem... In thread
    Table navigate and data persistence problem
    you will find a similar issue.
    As you already found out, the problem lies in storing persistence data in the class itself as new instances will be generated all the time.
    Your solution to this should be to write a bean (which is basically an ordinary Java class used for storing data, such as a complex data type in other languages) and store all your persistence data in there. Then, store the bean in the user's session and read in back out whenever you need the data. A code example for this follows...
    // writing persistence data in a user's session
    // assimung that we are somewhere inside a class that extends "DynPage"
    IPortalCompoonentRequest req = (IPortalCompoonentRequest)this.getRequest();
    IPortalComponentSession session = (IPortalComponentSession )req.getComponentSession();
    session.putValue("myFirstBean", bean); // note: bean is an instance of your custom bean class
    // reading persistence data stored in a user's session
    IPortalCompoonentRequest req = (IPortalCompoonentRequest)this.getRequest();
    IPortalComponentSession session = (IPortalComponentSession )req.getComponentSession();
    MyFirstBean bean  = (MyFirstBean)session.getValue("myFirstBean");
    Hope this could clearify some things,
    Dominik

  • Portal (refresh iviews)

    I'm working with iviews and folders in the Portal. When I',m in an iview, save data and then click on another folder, a message comes up saying the data is blocked for the same user who is logged on. It is like the buffer does not released when the user navigate through different folders in the Portal.  How can I solve this?

    once you edit any pcd object like iview or page, you need to clos that object after saving. Otherwise that particular objec will be locked.
    If it is locked accidentally then you need to unlock it by navgation to system admin->monitoring-> object locking
    Raghu

  • Prioritize order of iView loading and refresh

    Is there a way to specify the order iViews get loaded / refreshed on a page?
    I have some iviews on Navigation panel that I would like to load before the iviews loaded in the content area load. Unfortunately, they are loading the opposite way.
    Mark

    Hi Mark,
    There is no such ready to use feature to prioritize the order of iView loading.
    The only way to achieve this is to use the EPCF client site eventing feature and reload the Iview one after another.
    Prerequisite:
    IView should be URL Isolated on the Page
    Example senario:
    You have two IViews A and B and you want to load A after B loads. In IView B have a script to refresh IView A.
    EPCM.raiseEvent("urn:com.sapportals:pagebuilder", "refresh", )
    Greetings,
    Praveen Gudapati
    [Points are always welcome for helpful answers]

  • Webdynpro or VC IView refresh

    Hi,
    I would like to know how to refresh iview for every 1 hour using WebDynpro programming (Java) or is there any other method that we can do from portal.
    Also if I use VC for same requirement please let me know how to refresh iview for every 1 hour.

    You can use the UI element named TimedTrigger to refresh your page with a certain amount of delay in seconds. Just add one TimedTrigger element in the view you want to refresh - set the "delay" property with number of seconds you want - 3600 for your case. It should automatically refresh the page. You can also bind an action with this element to do some specific operation on each refresh.
    Hope it helps!!!
    Shubhadip

  • Can the universal worklist refresh automatically?

    When I open our universal worklist iview (EP 6), I need to click on refresh to get the most recent task list.  Is there a way to force a refresh every time the UWL iview is opened?
    Thank you.
    Jeff

    Hi all,
    We faced simular problems. The UWL iview does not auto refresh at startup, only if you press the refresh button itself. Our problem was of course if someone approved an item an returned from the BXP to the iview he still saw the old item. The workaround is nifty an we got some SDN help as well. Thanks again Thorsten Bingmann! The clue is to make a hidden iview on the UWL iviews page. When you start the page or return to this page the hidden iview triggers the refresh button event. One remarkt though. In our BSP for approval we had to build in a 2 second delay at the end. If you approve an item it takes a second so if you return to the UWL page to fast the refresh comes to early.
    I can provide the code for the iview if needed.
    Deploy as par to portal an create an iview based on this par.
    Enable EPCF Level to 1. Hide tray, heading and all other visible iview controls. Place UWL iview on top of page and hidden-refresh-iview to bottom of page to avoid ugly additional space on top of page. You will see solution working if after <waitduration-param> seconds mouse-cursor show working symbol and UWL will be refreshed.
    Hope this helps

  • Auto refresh/reload of content in km navigation iview?

    We are using loads of km navigation iviews to show content from km folders or taxonomy folders. Some of these are placed  on the portals front page (company news for example). Since many of our employees log into our portal in the morning and then keeps it in the background during the day without refreshing the page, they miss out on new items in these iviews. This could also apply to display screens in our factories.
    Does anyone have a solution as to how make these iviews refresh at certain intervals?
    Henning

    Hi Henning,
    have you fixed this issue?
    Could you please share with me the details?
    Thank you.
    Gio

  • Browser REFRESH button does not return to the same iView/Page

    Hi,
    In SDN site I have seen that in whichever menu i am in, if i use the browser refresh button i return to the same page. But this does not happen on my enterprise portal.
    Can you please let me know, how to set / configure the enterprise portal EP7 such that, if am in any iview and use the browser refresh, then i am returned to the same iview / page and not to the first page of the menu. Currently in my portal, when i hit the browser REFRESH button, it takes me to the first page/iview.
    Thanks,
    Anirban

    Dear Romano,
    Thanks for your reply. With the help of the document link that you have provided, i have been able to achieve my target partially. Currently i am able to refer to the iView and Role directly using the QuickLink and when i access that particular iView & Role using the QuickLink and then do a refresh, the same screen appears. This part is working fine. But i have one issue.
    But generally a iView/Role is accessed not via the QuickLink on the browser but by clicking on the Role on Navigation Level 1. Even though this Role has a QuickLink, it is not visible in the address bar since the QuickLink URL was not used for reaching the Role. In such a situation, when we press the REFRESH button, the iView / Role is vanished and the browser returns to the first default page of the portal.
    Can we somehow make it such that whenever the Role is accessed in the Navigation Levels, it can be accessed via QuickLinks and the QuickLink URL is displayed on the address bar ? If this can be achieved, then i guess the problem will be solved.
    I hope i have been able to get across my point. Hoping to hear a positive reply from your side.
    Thanks in advance.
    Regards,
    Anirban Kundu.

  • Issue with Refresh link avaiable in standard UWL iView

    Hi All,
    We have added the custom column "Comment" in the Tasks tab of UWL iView.In the Tasks tab we can view some rows in the table.When we click on one row it is opening the ABAP ADOBe forms.In this Form when we change the text for the field Comment and click on save button in adobe form then we can see the new text in SWI1 tcode for the work item id. But in portal the new text is not appearing in the custom comment column.If we click on Refresh link (this link is the standard link available in UWL iview) also the new text is not appearing.
    After clearing UWL Cashe from System Admin role after that we can able to see the new text in the comment column.
    If in Adobe form after changing the text we click on Check and Send button then on portal UWL automatically new text is appearing in commnet column.In this case no UWL cacshe release is required.
    Please find the attched document
    Can you please provide me the inputs why refersh link is not working to show the updated /modifiedd text in the comment column?
    Thanks & Regards,
    Susmita

    Hi Rajesh ,
    you can implement using java script also
    check below thread
    Implementing iView auto-refresh in JSP DynPages
    Koti Reddy

  • 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

  • Force universal worklist refresh when iView is opened

    Hi Experts,
    users are complaining because when they open the universal worklist iview, it still shows old work items, and sometimes they click on them by mistake raising some error message.
    Although I tried cleaning the cache, setting the cache validity to 1 minute we are not getting the expected results.
    What I would like to achieve is that when a user opens the uwl iview it remains "blocked"(not allowing the user to click on any task) until it is completely refreshed and al the work items are valid.
    any suggestions?
    We are using EP7.0 SP17.
    Best regards,
    Marco Ustarroz.

    Hi Rakesh.
    Go to System Administration --> System Configuration --> Universal Worklist & Workflow --> Universal Worklist - Administration
    1) Select you System Alias and click in Re-Register.
    2) Click in link Cache Administration Page, Select your system and click in Clear Cache.
    Good Luck
    Eduardo

  • Need a Single iView Refresh

    Hi
    Need an iView Refresh  at its own place
    Business Scenario
    Have a Portal Page with Layout of 2 columns
    Column 1  has a Webdynpro iView with drop Down content say
    Google
    Yahoo
    Column 2  has a URL iView with Google web page
    Now when User selects Yahoo In the Drop Down of webdynpro iView
    The Column 2 iView needs to change to Yahoo web page
    and when the user selects Google in the drop Down  the Column2 iView needs to change back to Google web page.
    The webpages needs to opened in the second iView area. i.e Column2 iView
    you can change the URL Dynamically using forcedURL method and it is working fine if I try to open in external window.
    Any Ideas
    Thank you
    Regards
    Krishna Kanth

    Hi,
    Sure, you can do that in a single statement. Here's one way:
    SELECT       employer_id
    FROM       employers
    WHERE       SUBSTR (name, 1, 1) BETWEEN  CASE p_batch
                                 WHEN  1  THEN  'A'
                                 WHEN  2  THEN  'N'
                               END
                         AND      CASE p_batch
                                 WHEN  1  THEN  'M'
                                 WHEN  2  THEN  'Z'
                               END
    AND       (     (     p_frequency = 2
              AND     freq_flag   = 2
           OR     p_frequency  = 1
    ORDER BY  name
    ;

Maybe you are looking for

  • Urgent issue REPORT FOR ALL MATERIAL BASED ON STOC TYPE

    Hi I want report for based on stock type i want to check the stock for all mterial with  stock type "quality inspction" i want that type of material documents is it possible to see the report regards sesidhar

  • Error Message in user-exit  EXIT_SAPLRRS0_001 in Query

    Hi, ABAP BW Guru's I got an ABAP  type problem with RANGE numeric variables  in EXIT_SAPLRRS0_001. With character or dates iuser-exits worke fine. My characteristic is CONNID Type  NUMC 4 My user-exit variable is named CONNID_EXIT_STEP_2. My ABAP pro

  • Upgrade Internal Hard Drive and Time Machine runs first back up as new full

    I recently upgraded my internal hard drive on my macbook to a larger and faster model, my old one is still fine. I went to run a Time Machine back up and it starts a new back up even though its not supposed to. How do I get it to recognize the old /

  • X100e keyboard broken! Which maintenance part to choose? Help!!

    well this is unfortunate.. after i spilt water on my macbook and broke the keyboard, i bought a x100e as an emergency replacement a week ago. then.. i spilt water on my x100e again. =[ now i think the keyboard, along with its logic board, are broken,

  • Confirmation Mail Problem (urgent Solution) Please

    Dear Guys, After over the Registration Process, I want to send one confirmation mail. Mail Coding is properly worked. Only mail sent to my company id. But not to send yahoo, rediff and other things. what is the problem. I have changed the coding lot