The notifications aren't update using the API of universal work list

We use in the portal home a development iview  that works with de API of Universal Work List. This iview shows the number of notifications and tasks. While the number of tasks are updated correctly, the number of notifications are not refreshed. The only way to update the number of notifications is going and refreshing the Universal Work List iView provided by SAP.
The API that we are using not support this case? Any suggestion?
We haven’t found information about this.
Our system version is 7.00 SP14
We attachment the call that we‘ve used.
      try {
        notificaciones = tareas = 0;
        IUWLService uwlService =
          (IUWLService)PortalRuntime.getRuntimeResources().getService(
            IUWLService.ALIAS_KEY);
        UWLContext uwlContext = new UWLContext();
        IUser user = componentRequest.getUser();
        uwlContext.setUser(user);
        uwlContext.setAllowBackEndConnections(true);
        uwlService.beginSession(uwlContext, -1);
        IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
        QueryResult result =
          itemManager.refreshCacheAndGetItems(uwlContext, null, null, null);
        ItemCollection collection = result.getItems();
        for (int i = 0; i < collection.size(); i++) {
          Item item = collection.get(i);
          if ((item.isUnRead() || item.isNew())
            && item.getItemType().startsWith("uwl.notification")) {
            notificaciones++;
          } else if (
            (item.isUnRead() || item.isNew())
              && item.getItemType().startsWith("uwl.task")) {
            tareas++;
        uwlService.endSession(uwlContext);
      } catch (UWLException e) {
        e.printStackTrace();
Regards

Thank you very much for your quick answer...
But I think that you don't understand me. We can read notifications number but not in real time because they are not updated until we go to the UWL and we force there an update. We want to show in real time the number of notifications that a user has.
Does anybody how to update/refresh this using the API?
Thanks for your suggestions

Similar Messages

  • Preventing the notification of any updates to the apps by Microsoft Store

    Hi
    With Windows 8.1 Update, how do I prevent all users
    that the notification of any updates to the apps
    by Microsoft Store will never be displayed?
    Thanks
    Bye
    Balubeto

    Hi,
    You can trun off the notification by GP
    Run gpedit.msc to launch the group policy editor, then locate to
    Computer Configuration\Administrative Templates\Windows Components\Store, in the right pane, find and enable`turn off the offer to update to the latest version of windows'
    run gpupadte /force to update the policy.
    You can also turn off "automatically update your apps", open Windows Store, the move the mouse to right pane, on the charm bar, click "Settings"\"Add updates", then  turn off "Automatically update my apps".
    Yolanda Zhu
    TechNet Community Support
    A doubt: If you enable the "turn off the offer to update to the latest version of windows"
    policy, I just disabled
    the notification of the updates of the "Microsoft
    Store" app and not the update notifications
    of the various apps, as I would like.
    Right?
    Thanks
    Bye
    Balubeto

  • LIKP table updation using the IDOC_INPUT_DESADV1

    Hi,
    Please help me when and where the LIKP table is updating using the FM IDOC_INPUT_DESADV1. I debugged the program several times even though i couldnt able to find the updation part.
    Further to the above wherer exactly the idoc number is generrating in this FM.
    This is very urgent.Kindly give the replies at the earliest.

    Ubay
    Refer to this code in IDOC function module DOC_INPUT_DESADV1. Delivery order must be getting created thorugh this function module.
      CALL FUNCTION 'GN_DELIVERY_CREATE'
           EXPORTING
                VBSK_I        = S_VBSK
                NO_COMMIT     = TRUE
                IF_SYNCHRON   = ' '             "INS_HP_338221
                IF_NO_DEQUE   = 'X'             "n_632020
           IMPORTING
                VBSK_E        = S_VBSK
           TABLES
                XKOMDLGN      = T_DLGN
                XVBFS         = T_VBFS
                XVBLS         = T_VBLS
                XVERKO        = T_VSEK
                XVERPO        = T_VSEP
                IT_GN_HUSERNR = T_HUSN
                IT_GN_SERNR   = T_SERN
           EXCEPTIONS
                ERROR_MESSAGE = 1
                OTHERS        = 2.
    Thanks
    Amol G. Lohade

  • Since the last software update, I am unable to add new contacts or change existing contacts - neither if I use the green Phone app nor using the brown Contacts app. Any suggestions?

    since the last software update, I am unable to add new contacts or change existing contacts - neither if I use the green Phone app nor using the brown Contacts app. Any suggestions?

    *Update*
    I thought I had found the offending 'app' namely "Songpop."
    I regularly use "Songpop" on my phone late at night via my wifi connection.
    All enteries on my phonebill are at midnight (even though I have a data allowance it was excluded from allowance). I switched 3G off on Friday, played "Songpop" at midnight and at the exact time I got a "Server Error" message.
    I posted a message on the "Songpop" support forum.At first they said this was a problem relating to my ISP.
    I have spoken to my ISP and asked if there are connection drops at the time I have been billed (ie to establish if my wifi dropped and 3G kicked in without my knowledge) and have been advised that there aren't any connection drops at that time.
    "Songpop" have now responded that "This is an issue to take up with Apple Support"  see: http://support.songpop.fm/songpop/topics/playing_songpop_on_phone_via_wifi_but_i ncurring_download_data_charges_for_3g_useage?utm_content=topic_link&utm_medium=e mail&utm_source=reply_notification
    Hopefully someone at Apple can respond ....

  • I live in the UAE and i dont have the face time app on my iphone 5 and it's not showing in the settings list as well only face time mentioned in the notification center , my friends in the same area are using face time normally any advice?

    i live in the UAE and i dont have the face time app on my iphone 5 and it's not showing in the settings list as well only face time mentioned in the notification center , my friends in the same area are using face time normally any advice?

    Doesn't matter.  That store is likely selling illegit iphones, brought oin from somewhere else.
    The fact remains the UAE government does not allow Facetime on iphones legitimately sold there.

  • Iphoto 9.5 won't import photos from iPhoto 7.5.  Library will not update using the iPhoto library upgraded application.

    iphoto 9.5 won't import photos from iPhoto 7.5.  Library will not update using the iPhoto library upgrader application.  Repeatedly says it can't locate photos even when told to cancel.  I think the photos in question are in Nikon RAW format.

    iPhoto 9.5 immediately tries to "upgrade" my library using the upgrader.
    iPhoto 9.5 asks you to run the upgrader to prepare the library for 9.5. It then will update the library to its format.
    You need to do the following:
    1 - go to your Applications/Utilities folder and double click on the iPhoto Library Upgrader 1.1 application. 
    2 - select Choose Library, navigate to your iPhoto library, select it and let the upgrader do its thing.
    3 - launch iPhoto 9.5 to open and finish the conversion of the library.
    OT

  • I'am using iphone 5 i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    i'am using iphone 5, i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    Hello vinoth1986,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning update issues:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • When completing or cancelling a task/phase/project on PLM, the notifications aren't received

    Hi,
    I think i have a problem regarding notifications on PLM (9.3.3).
    When completing or cancelling a task/phase/project on Agile PLM, the notifications aren't received.
    So, when completing or cancelling one of those objects, the notifications popup appears. If i select a user (or several) to notify and click send, supposedly the notification is sent, but the user(s) never get to receive it on the notifications tab.
    I tried different types of notifications (notification when delegating tasks, sending "manual" notifications, part notifications, etc.) and all of them worked correctly. Only the ones regarding change of status, don't work.
    Can you please suggest if i'm doing something wrong or if someone is facing these same issues?
    Many thanks for all the help,
    Jose

    I have this issue too, and it started suddenly one day, after not having any issues previously. Most of the time I do not get a notification on my lock screen for Whatsapp, Facebook messenger etc but once in a while I do. All the notification settings are correct, and as I do sometimes (although rarely) get a notification, I don't think it's anything to do with that. Perhaps it's a notification service issue?

  • HT201210 I was in the middle of installing the new update using the wifi at a local restaurant when I lost the wifi signal and my iPhone shut down, and now I can't get into the phone. I only get the iTunes logo with the cable pic. What are my options now?

    I was in the middle of installing the new update using the wifi at a local restaurant when I lost the wifi signal and my iPhone shut down, and now I can't get into the phone. I only get the iTunes logo with the cable pic. What are my options now?

    Your only option is to connect your iPhone to your computer via USB (as the diagram indicates) and restore using iTunes.

  • I updated to the latest version and now I do not have the page controls at the right hand side and bottom and can only move the page up and down using the mouse scroll wheel. I also cannot see the whole page I am trying to view.

    When I open the web browser I cannot see the whole page and I cannot move the image sideways and must use the mouse scroll to move up and down.

    Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete the contents the following folder:
    User/Library/Containers/com.apple.iPhoto
    3 - reboot, launch iPhoto and try again.
    NOTE: For Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.

  • Due date update using GP APIs?

    Hi all
    I am working on the Due date update using GP APIs, I have done it at the "process" level. However I dont know how to trigger it at an activity level using GP APIs.
    Please tell me how to gain access to the Activity (Action) instance of the next processor from the current one? I have set the Due date statically at the process and activity level. Now I wish to allow the user to change the due date dynamically using GP APIs at the <b>activity</b> level.
    Ideas pls......
    regards
    LNV

    An other one!! I have set the due date manually in the process yet I dont see it in the UWL. Any thoughts on this? Thanks again.

  • When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id,  I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.

    When trying to update apps an invalid apple id show up and I cannot get the apple id to update to the same id,  I have restored, restored as a new phone, I have been into the manage I am at wits end after 7 hours on hold and working with techs.

    Finally got through to tech support and found someone who seemed to know what was going on, he walked me through and using appleid.applesupport got me to a point where i could get a new password for the apple id that kept showing up. 
    I think you were on the right trail and I want to say thanks for your help.  Much appreciated
    ccl43

  • My iphone 4 is in DFU mode.  However I still want the photos on the phone so I cant use the itune recover option.  Does anyone know of a work around

    My iphone 4 is in DFU mode.  However I still want the photos on the phone so I cant use the itune recover option.  Does anyone know of a work around

    actually its not in DFU which is suppose to be a black screen.  When it powers on there is an image of Itunes logo and the usb cord.  What happened is I did an update before I backed up my photos the phone worked great after the update no issues till it powered off.  When I turned it on again it had those two icons and was forcing me to sync with Itunes to system default which will wipe out my media. 
    Have you heard of any data recovery services

  • "The iPod **** cannot be updated. The required file cannot be found" Error

    Hello,
    Upon doing a 'zero-all bits' reformatting of my 5G iPod with Disk Utility and using the 'Restore' feature in iTunes 7, every time I sync my iPod with iTunes, I get an error message after the sync in the form of
    "The iPod ** cannot be updated. The required file cannot be found"
    and photos, contacts, and calendars are not synchronizing. I tried a second 'Restore' attempt but to no avail. Previous to reformatting my 5G iPod, I've not seen this error message.
    I would be grateful if someone could offer any clues. Many thanks.
    1.5 GHz PowerBook G4 12   Mac OS X (10.4.7)  
    Message was edited by: slaveToTechnology

    A little update.
    Upon reinstalling iTunes 7, deleting my iTunes-related .plist files, and reparing permissions on my hard drive, I can now sync my contacts and calendars with my 5G iPod.
    As for Photos, the "required file cannot be found" error seems to be due to the default setting in the 'Photos' tab, 'Sync photos from:' pull-down menu to 'iPhoto'. If I choose my 'Pictures' folder, photo synchronizing works, albeit including everything in my iPhoto library, including originals and modified versions of the photos.
    I can only surmise that the default setting for synchronizing photos is somehow buggy in iTunes 7. I guess I'll just wait for an update.
    1.5 GHz PowerBook G4 12   Mac OS X (10.4.7)  

  • The iPod cannot be updated. The required disc cannot be found

    I am gettin an annoying message that "the required disc cannot be found" and am not sure how to resolve. The iPod shuffle seems to updat with songs successfully. I also tries restoring for factory settings to perhaps start from scratch. I also tunred off all automatic updates in the settings to no avail.
    Any ideas?

    Try this; disable your virus protection. If this works for you, you can also thank Apple Tech Support.
    I'm unsure if this is an iPod problem or an iTunes
    problem, so forgive me if this is in the wrong forum.
    I've been getting this error message repeatedly since
    I started using my 2nd-gen iPod Shuffle: "The iPod
    cannot be updated. The required disc cannot be
    found."
    This worries me because it's the same error message I
    started receiving just before my first-gen Shuffle
    started doing the infamous "green light/amber light"
    thing. This is not exclusive to my computer (Mac mini
    1.5 GHz Intel Core Solo with OS 10.4.8); a family
    member uses an iMac (700 MHx PowerPC G3 with OS
    10.3.9), and iTunes displays the same message with
    her 2nd-gen Shuffle. Both computers have the latest
    version of iTunes, and both iPods are up to date on
    their software.
    Other than this, there appears to be no immediate
    effect of the fuctionality of iTunes or the iPods.
    Mac PowerPC 8500 (9.x), G4 Mini, G4 iBook   Mac OS X (10.4.8)   iPod Mini

Maybe you are looking for