UWL Item action url

Hello Experts,
I have created a Webdynpro application in which i have the UWL Items. I am able to read all the properties of the items.
But I don't know how to create the URL for the specific ITEMS, to open the item, when clicked.
Can you please provide me information of how to create the specific Item URLs, which i can link to the Item.
Regards,
Gursimran Singh

That would look like this.
Regards,
Kai
<ItemType name="uwl.task.webflow.TS12323123123" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynProiView" executionMode="default">
      <ItemTypeCriteria externalType="TS12323123123" connector="WebFlowConnector"/>
      <Actions>
        <Action name="launchWebDynProiView" groupAction="" handler="IViewLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
          <Properties>
            <Property name="iview" value="ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.iviews/com.sap.pct.erp.ess.working_time/com.sap.pct.erp.ess.leaverequest"/>
            <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
            <Property name="openInNewWindow" value="yes"/>
            <Property name="display_order_priority" value="5"/>
          </Properties>
          <Descriptions default="bla_DE">
            <ShortDescriptions>
              <Description Language="de" Description="bla_DE"/>
              <Description Language="en" Description="blabla_EN"/>
            </ShortDescriptions>
          </Descriptions>
        </Action>
      </Actions>
    </ItemType>

Similar Messages

  • UWL Item URL Links

    Hello Experts,
    I have created a Webdynpro application in which i have the UWK Items. I am able to read all the properties of the items.
    But I don't know how to create the URL for the specific ITEMS,  to open the item, when clicked.
    Can you please provide me information of how to create the specific Item URLs, which i can link to the Item.
    Regards,
    Gursimran Singh

    Hi,
    Try the following
    package samplepackage;
    import java.util.Iterator;
    import java.util.Locale;
    import java.util.Properties;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import com.sap.netweaver.bc.uwl.IUWLItemManager;
    import com.sap.netweaver.bc.uwl.IUWLService;
    import com.sap.netweaver.bc.uwl.IUWLSession;
    import com.sap.netweaver.bc.uwl.Item;
    import com.sap.netweaver.bc.uwl.ItemCollection;
    import com.sap.netweaver.bc.uwl.QueryResult;
    import com.sap.netweaver.bc.uwl.UWLContext;
    import com.sap.netweaver.bc.uwl.UWLException;
    import com.sap.security.api.IUser;
    import com.sap.security.api.UMFactory;
    public class Sample {
      public void retriveItems() {
        try {
          // look up UWL service
          IUWLService uwlService = findService();
          // define session timeout perios
          final int sessionIdleTimeout = 60;
          // create context
          UWLContext uwlContext = new UWLContext();
          // find logged in user.
          IUser user = //TODO Get the user for whom the items are to be retrieved.
          uwlContext.setUser(user);
          uwlContext.setLocale(Locale.getDefault());
          // begin session
          IUWLSession uwlSession;
          uwlSession = uwlService.beginSession(uwlContext, sessionIdleTimeout);
          uwlContext.setSession(uwlSession);
          IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
          QueryResult result = itemManager.getItems(uwlContext, null, null);
          ItemCollection items = result.getItems();
          Item item = null;
          for (int i = 0; i < items.size(); i++) {
            item = items.get(i);
            Map params = new HashMap();
            params.put("taskId", item.getExternalId());
            String executionURL = WDURLGenerator.getApplicationURL("sap.com/tcbpemwdui~taskinstance", "ATaskExecution", params);
            //TODO Add code send mail which contains above URL.
        } catch (UWLException e) {
          e.printStackTrace();
        } catch (NamingException e) {
          e.printStackTrace();
      // look up UWL service
      private IUWLService findService() throws NamingException {
        Properties env = new Properties();
        env.put(InitialContext.INITIAL_CONTEXT_FACTORY, "com.sapportals.portal.prt.registry.PortalRegistryFactory");
        // create initial context
        InitialContext ctx = new InitialContext(env);
        // retrieve UWL service
        IUWLService uwlService = (IUWLService) ctx.lookup("/broker/services/" + IUWLService.ALIAS_KEY);
        return uwlService;
    which is taken from the following blog : <br>
    /people/kenichi.unnai/blog/2009/10/19/how-to-use-uwl-api-for-netweaver-bpm-tasks

  • UWL Item URLS

    Hello Experts,
    I have created a Webdynpro application in which i have the UWL Items. I am able to read all the properties of the items.
    But I don't know how to create the URL for the specific ITEMS, to open the item, when clicked.
    Can you please provide me information of how to create the specific Item URLs, which i can link to the Item.
    Regards,
    Gursimran Singh

    Hi,
    So you have created your own "custom made UWL"? Did I understand correctly? And you want to launch other applications from it? This depends on the type of application you want to lanch. It will be different for web dynpro, BSP, etc.? You might want to ask this from different forums. If you need to launch another abap web dynpro application, you can do it with CL_WD_UTILITIES=>CONSTRUCT_WD_URL (but this is if your custom made UWL is made with web dynpro ABAP. If you have a custom Java Web Dynpro application, you need to check the UWL programming API (which I guess you should be already familiar, if you managed to create a custom UWL with Java).
    Or did I understand it all wrong?
    Regards,
    Karri

  • Opening a Portal page from UWL item's click

    Hi,
    I have written a custom UWL connector that connects to 3rd party system to fetch tasks.
    This custom connector has  been registered with UWL and tasks from this 3rd party system are now appearing in my UWL.
    The requirement is to open a Portal page on click of these UWL items.
    That is, when user clicks on this custom UWL item, a Portal page should be opened in new window.
    I tried setting item's executionURL to following (inside getItems() method of connector) : -
    1. https://myportal.com/irj/portal?navigationtarget=roles://portal_content/com.mycompanyPurchaising/com.mycompany.Purchase_Request/com.mycompany.Roles/com.mycompany.purch_pr/com.mycompany.purch_pr/com.mycompany.purchaseRequest
    2. https://myportal.com/irj/portal?navigationtarget=roles://portal_content/com.mycompany.Purchaising/com.mycompany.Purchase_Request/com.mycompany.Roles/com.mycompany.purch_pr/com.mycompany.purch_pr/com.mycompany.purchaseRequest&target="_blank"
    3. Set Quick link property of corresponding page and then set executionURL as: -
    https://myportal.com/irj/portal/purchaserequest
    Issue being faced: -
    When user clicks on this UWL item, it opens following URL which just displays blank portal page: -
    https://myportal.com/irj/servlet/prt/portal/prteventname/navigate/prtroot/pcd!3aportal_content!2fcom.mycompany.layout.PortalLayoutFolder!2fcom.mycompany.layout.DesktopFolder!2fmycompanyDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.Purchaising%2Fcom.mycompany.Purchase_Request%2Fcom.mycompany.iViews%2Fcom.mycompany.purchaseRequest&CurrentWindowId=WID1326775699455&NavMode=1
    Any idea what is going wrong here?
    I am not able to figure out what & from where its preparing above URL instead of opening the URL that I specified in Connector's executionURL attribute.
    Regards,
    Amey

    Issue was with iView that I was trying to open in DEV portal.
    It worked fine in TEST & PROD portals.
    Hence, NavigationTarget=<> approach works fine.

  • Unable to change the deadline of a due date notification in UWL Item

    Hi All,
    We are trying to change Duedate Notification deadline in runtime through API's.
    We are able to change the Duedate deadline in runtime by using Backgground CO.
    But the problem is its not getting effected in UWL of that Item(Action).Its showing old deadline which we kept in the design time.
    My questions are:
    Can we change the deadline date of a duedate notification in runtime and display it in UWL Item.
    We are facing this problem since longtime and searching for all alternative methods.but unfortunately we are not succeded.
    Gurus,
    Please reply us.
    Thanks & Regards,
    sundaresan.B

    Sorry to spam this board but I've found the problem and answered my own question - because it was importing the image as an image sequence and not a single image, there was the problem.
    Thanks anyway!

  • Remove Hyper link from UWL ITems

    Hi All,
    How to remove Hyperlink from the UWL items list? Is that possible?
    I have list of tasks in UWL and I do not want to give hyper link to the end users since they already ahve "View Detail"  Button on UWL, Please help how to hide or remove hyper link?
    Thanks
    Krishna

    In the UWL configuration, you specify the default action for a UWL item using the attribute "defaultAction".
    This default action is performed when you click on the UWL item.
    You can set any of the available actions as the default action for the UWL item.
    As mentioned by Karri, it is usually not common to disable the hyperlink of a UWL item and make it non-clickable.
    However, if you would like to achieve this, you can identify and check the UWL configuration file being used for the given UWL item and modify it as below:
    <ItemType name="uwl.task.webflow.decision.TS20000999.MYUWL_SYSTEM" connector="WebFlowConnector" defaultView="yourDefaultView" defaultAction="dummyAction" executionMode="default">
          <ItemTypeCriteria
    Since dummyAction is something UWL doesn't recognize, the hyperlink should be disabled.
    You might have to do this for all the UWL item types you use.
    Thanks,
    Shanti

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Error while accessing UWL item

    Hi
    I have configured ESS/MSS..... When an employee raises a leave request, the manager gets the Leave request for approval in UWL...but when i select the UWL item to open,i get the following error;
    501   Not Implemented
                                                          SAP J2EE Engine/7.00 
      Method ïPOST is not defined in RFC 2068 and is not supported by the Servlet API 
      Details:   No details available
    Following one of the threads in SDn, i decatiavted "use HTTP 1.1" in Tools- >Internet Options-> Advanced settings- > HTTP settings ..but still the error presists..
    Any idea why i get this error and how to solve it?
    Cheers
    Sangeetha J

    Hi Chris
    I have posted my query in "portal imp" forum.... thought if sumbody in this forum have come across such UWL error,then they might help me solving this.

  • How to display multiple attachments in UWL item in portal?

    HI,
    How to display multiple attachments in UWL item in portal?
    I want to display more than one attachment in UWL body,present its dispalying one attachment.
    Pls help on this
    Thanks,
    Bheem
    Edited by: v bheem on Aug 4, 2009 3:10 PM

    Hi,
    Are you able to manage this! Pls do let us know if you have done any configuration changes!

  • Automator 2.2 "Copy Finder Items" Action Error

    Hello all,
    When I try to create an Automator workflow that finds a type of file (pdf) in a nested folder structure and copies those files to another folder - essentially extracting the pdfs from their nested folders - I get an error message.
    1) I use the "find Finder items" action. I specify the top-level folder and set the kind to "document"
    2) It returns 56 items
    3) I use "copy Finder items" action and specify a new folder
    4) The copy action fails stating that a given file "couldn't be saved in the folder". It does not always error-out on the same file. Changing or creating a new folder doesn't help.
    I have tried this under two user accounts with the same result. I have tried deleting preferences. The same error results.
    Any ideas?
    I am running 10.7.1 on a 15" MacBook Pro, early 2011.

    I was having the same issue.
    I found another solution: instead of copying files, you could move files.
    1) Duplicate your original folder (unless you want to move/extract your files entirely to the new folder) (right click the folder and select duplicate)
    2) Create a new folder as the destiny folder
    3) Open automator and use the following actions (in order) on the workflow
    - Find Finder Itens (browse to your source folder; select "any"; select "extension"; select "end with"; type "pdf") (you can do the same thing with the actions "get specified finder items" combined with "filter finder items")
    - Get Folder Contents (and mark repeat for each subfolder found) (use this action if you have subfolders)
    - Move Finder Itens (browse to your destination folder, that you created previously)
    Now you can delete the duplicated folder.

  • SSRS Action URL via javascript:void(window.open doesn't work in IE

    Hi,
    I am using the following code to open "google.com.au"
    in a pop-up window through SSRS Report -> Action -> URL 
    ="javascript:void(window.open('"+
    "http://www.google.com.au/" +
    "','_blank','scrollbars=true,status=true'))"
    The script work fine in Chrome and FireFox but not IE ( we are using IE 11.0 ), any idea what's going wrong?
    ( When we click on it ; Nothing appear in IE )
    Thanks.

    Hi Yu,
    1. We are using SQL Server SSRS 2008 R2 in IE 11.0.9600.17501 environment ( Means we already have the latest IE 11 Patch )
    2. Did you try put in Javascript in SSRS Cell -> Placeholder Properties -> Action -> URL?     
        i.e. ="javascript:void(window.open('"+ "http://www.google.com.au/" + "','_blank','scrollbars=true,status=true'))" 
    3. All reports are having the same phenomenon.
    4. I used F12 and tried IE7, IE8, IE9, IE10 all same ( ALL couldn't  POP UP window ).
    5. Please refer to attachment, I found out that when I go to Cell -> Right click -> Inspect Element & change
    target="_top" to
    target="_self" then the problem gone.
        BUT... how to set target="_self" in SSRS? 
    Regards,
    Frank

  • Rendering  UWL Items By Date

    Hi Experts,
        I  have followed this  webblog [uwl blog|Flashy UWL ...].  I got the UWL Items. Now i am trying to get the UWL items by Date. I am using UWL APIs .
    I am using the following code to get the items by date .
               QueryResult result = itemManager.getItems(uwlContext,QueryProperties queryProps,CompoundExpression filter);
    I have some doubts in passing this two parameters  QueryProperties queryProps,CompoundExpression filter. If anyother method is there for filtering Items by date.Can anybody help me to get through this.
    Regards,
    Malini.V

    Steve,
    Using the DATEDIFF I am cheching for 90 days prior.
    SELECT T0.ItemCode, T0.OnHand, T0.OnOrder, T0.CardCode, T1.OpenQty, T1.LineStatus, T2.DocNum, T2.DocDate
    FROM OITM T0  INNER JOIN POR1 T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN OPOR T2 ON T1.DocEntry = T2.DocEntry
    WHERE T1.LineStatus = 'O' AND  DATEDIFF(Day, T2.DocDate, GETDATE()) > 90
    Suda

  • Struts portlet: generating rewritten action URL inside javascript

    I'm migrating a standalone struts application written for WL 8.1 to WL 10.3 portal environment. The idea is to make a portlet out of the struts app. I've got the application almost working, url rewriting works beautifully by using *<html:link action=...>* in jsps with the weblogic struts-adapter taglibs. But now I have a problem with the incorporated javascripts... For example I'm using a script to submit a html:form and in the script I'm trying to call an action like so:
    *function submit() {*
    document.myForm.action = "action_string";
    document.myForm.submit();
    return true;
    The problem is that I can't use the struts action name as usual (action.do) since that would lead to a standalone page instead of the portal desktop view. WL portal has a rewriter that translates the individual application action URLs to portal URLs so that the uniform view remains as the user interact with the applications. Now my question is: Is there a way to invoke this URL rewriter somehow to do the rewriting for action for me or alternatively, is there a way to get all the URL blocks so I can build the line myself?
    The trick is that I need to get this URL dynamically, so that if I rename the struts module or the portlet, I don't have to update all my javascripts as well. The portal URI that I need is of form (dynamic parts with bold):
    / contextPath / portalDescriptionFile.portal ?_nfpb=true& _windowLabel= portlet_x & portlet_x _actionOverride=%2F moduleName %2FactionName& portlet_x method=methodName
    So far I've been able to get the portlet label (portlet_x) with a scriptlet:
    *<%*
    PortletPresentationContext portletPresentationContext = PortletPresentationContext.getPortletPresentationContext(request);
    portletPresentationContext.getInstanceLabel();
    *%>*
    I can also get the moduleName and contextPath, but not the the rest. So at minimum I would need a way to dynamically get the "+path+" before the "+query+" as in "+/contextPath/path?query+". The "+query+" I can construct with the info I have if necessary.
    Can anyone help me with this?
    If someone knows a good API page for WL 10.3 portal/portlets where I could look for more internal objects (like PortletPresentationContext) containing the data I need, that would also be a great help!
    Edited by: karikko84 on 28.8.2009 3:44

    When constructing links, you have to use the pdk-specific struts tags, for example:
    <pdk-struts-html:link href="/portal/menuPage.do">Also, you need to use the pdk struts tag library:
    <%@ taglib uri="/WEB-INF/pdk-struts-html.tld" prefix="pdk-struts-html" %>Peter

  • "Get Specified Finder Items" action and aliases

    The Get Specified Finder Items action doesn't seem to work on aliases. That is, instead of selecting an alias, it selects the original file to which that alias points.
    Any work-around?
    (And, a bug, no?)

    When you get the value of a variable, the result is added to the item list - for example:
    1) Get Specified Finder Item {various file items}
    2) Get Value of Variable {previous file items}
    3) View Results --> the results of both of the above actions

  • Struts 1.2 blank page on putting action URL

    Hi ,
    I have a application using struts 1.2. When we type a action url like http://localhost:8080/app/SomeAction.do on the browser then I get blank page with no error in console or log file, on hiting referesh on the browser the corresponding action is executed and mapped jsp page come up.
    Trying same thing on struts 1.1 , I get the mapped jsp page without hitting the refresh button again.
    Is there any know issue with this version of struts , please advice.
    thanks

    Did you try changing the xml parser to use Xerces instead of Oracle?
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html
    It is a pretty long article.
    Pat

Maybe you are looking for

  • Edit Link on Interactive Report

    I have an Interactive report with the edit link on each record to call a form. Is it possible for the edit link to show on specific records (instead of all)? I have a security requirement where the users shouldn't be allowed to edit (go the maintenan

  • Session problem in a new window created by window.open()

    hello, I have a drugsearch.jsp page, I sessioned an durgCollection object on this jsp page using session.setAttribute("drugCollection",drugCollection); there is a link on this jsp which will call a javascript to open a new window . here is the javasc

  • PDF Document in ERP 2005

    Hi All We are using ERP 2005 and would like to Save document in PDF format.Please let us know what are the configuration needed to get the document in PDF Format We already have one PDF Printer installed in our network Thanks in Advance Regards Deeli

  • Airport Extreme username AND password for wifi connection...

    How can I connect to a wireless network that requires both a password AND username with an Airport Extreme? Some wifi areas in the UK such as BT Openzone homehubs require both a username and password to connect to the network, not just picking a netw

  • Is there a way to 'reload' a Resource Bundle?

    Dear All, Use Case: I confgured a bundle in my faces-config.xml <resource-bundle>   <base-name>com.test.MyBundle</base-name>   <var>myBundle</var> </resource-bundle>..and my Bundle class loads data from a database table. So instead of using propertie