How to get last URL (history)
Hi,
I need to get the last URL of the user (like stored in the breadcrumb navigation bar) with a Java-call. Is there an API available? Does anybody has a code snippet?
The code will be running on an EP 6.20.
Could anybody help me please? I am getting crazy...
Thanks in advance.
Best regards
Sebastian
Hi Detlev,
thank's again for your help. I already read these threads and tried out their solutions. Unfortunately without any success.
I didn't get the NavigationEventsHelperService (NoClassDefFoundError), even if the jars are available in the classpath or directly in the project.
Maybe I need to use another way:
I have a workflow-inbox of an UWL. Clicking on a workflow opens it into my new iView. After the work with the workflow in the iView it has to jump back into the workflow-inbox.
I don't want to use a relative url to the workflow-inbox. That's why I'd like to save the url of the workflow-inbox in the first call of my iView.
Any other suggestions?
Best regards
Sebastian
Similar Messages
-
How to get last Build date of a dll in the real time target
Info On My Project
I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...
I am facing some problems while checking Build date of my Application file( .dll)
I have tried to use GetFileDate API. But it is not supporting for realtime Target..
So i have tried __DATE__ macro.. That also having some problems..
How to get last Build date of a dll from the real time target ??
Please Help to solve this....
Thanks
Vaishakh A KPlease reply if any one have suggestion...
-
How to Get last page number in report 10g
I want to get last page number in report but Current page number found from srw.get_page_num(n)
but i want to get last page number for conditional formating like this
srw.get_page_num(current_page)=last_page
pls help me how can get last page number;
pls help;
thanks in advanced;Hi,
you can use the Property Print Object On for this.
Regards
Rainer -
How to get last column used in report sorting?
hi,
how to get last column used in report sorting?
simonHow to identifiy which column was sorted having different reports on page?
just use:
'YOUR_STATIC_REGION_NAME' instead of p_static_id,
:APP_ID for p_app_id,
:APP_PAGE_ID for p_page_id
:APP_USER_ID for p_app_user.
and dont forget to grant SELECT on #OWNER# to APEX_030200.WWV_FLOW_PREFERENCES$
good luck and thank you Juergen.Schuster
Simon -
How to get my writening history/log more than thre...
How to get my writening history/log more than three months behind
download SkypeLogView
nirsoft.net/utils/skype_log_view.html
and open the main.db file with it
C:\Users\Tamim\AppData\Roaming\Skype\tamim\main.db
can you see the history?
Regards,
Tamim
Location - Dhaka | Bangladesh - Standard Time Zone: GMT/UTC + 06:00 hour
If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others. -
How to get skype call history?
My Calls I made, Received and thier cost.Suresh.Salver wrote:
How to get skype call history?
My Calls I made, Received and thier cost.
Hello
Visit your account page and click on "Usage".
TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
I recommend that you always run the latest Skype version: Windows & Mac
If my advice helped to fix your issue please mark it as a solution to help others.
Please note that I generally don't respond to unsolicited Private Messages. Thank you. -
How to get last date of the week
hi,
how to get last date of the week like FM WEEK_GET_FIRST_DAY gives the date of the first day of the week i need the date of the last day of the week..
thnxdata : p_week type KWEEK,
p_Date type SYDATUM.
p_week = <incoming value in week of year>
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
EXPORTING
week = p_week
IMPORTING
DATE = p_date
EXCEPTIONS
WEEK_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To get the last day of the week.
p_date = p_date + 6.
You can find the available fm in the system from se37 transaction code. -
Hallo,
In my Dynpage portal application.I use 3 Jsp's.One of the Jsp having a Iframe element.This iframe source is an External HTTP address.In the source tag i have to supply the Results frame as some Iframe name and result-url as my 3rd jsp url,so that i can unpack the XML and process the data.
All the 3 Jsp's are in /pagelet/ folder.Does anybody know how to get the url for the Jsp inside the pagelet folder.
Further more pagelet folder is private folder,will it be a problem for the external website to post the result to this private /pagelet/3rd.jsp.
Example src tag for Iframe
http://demo.mygraphics.nl/nbgint/NBG_INT_main.asp?action=CHART&datas
ource=NBGMV&product=INTERNET&size_x=300&size_y=300&result_frame=Results&
result_url="Here i have to give my 3rd jsp url"&defa
ult_centre_x=256000&default_centre_y=471000&default_width=0.5Hi gaurav,
You are right,it is Jspdynpage.I have already read about the Urlgenerator that it can generate url's only for components and pages.So i have created 2 components in one PAR but havent tested yet.
Anyway thanks for your reply.
I have tested it and it works fine.Here is the code
try {
IUrlGeneratorService urlGen = (IUrlGeneratorService) PortalRuntime.getRuntimeResources().getService(IUrlGeneratorService.KEY);
IPortalUrlGenerator portalGen = null;
ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
if (specUrlGen instanceof IPortalUrlGenerator) {
portalGen = (IPortalUrlGenerator) specUrlGen;
// generate Component Url
try {
String url = null;
url = portalGen.generatePortalComponentUrl(request,"NewUrlProj.NewUrlComp");
HttpServletRequest srq = request.getServletRequest();
String vorUrl = srq.getScheme()"://"srq.getServerName()":"srq.getServerPort();
myBean.setUrl(vorUrl+url);
} catch (NullPointerException e) {
myBean.setErrorMsg("Unexpected Nullpointer. This should not happenend, but it did! Something must have gone wrong :-(");
catch(Exception e){
myBean.setErrorMsg(e.getLocalizedMessage());
Message was edited by: Baskaran Senthivel -
Dears
We are working with system with 2 application server IPs and one Real IP (which is able to be accessed through internet)
I would like to know the URL is the user using in order to use his IP to open something else from the system.
Chcking the host name not usesful because if user connect from home using Real IP it return the AS host name which real IP redirct to it.
I need to know how to get the URL of the session from the form or to know whether the user connected using the Real IP or not.
(Oracle forms 10gR2)I think you can get a URL from/with a PJC (java pluggable component) from/with IHandler interface..
Try this bean.. You have a property with name HOST_URL.. (with some modification you can also read applet parameters).. (I have done this now but I have not jet tested it)....but I thik this should work...
You have also other parameters to get client IP addres and hostname...
package in2.client;
import java.io.PrintStream;
import java.net.InetAddress;
import oracle.forms.handler.IHandler;
import oracle.forms.properties.ID;
import oracle.forms.ui.VBean;
public class ClientInfo extends VBean
private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
private static final ID HOST_URL = ID.registerProperty("HOST_URL");
private IHandler mHandler;
private String hostAddress = "";
private String hostName = "";
private String hostOs = "";
private String hostUser = "";
private String hostURL = "";
public ClientInfo()
try
System.out.println("+----------------------+");
System.out.println("+ ClientInfro PJC +");
System.out.println("+ Peter Valencic +");
System.out.println("+----------------------+");
System.out.println("+Dat spr: 10.09.2007 +");
System.out.println("+Dat spr: 04.07.2008 +");
System.out.println("+Dat spr: 10.07.2008 +");
System.out.println("+Dat spr: 15.11.2010 +");
System.out.println("+----------------------+\n");
this.hostAddress = InetAddress.getLocalHost().getHostAddress();
this.hostName = InetAddress.getLocalHost().getHostName();
this.hostOs = System.getProperty("os.name");
this.hostUser = System.getProperty("user.name");
System.out.println("Host adress: " + this.hostAddress);
System.out.println("Host name: " + this.hostAddress);
System.out.println("Host op. syst: " + this.hostOs);
System.out.println("Host username: " + this.hostUser);
System.out.println("+----------------------+\n");
catch (Exception e)
System.out.println("Napaka pri inicializaciji beana: " + e.toString());
public void init(IHandler handler)
super.init(handler);
this.mHandler = handler;
public Object getProperty(ID pid)
if (pid == CLIENT_IP) {
System.out.println("Client IP: " + this.hostAddress);
return "" + this.hostAddress;
if (pid == CLIENT_NAME) {
System.out.println("Client Name: " + this.hostName);
return "" + this.hostName;
if (pid == CLIENT_OS) {
System.out.println("Client os: " + this.hostOs);
return "" + this.hostOs;
if (pid == CLIENT_USER) {
System.out.println("Clientuser: " + this.hostUser);
return "" + this.hostUser;
if (pid == HOST_URL) {
hostURL = this.mHandler.getApplet().getDocumentBase();
System.out.println("Host Url: " + this.hostURL);
return "" + this.hostURL;
return super.getProperty(pid);
} -
How to get my purchase history back?
Hi,
I suspect the merge between Nokia Dev and Ovi accounts to have deleted all my purchase history. The last 9th of september, I purchased Billboard for my N9. So, it was less than a year before, it should be still valid and I should still be able to download the app.
How to get this purchase information back? Of course I kept the email this the purchase order.
Thanks.@Farby: You're right. I marked it as solved because it seems a valid answer. But then I checked my purchase order and saw it is less than 12 months old. Of course, I should have checked before asking.
@yasfer21: completely forgot the differences between the accounts, and the previous logins.
So, my question still remains. Is there an email address I can contact to get my purchase back? Another way? Thanks. -
How to get the URL of an iView using AbstractPortalComponent
Hi All,
I need to get the URL of an iView using AbstractPortalComponent using the following code.
But i am unable to open the URL from the Browser
This is the following code snippet
public class AbsClass extends AbstractPortalComponent
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
IPortalComponentURI componentURI = request.createPortalComponentURI();
componentURI.setContextName("pcd:portal_content/LOG_Viewer/LogViewer");
String URI=componentURI.toString();
response.write(URI);
The output i got from the browser is:
/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
Actual Path: pcd:portal_content/LOG_Viewer/LogViewer
Output Path: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
Why some extra numerics are embeded in the output path when compare with the Actual Path.
Can any one send me the modified code and your suggestions, how to achieve this problem.
Regards
PhaniHi,
Now i need to get the URL of this component.
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentURI componentURI = request.createPortalComponentURi();
componentURI.setContextName("com.sap.portal.appintegrator.sap.bwc.Transaction");
String URI=componentURI.toString();
response.write(URI);
I export this component into Portal and i tested with an iView based on this par file, i got the URL in the Preview.
But when i tried to run this URL by adding the http://<IPADDRESS>:<PORTNO>+URL
I am facing one AccessDenied Exception for this Object. ( USER/GUEST)
Is there any security zone, or other Permissions Problem, if so can you plz guide me what are the settings i have to change inorder to resolve this exception
Regards
Phani -
How to get last day of prev month?
SELECT to_char(SYSDATE, 'MM') -1, last_day(sysdate)
FROM DUAL;
If current month is April, How to get the last day of March? Thanks.SQL> select sysdate, trunc(sysdate, 'mm') - 1 from dual ;
SYSDATE TRUNC(SYSDA
06-APR-2004 31-MAR-2004
1 row selected.
SQL> -
How to get page URL in a dynamic page in 10.1.4?
Does anyone know how to get the page URL in a Dynamic Page in 10.1.4 without using javascript.
I know that you can use a PL/SQL portlet and the portlet_record, but this is specifically for a Dynamic Page.
Regards
JennyHi,
I am trying the suggested approach in 10.1.4 but unfortunatley I get the following error:
PLS-00302: component 'SHOW_INTERNAL' must be declared
In my Dynamic Page I have the following code
htp.p(cms_context.urlpage);
In the '... before displaying the page' I have the following
schema_name.cms_context.urlpage := schema_name.dynamic_page_name.show_internal.p_page_url;
Can anyone help?
Cheers
Chris -
How to get last modified date and time of a file which is in apache server.
Hi ,
I need to get last modified date and time of a file in remote machine.
This file is in remote machine which has apache server installed.
I am trying to get this information by connecting to apache server from client by giving absolute URI of the file to file object.
URI is got from apache server URL by using toURI method.
when I use lastModified method , its throwing exception , because scheme of URI is not file.
I can't give scheme as file because ftp server is not installed on that server
Is there any other way to get this information .No, unless you can use an FTP client.
-
How to get the Version History of a stored document?
Hi,
I am trying to store and retrieve the content using Content Services features of ADEP 10.0.
I am able to store and retrieve content where as I am not able to get the version of the document. I am trying to store same or different document, but I donot get the version history or version label. Please guide me how I can get the version of a stored document.
Also, please advise me if there are simple alternative to do the same in ADEP10.
Please see below my sample code below:
package test.sample;
import java.io.File;
import java.util.*;
import com.adobe.idp.Document;
import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
import com.adobe.livecycle.contentservices.client.CRCResult;
import com.adobe.livecycle.contentservices.client.impl.DocumentManagementServiceClientImpl;
import com.adobe.livecycle.contentservices.client.impl.UpdateVersionType;
public class AddContent {
public static void main(String[] args) {
try{
//Set connection properties required to invoke Document Services in EJB mode
Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
//Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
//Create a DocumentManagementServiceClientImpl object
DocumentManagementServiceClientImpl docManager = new DocumentManagementServiceClientImpl(myFactory);
//Specify the store and node name
String storeName ="SpacesStore";
String nodeName = "/Company Home/Test Directory";
//Retrieve the document to store in /Company Home/Test Directory
Document contentA = new Document(new File("C://Adobe/New files/Data-A.pdf"), false);
Document contentB = new Document(new File("C://Adobe/New files/Data-B.txt"), false);
Document contentC = new Document(new File("C://Adobe/New files/Data-C.xlsx"), false);
//Create a MAP instance to store attributes
Map<String,Object> inputs = new HashMap<String,Object>();
//Specify attributes that belong to the new content
String creator = "{http://www.alfresco.org/model/content/1.0}creator";
String description = "{http://www.alfresco.org/model/content/1.0}description";
inputs.put(creator,"Veeraganteppa Sajjan");
inputs.put(description,"A sample application form");
//Store MortgageForm.pdf in /Company Home/Test Directory
CRCResult resultA = docManager.storeContent(storeName,
nodeName,
"dataA.pdf",
"{http://www.alfresco.org/model/content/1.0}content",
contentA,
"UTF-8",
UpdateVersionType.INCREMENT_MAJOR_VERSION,
null,
inputs);
CRCResult resultB = docManager.storeContent(storeName,
nodeName,
"dataB.pdf",
"{http://www.alfresco.org/model/content/1.0}content",
contentB,
"UTF-8",
UpdateVersionType.INCREMENT_MAJOR_VERSION,
null,
inputs);
CRCResult resultC = docManager.storeContent(storeName,
nodeName,
"dataC",
"{http://www.alfresco.org/model/content/1.0}content",
contentC,
"UTF-8",
UpdateVersionType.INCREMENT_MAJOR_VERSION,
null,
inputs);
//Get the identifier value of the new resource
String idA = resultA.getNodeUuid();
String idB = resultB.getNodeUuid();
String idC = resultC.getNodeUuid();
System.out.println("A -The identifier value of the new content is "+idA);
System.out.println("B - The identifier value of the new content is "+idB);
System.out.println("C - The identifier value of the new content is "+idC);
System.out.println("A - The Browse Link is "+resultA.getBrowseLink());
System.out.println("B - The Browse Link is "+resultB.getBrowseLink());
System.out.println("C - The Browse Link is "+resultC.getBrowseLink());
System.out.println("A-The Version Label is "+resultA.getVersionLabel());
System.out.println("B-The Version Label is "+resultB.getVersionLabel());
System.out.println("C-The Version Label is "+resultC.getVersionLabel());
System.out.println("The Version History is "+docManager.getVersionHistory(storeName,nodeName, true));
}catch(Exception e)
e.printStackTrace();
Message was edited by: V B SajjanSorry I did not attach the output and errors. Please find the same below.
A -The identifier value of the new content is f5427f5b-c7c1-4c3c-b959-cb84e4e49a13
B - The identifier value of the new content is b237d22c-5ff5-4628-a83a-23f5e49ae48e
C - The identifier value of the new content is 34a9992c-3705-4488-bb55-6dd7ddfa0517
A - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/f5427f5b-c7c 1-4c3c-b959-cb84e4e49a13/dataA.pdf
B - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/b237d22c-5ff 5-4628-a83a-23f5e49ae48e/dataB.pdf
C - The Browse Link is http://localhost:8080/contentspace/wcs/api/node/content/workspace/SpacesStore/34a9992c-370 5-4488-bb55-6dd7ddfa0517/dataC
A-The Version Label is null
B-The Version Label is null
C-The Version Label is null
ALC-CSV-30015-000: com.adobe.livecycle.contentservices.client.exceptions.CSInvocationException: ALC-CSV-030-015-The node [/Company Home/Test Directory] is not versioned.
at com.adobe.contentservices.webscripts.impl.AbstractContentManager.doGetVersionHistory(Abst ractContentManager.java:1362)
at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.executeParams(ContentManager Impl.java:198)
at com.adobe.contentservices.webscripts.impl.CSRetryingTransactionCallback.execute(CSRetryin gTransactionCallback.java:45)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti onHelper.java:326)
at com.adobe.contentservices.webscripts.impl.ContentManagerImpl.execute(ContentManagerImpl.j ava:114)
at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:333)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransacti onHelper.java:326)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContaine r.java:386)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContai ner.java:404)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java: 246)
at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:294)
at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:172)
at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:86)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEs tablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEst ablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:662)
Maybe you are looking for
-
How to configure CISCO ASA 5510 for internal remote desktop ?
Helo,I have a client that want to install new ASA (5510) in their network. and then I did some experiment to implement it. the topology is like this : --------configuration--------- 2800 router : interface FastEthernet0/0 ip address 172.16.1.1 255.25
-
my mac is unable to connect to my printer hp4050 laser tn. message i get is apple link is not connected to communicate with the printer. i went to system preferences but could not turn on the apple link. i am very new to mac. in pc. i could figure
-
Typing Closes Programs - Help!
No idea what the **** is wrong with my MBP. It only started this issue today. Opened firefox and when i tried to type something in, it caused the program to crash. i thought it was an issue with firefox but the same happens with open.office and other
-
Bank Directory and house bank?
Hello, i am a bit confused on Bank master data and house bank and also what is bank directory? according to my understanding bank directory is a list of all the bank's across the global no matter our company uses them or no. bank master data is the b
-
Maintain number range object for object J_1IINTNUM
Dear, While doing GRN i am getting this error: Maintain number range object for object J_1IINTNUM, year 2009, excise group Maintain number range object for object J_1IRG23A1, year 2009, excise group E1 Maintain number range object for object J_1IRG2