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
Similar Messages
-
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 SinghHi,
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 -
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 SinghThat 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> -
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,
AmeyIssue was with iView that I was trying to open in DEV portal.
It worked fine in TEST & PROD portals.
Hence, NavigationTarget=<> approach works fine. -
Sap_uwl_selecteditem in the UWL workitem URL
Hi,
I needed to capture the value that is generated for sap_uwl_selecteditem in the UWL work item URL.
Is there a way to get its value as we do for the work item id by setting the dynparam as wi_id=${item.externalType} ?
Thanks & Regards,
JyotiHi Arpit,
Check the UWL iview that you are using. The sap_uwl_selecteditem is a parameter that is stored on the iview. On my internal test portal the value for this parameter is set to -1.
I hope that this information is helpful to you.
Beth Maben
EP - Senior Support Consultant
AGS Primary Support, Business Suite & Technology
Please see the UWL Wiki @
https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq *** -
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 JHi 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. -
Hi,
I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item column entry url will show the parent item information.
Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make item url link through String builder in mail body with using current id and predefine link,but
when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
item link dispaly information.
So I opened SharePoint Designer and start creating the workflow associated to the list.
As there is some Field from source related to current item URL I start using it
Encoded Absolute URL – this one should be the one to use
Server Relative URL
URL Path
Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
Encoded Absolute URL
http://wfe1/Lists/bpf/1_.000
Server Relative URL
/Lists/bpf/1_.000
URL Path
/Lists/bpf/1_.000
As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCSUnfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List. I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to. One problem is the workflow is initiating
twice. I'm thinking I should have just created the workflow as a a "List Workflow."
I am going to try "Association Columns" -- that may work. Anyone have other suggestions? -
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 PMHi,
Are you able to manage this! Pls do let us know if you have done any configuration changes! -
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.VSteve,
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 -
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.BSorry 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! -
Share with notification give wrong list item url
Hi Experts,
I am facing an issue with SharePoint notification email when sharing list item with users, the notification email gives wrong list item URL, in fact it gives strange URL like this (http://mycollection/sites/lists/list1/01_000)
the strange thing that list item url is correct when sending share with notification if you apply it to document library, but it is not working well if you apply it to custom list!!
can any body tell me whats wrong with SharePoint ?Was it ever enabled.
Is this a restored list\library ?
Do we have any workflow on same
If this helped you resolve your issue, please mark it Answered -
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
KrishnaIn 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 -
SPD Current Item URL to include web address rather than host name
Hi,
When I dcreate an SPD list workflow and include a link to the current item URL the web address gets replaced with the hostname. For example:
I expect to see:
http://mycompany.com.au/sites/corp/xxx/Lists/MyRegister/DispForm.aspx?ID=12
but we get
http://perspxxx99/sites/corp/xxx/Lists/MyRegister/DispForm.aspx?ID=12 (perspxx99
is the hostname)
If requierd I can craft the URL however wondering if there's a way to make the default point to the machine name.
Many thanks,
MarcoHi,
Can you please confirm Alternate Access Mappings are correct as per this post?
https://social.msdn.microsoft.com/Forums/en-US/2bb44216-a930-4786-ad0a-3505f0f7f1d4/sharepoint-2010-workflow-current-item-url-pointing-to-internal-server-name?forum=sharepointcustomizationprevious
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
Literature Item URL in Web App Field
Greetings,
I'm building a web app which allows the client to create items linking to literature items. One question, how do I tell the client to get the literature item url?
For example, if the literature item linked to a "House" PDF literature item, I have a field called "url-house":
<strong>{tag_name_nolink}</strong>
<ul>
<li><a href="{tag_url-house}">House</a></li>
<li><a href="{tag_url-senate}">Senate</a></li>
</ul>
Thanks!
BrianThanks Liam,
I'm curious about URL itself now, see the question I asked here: http://forums.adobe.com/message/4514423#4514423
I suppose another way to get the URL would be to mouse over the literature item, note the ID number and place it in the URL convention mentioned in the KB article, the other discussion mentions. -
UWL - direct URL needed for work items
We have NetWeaver Portal EP7 and use the UWL for work items from the ECC6 backend system. The work items appear as expected and users can process them correctly.
I now have a requirement for a direct portal URL for each work item that appears in the UWL so that it can be accessed directly instead of via the UWL. However, I'm struggling in my attempts to find or construct such a URL.
I would appreciate any help to resolve this.
TrevorHi,
Why do you need this URL? If you want the recipient to be able to display a work item from within an e-mail, this can help you : [Executing or Displaying Work Items from Within a Message|http://help.sap.com/saphelp_nw70/helpdata/en/c7/009f405660f418e10000000a1550b0/frameset.htm].
Regards,
Pierre
Maybe you are looking for
-
What will I notice with more RAM? or FCE HD?
Right now FCE2 seems to be laboring between tasks. Since I just upgraded to the intel it is kind of a disappointment because my g4 Ibook never blinked (at all)... I like the new mac but seems like the old one handled more with less processor and same
-
how can i view nikon images in photoshop? i have cs4 so the camera raw plug-in is not an option and i've lost my disk from the initial purchase of the D90.
-
Is there a MySQL Guru out there?
FROM timesheets WHERE shCOMPID = colname ORDER BY shWEEKENDING DESC SELECT DISTINCT (shWEEKENDING) FROM timesheets WHERE shCOMPID = colname Hi, I have a table of employee Timesheets that have a pk, companyID and EmployeeID and a weekending (YYYY-MM-D
-
Screen dimming - can't turn off with OS X Leopard?!
Hi I am not sure about others, but how come my Leopard OS X is not able to tweak so that the screen does not dim after a period of inactivity? The screenshot of my mac under System Preferences is entirely different from the one below! http://media2.s
-
Unable to convert dates to text in scanned PDFs
I am using Adobe Acrobat XI Pro. I am converting scanned images to text by recognizing the text using OCR. However, some portions of my file, specially dates in format MM/DD/YY format are not being converted to text. I cannot even convert them to tex