Read pageID / iView-Path

Hi all
I'd like to make a "Support-Link"-Application which will be started from the PageToolBar.
When starting this App it should read the pageID of the content currently viewed by the user, something like "pcd:portal_content/TEST/TEST_iViews/Footer".
How is this done in WD-Java?
Regards
Michael

Not in WD, but in the page that calls my WD-App:
JavaScript:
var obj = EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue();
return obj.fullURL;
in Java (not tested, but found after I knew how it works (as always ;( )):
https://www.sdn.sap.com/irj/sdn/thread?messageID=307965#307965
https://www.sdn.sap.com/irj/sdn/thread?messageID=106301#106301
https://www.sdn.sap.com/irj/sdn/thread?messageID=5213384#5213384
Thanks to Praveen. You're great!

Similar Messages

  • How to read the complete path in file upload UI

    Hi,
    I want to know how to read the complete path in file upload UI in java web dynpro.
    I have created 1 file upload UI and than when i do browse and select some file say small.jpg from my local PC, desktop , its path is coming in file upload UI like E:\small.jpg,
    I want to know how to get this path in java webdynpro code.
    please let me know..

    Hi Satyam,
    In webdynpro java, first file stores in server location then it reads from server.
    Create a button with upload and write this code OnAction
    Resource is the attribute name in context of type com.sap.ide.webdynpro.uielementdefinitions.Resource, this attribute is for Resource property for Upload UI Element.
    Then in OnAction of button
    InputStream text = null;
           int temp=0;
           try{
                File file = new File(wdContext.currentContextElement().getResource().getResourceName().toString());
               String path = file.getAbsolutePath();
                wdComponentAPI.getMessageManager().reportSuccess(path);
           }catch(Exception e){
                e.printStackTrace();
        //@@end
    Regards,
    Pradeep
    Edited by: pradeep_546 on May 11, 2011 12:22 PM

  • Could not read the profile path for user S-1-5-21-1272265863-3531003469-187

    hi
    I was doing the installation of the crm702 on MAXDB+WINDOWS.IN THE FIRST PHASE OF EXECUTION(CREATE USERS FOR SAP SYSTEM) I GOT THE ERROR MENTIONED BELOW.CAN SOMEONE HELPE ME    :
    An error occurred while processing option Enhancement Package 2 for SAP CRM 7.0 > SAP Application Server ABAP > MaxDB > Central System > Central System( Last error reported by the step: Could not read the profile path for user S-1-5-21-1272265863-3531003469-18741865-1021 from the registry: The system cannot find the file specified. .). You can now:
    Choose Retry to repeat the current step.
    Choose Log Files to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:/crmfeb.

    Hi,
    Delete all keys in registry (regedit) with: S-1-5-21-1272265863-3531003469-18741865-1021. You can do it by find it - F3.
    After that restart sapinst.
    Regards.

  • Acrobat Reader won't read pdfs: "file path not valid"

    I thought that my PlayBook would be the perfect device to read pdfs in the Adobe Reader. The only problem is when I download a pdf from the internet, or copy a pdf from my computer, and click on the file icon from within the Reader, all I get is a cryptic error message that reads "The file path is not valid". No hints at what to do.
    At first I thought it was a problem with the file. But every file suffers from the same ill fate. Do you have any suggestions?

    Article ID: KB26744
    Unable to open any PDF documents on BlackBerry PlayBook
    Type: Support Content
    Last Modified: 06-17-2011
    Product(s) Affected:
        BlackBerry® PlayBook™
    Overview
    When attempting to open locally saved or attached Adobe® PDF document the following error is returned:
    The file path is not valid
    Environment
        BlackBerry® PlayBook™ tablet
    Cause
    The error is returned due to application permissions to of the Adobe® Reader application on the BlackBerry® Playbook™. The 'files' option within Adobe Reader application is set to 'Denied'.
    Resolution
    Edit the application permissions file access rights for the Adobe Reader application.
    1.  On BlackBerry Playbook open Options
    2.  Select Security -> Application Permissions
    3.  Select Adobe Reader application
    4.  Edit file permissions setting to allow the application to access files stored on BlackBerry PlayBook
    5.  Save settings by selecting Back button after making changes
    rabbitupnorth:
    This solution works! Problem solved.

  • Does not read from the path

    Hi All,
    I am not sure if this is the right place for posting this.
    I have Oracle reports 10g installed in a linux box (10gAS). I have specified the path of the directories for reports in reports.sh file. But still it does not read from that path. What could be the problem?

    1. Check the env variable REPORTS_PATH
    2 Check the reports server conf file path. Open the <reports servername>.conf
    and check the value.
    Rajesh Alex

  • IView read another iView's profile.

    I have two iViews derived from the same PortalComponent, but have been set different set values for the profiles.
    When I added both of the iViews to the same page, one iView reads another iView's profile. Most of the time both of them use the same value from one profile, but which profile it is used is undertermined. If I keep refreshing the page, I can see which profile the two iView choose to use is random.
    The expected behavior should be each iView only uses its own profile.
    My EP's version is:
    J2EE Engine 6.40 PatchLevel 87289.311
    Portal 6.0.9.0.0
    The same code works fine on
    J2EE Engine 6.30 PatchLevel 84868.311
    Portal 6.4.0.0.200406231750
    In my portalapp.xml my profile is define like this:
    <component-profile>
         <property name="My Profile Name" value="default">
    In my portalcomponent code.
    I read profile by :
    request.getComponentContext().getProfile().getProperty(paramName));
    Can somebody tell me why? Is it a known bug? Did I missed some patch?
    Please mail me to [email protected] too.
    Thank you for your help.
    Harry
    Message was edited by: Xiaochen Du

    Hi Harry,
    > saved in IPortalComponentRequest
    In the original message, you wrote about a problem concerning the profile, now it's the request!?
    > If this is a fixed issue, please let me know,
    > in which patch it is fixed.
    If your are lucky, you'll get an answer to such questions on SDN, but anyhow, no official ones. That's the reason why I have suggested to open an OSS message, that's the support channel which should be able to answer officially to this kind of question. Anyhow, you would have to describe the problem in detail, also if the profile or the request is concerned...
    > confused with the version numbers
    There is a note about what build version corresponds to what SP/Patch. Anyhow, "sneak preview EP version 6.4.0.0.200406231750" probably is quite old, it's from 23.06.2004...
    Hope it helps
    Detlev

  • Read Excel file path in WD

    Hi,
    We want to read a excel file. For that we are using file upload UI element and HSSF POI to read excel file. The code to read the excel file is working fine in standalone. In standalone we are hardcoding the file path. But in WD application, we are not hard coding it.
    We are using following code to supply the file name to HSSF code through  file upload UI:
    try
             InputStream in = new FileInputStream(wdContext.currentContextElement  
                                               ().getFileResource());
             wdComponentAPI.getMessageManager().reportSuccess("IN "+in);
             HSSFWorkbook wb  = new HSSFWorkbook(in);
    catch (Exception e)
         wdComponentAPI.getMessageManager().reportSuccess("ERROR in HSSF");
    Where FileResource is a context variable binded with property "data" of FileUpload UI element.
    Now, the problem is that the excel file is not getting read. We are getting ERROR in HSSF message.
    Please help in reading the file path.
    Regards,
    Vaibhav

    Hi,
       Try this:
    InputStream in = wdContext.currentContextElement().getFileResource().read(false);
    Regards,
    Satyajit.

  • Read Portal IViews

    Hi,
    I am new to using portal.I have been trying to use JNDI lookup to read portal iviews using
    standalone java with relevant jars but i get javax.naming.NoInitialContextException: Cannot
    instantiate class: java.naming.factory.initial.Please anyone help me out with jndi name and
    the ways i have to implement.Here is the code..
    env.put(Context.INITIAL_CONTEXT_FACTORY,
              "com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
    //"java.naming.factory.initial"
              env.put(Context.PROVIDER_URL,                                    
    "localhost:53000");
              env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);          
    env.put(Context.SECURITY_PRINCIPAL,                     "administrator");
    javax.naming.InitialContext ctx;
    ctx = new InitialContext(env);
    Thanks,
    Sucharitha

    Hi Kiran,
    You have been using this link as URL.
    http://<host>:<port>/irj/portal?NavigationTarget=
    ROLES://portal_content/com.sap.pct/
    platform_add_ons/com.sap.caf.eu.gp.folders.gp/com.sap.caf.eu.gp.roles.runtime/
    com.sap.caf.eu.gp.worksets.runtime/com.sap.caf.eu.gp.pages.procinstance&DynamicParameter=
    processId%3704process.template.id=704B8100BCC111DEC2C300096B6E4F29&param1=CPD&NUMBER=
    4500001186&UserId=138458&&taskId=
    Now just try replacing following characters between occurence of "ROLES" and "&DynamicParameter" as follows:
    :  --> %3A
    /  --> %2F
    Also, after "&DynamicParameter" replace
    = --> %3D
    & --> %26
    to define passed Parameter Names and Values.
    It will look something like this:-
    "http://<host>:<port>/irj/portal?NavigationTarget=
    + "ROLES%3A%2F%2Fportal_content%2FXYZContent%2FBHBSS%2FXYZPages%2FXYZMaintenance" +
    %2FpgXYZ&DynamicParameter="
    + "RF02D-VKORG"+"%3D" + "1040"
    + "%26" + "RF02D-KUNNR" + "%3D" + 40
    + "&CurrentWindowId=WID1232176120474&NavMode=3"
    I have show the URL in the form of strings appended, you need to show them in a flow removing the double quotes and plus symbol.
    Let me know if you still have problem accessing through the link.
    Regards,
    Tushar Sinha

  • Iview path

    hi folks,
    How can I get the path of an iView ?
    I have to set the path of iView for the iFrame. As of now, I hard coded url of the iView.
    please tell me how to get the url of iView using APIs
    thanks n regards,
    nikhiL

    Hi,
    I would suggest to you not to use IView path in the IFrame instead call the portal component of this iview directly in Iframe.
    IFrame sr c= http: host:port/irj/ servlet/prt/portal/prtroot/YourProjectName.YourPortalComponent
    If you want to know the path to IView while the program control is in PortalComponent, then you can call
    request.getComponentContext().getContextName();
    This gives you the path to IView for which this request is responsible.
    But if you want to know the path, without being inside the IView, it is not possible.
    So you can only hardcode the url as you previously did.
    Regards,
    Praveen Gudapati

  • Error on KM Document iView path

    Hi Experts,
    I just created a KM Document iView to contain a document stored in KM. The path for my document in KM is:
    /root/documents/Folder/doc
    When clicking on the Preview button on the iView I keep getting and 404 error.
    Does anyone have a suggestion about this error?
    Thanks in advance,
    Neil

    in the path to document property
    instead of using the path
    /root/documents/Folder/doc(wrong)
    use below path
    /documents/Folder/doc(correct)
    This will solve your problem
    also check that you have atelast read permission to that document in KM content.
    Raghu

  • File reading (with configurable path) in ADF?

    Hi,
    I am developing an ADF application in Jdeveloper in which a drop-down list is populated by reading from a txt file.
    Currently I am using a static path inside the code (in java bean) to read the contents. However i want to make this path configurable.
    How can i make this file path configurable in deployment plan?
    Regards,
    Komal Babar

    Dear Frank,
    if you can give more detailed explanation, that will be nice, because i got more or less same requirement.
    if we create "Resource" Directory in web content or some where, how can we access through
    FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
    Regards,
    Edited by: Mohan Sangapu on Aug 5, 2011 1:38 AM

  • File Adapter Write: Howto read partnerLinkBinding "logical path"-property?

    A process writes a file to a fileserver, and further down the process I'd like to publish the path+filename of the written file to an external partnerLink.
    I'm looking for something similar to ora:getPreference(), but instead reading a spesific partnerLinkBinding property not just the preferences-section property of bpel.xml.
    alternative 1) From within the BPEL-process I configure a logical path, but I can't see any api for reading that value (my property "OutBoundFiles").
    The value is read and used by the jca:operation within the FileWriter, and I supply a static value for it in the bpel.xml, like in:
    <partnerLinkBinding name="OutboundFileWriter">
    <property name="wsdlLocation">FileWriter.wsdl</property>
    <property name="OutBoundFiles">\\fileserver\OutboundDir</property>
    </partnerLinkBinding>
    alternative 2) The FileWriter wsdl OutboundHeader_msg has the one-and-only element "fileName", which also contains what I'm looking for.
    But I can't see how to read this element either, probably because the BPEL-team don't expose the value, due to the fact that they don't support writing to the element (there is no support for writing files to a dynamic path in version 10.1.2).
    Current workaround:
    Currently I use a preference property in which I copy the "OutBoundFiles"-value, and read it runtime using ora:getPreference(). Not a beauty.

    alternative 3)
    One could use a simple copy rule, by reading the bpel.xml-file:
    <copy>
    <from expression="ora:doc( 'bpel.xml', '/BPELSuitcase/BPELProcess/partnerLinkBindings/partnerLinkBinding[ @name = &quot;OutboundFileWriter&quot; ]/property[ @name = &quot;OutBoundFbFiles&quot; ]') "/>
    <to variable="emailpayloadUNCPath"/>
    </copy>

  • Reading https: certification path

    Sorry for crossposting but in the other thread I've got no answer for weeks.
    While reading from a https site I get the a ValidatorException "PKIX path building failed:" caused by ValidatorException "unable to find valid certification path to requested target". I've found a lot of threads on this subject with a lot of questions but no answer. There's no problem with the certificate, each of my 3 browsers can access the site. I suppose the browsers acquires public keys from the internet while URLConnection.getInputStream() does not, but why?
    Can I make it work generally so I can access any https-site from java just like my browsers can?
    Can I make java ignore the absence of valid cartification path (of course, there is a risk, but in this case I do not care).
    Can What else can I do? Download certificates and give it to java somehow?

    I think a cert has expired and a newer version is used now. My code didn't change. I better should not post the chain, but I'd like to send it to you per email. I haven't found your address, mine is [email protected] (pls write "https" or something like that in the subject as I'm getting quite a lot of spam and I'm good in quick deleting).

  • Open in read / set save path

    Hello,
    I would like to open an image in read only mode and then set the save path to save to a different directory, without actually saving the document. The former i can manage. When the user selects save I wish the save directory to be different from the source. Is it possible.
    Thanks

    Thanks for the reply.
    Anything is welcome at this point.
    And yes, I did try both through PowerShell and through the Unlocker and the behavior is pretty much the same. If the item is checked in, there is no trace that it is locked, if I Check it Out (the only thing I can really do with it) it shows as "LongTerm"
    but then throws the same exception
    Unlocking...
    Error occurred. Details:
    Save Conflict
    Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.
       at Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType, Boolean bIsMigrate, SPUser modifiedBy)
       at Microsoft.SharePoint.SPFile.CheckIn(String comment)
       at ForceSPItemUnlock.UnlockerForm.UnlockButton_Click(Object sender, EventArgs e)
    The method UpdateItemCheckoutExpiration sounds insteresting though.
    "The more difficult something became, the more rewardant it was in the end"
    http://ftduarte.blogspot.com

  • How can I read the images' path in the stored catalog?

    I'm really new to pluginu development and LR. I have a problem finding the right methods to execute my intentions.
    I'd like to get the real path(s) of the pictures in the catalog, so that my external plugin can use them for further processing.
    I know Lightroom stores the catalog in C:\Users\[user name]\Pictures\Lightroom\Lightroom 5 Catalog.lrcat. But I want to get the actual path to each .jpg inside that catalog and write that path into a simple file (e.g. .txt) from which my plugin can read the path and use the images chosen by the user in LR.
    Then my plugin stores the processed images with tags into a file which should be read by LR. I don't know if it's so easy. Maybe it must create an extra collection for the catalog?
    The thing is that the Lightroom 5 manual isn't really helpful. And it would be great if someone could help.

    Thank you. I already figured it out by searching the whole internet
    But there's a thing bugging me. I want to delete the log file in which all paths are stored because everytime I run the plugin I get duplicates of the paths.
    So I thought of removing the existing log file before every time I use the plugin.
    I tried LrTasks.execute("del %HOMEPATH%\\Documents\\photosPath.log"). But nothing happens. When I use my personal path then it works pretty well. But I want it to work on any computer....

Maybe you are looking for

  • I need to transfer my itunes librairy from a pc to my new mac. How to do?

    I need to transfer my itunes librairy from a pc to my new mac. How to do?

  • Connecting Mac Pro with GeForce GT120 to monitor and TV at same time

    Hi - I just want to know in advance of buying the latest 8 core Mac Pro with a single NVIDIA GeForce GT120 graphics card, will this connect to both my apple cinema display 20'' and my Panasonic Viera LCD TV's 'PC Input' at the same time? From what I

  • Use VBA to place signatures in a word document by selecting radio buttons

    Hi, I'm creating an word document with signatures. I have 4 signatures of which max 2 and at least 1 can be choosen. I created 2 frames with 4 radiobuttons. The document writer can select one button in the frst frame with the names of het directors a

  • Using SVN under OS X.5 Leopard

    Hi there! We run a Mac Pro with OS X Server for collaboration services. We need to use SVN. As this service is not directly accessible from Server Admin, but is always running because it's used as a backend for Wikis and blogs, *is there any way to u

  • Missing drivers part II

    Hi, I recently formatted a Pavilion 15-n213sl and I re-installed Windows 8.1 (64-bit). In the Device Manager there are the following devices with missing drivers: ACPI\HPQ6001\3&11583659&0 ACPI\HPQ6007\3&11583659&0 \VEN_10EC&DEV_5227&SUBSYS_2166103C&