Get current PCD path from user context

Hi expert,
Anyone has an idea how to get the pcd path of WDJ ? from user context ?
Thanks for your quick reponse.
Kr,
Ben.J.

Hi Ben,
I am not quite sure what your use case is here.
However, have a look at this link:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b4/adbf40b87e0366e10000000a1550b0/frameset.htm
If it is for navigational purposes, you can use the WDPortalNavigationService.
Have a look at http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2f72d990-0201-0010-85b0-8d626287dd4d
- SM

Similar Messages

  • Get current RID path from file upload in KM

    Hi all,
    I wrote an customized upload application using upload ui element.
    The question is , how can I get the current RID Path when I trigger the WDJ upload action ?
    Thanks for your help. please.

    Hi,
    Here is some of examples from WDJ for uploading the files, please go thr below link i hope it will help you
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?QuickLink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
    Thanks,
    Sreeni.

  • How to get physical file path from logical file path

    Hi
    there is a immediate requirement ,
    I have logical file path but I need to get physical file path from it.
    So is there any FM which providesthis functionality.
    Points will be rewarded.
    Thanks

    Can you please share the piece of code ?
    Which File APIs are you using ?
    For java file, you can get complete path by simple method call : getAbsolutePath() on file object.
    Regards,
    Ashwani Kr Sharma

  • Outb() and ddi_put8()  functions from user context

    dear all,
    the man pages for both outb() and ddi_put8() say:
    "These functions may be called from user or interrupt context"
    Question: If I want to call them from user context: which library do
    I have to link with my executable ?
    cheers,
    julien

    Hello.
    I think "user context" does not mean calling from an executable file.
    "User context" means that the functions can be called when the driver is called from a system call (e.g. ioctl) in contrast to interrupt service routines which are called by the OS.
    Sparc machines do not allow something like iopl() in Linux while x86 would allow that when writing a special driver for that.
    Martin

  • Issue with Getting the file path from InputFile component

    Hi,
    One of our requirement is like below:
    I am working on ADF 11g (latest release R1) page. User will select the file and when he/she clicks on the Save button we need to store the file path in the database.
    In the database file_path is varchar2(300). We need to store just the file path. I am using InputFile component but filepath is not getting inserted.
    This is really urgent. It would be really appreciate if anyone can guide me on this.
    Thanks
    MC

    Hi Mahesh,
    I have manage to store the file path from the InputFile component in Jdev 11g. I found the file upload script from this forum and manage to alter it so that i could save the file path to the database. But my problem is to retrieve it back to view as a document. Hope this will help you :)
    This is an example of what I have manage to save to my DB :
    (CLOB) //192.168.238.53/c$/Research/Docs/0906160744/EyeCandyLog.txt
    In my form, I save the file path first before I update the other fields. My code is something like this :
    public void uploadFile(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    InputStream in;
    FileOutputStream out;
    if(tanda == 0){
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    id = rS01Proposal.dptProposalid();
    tanda = tanda + 1;
    System.out.println("tanda"+ tanda);
    } catch (Exception ex) {
    ex.printStackTrace();
    System.out.println("id"+id);
    proposal = id.substring(6);
    System.out.println("proposal"+proposal);
    UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
    String fileUploadLoc = "//192.168.238.53/c$/Research/Docs/"+id+"/";//The place where file will saved
    //create upload directory
    boolean exists = (new File(fileUploadLoc)).exists();
    if (!exists) {
    (new File(fileUploadLoc)).mkdirs();
    if (file != null && file.getLength() > 0) {
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage("File Uploaded " + file.getFilename() +
    " (" + file.getLength() + " bytes)");
    *// extracting the file message to get the path*
    context.addMessage(valueChangeEvent.getComponent().getClientId(context), message);
    columnL = valueChangeEvent.getComponent().getClientId(context);
    column = columnL.substring(9);
    System.out.println(column);
    columnLengkap = "RS01"+column.toUpperCase();
    System.out.println("columnLengkap"+columnLengkap);
    *try {*
    out = new FileOutputStream(fileUploadLoc + "" + file.getFilename());
    in = file.getInputStream();
    *for (int bytes = 0; bytes < file.getLength(); bytes++) {*
    out.write(in.read());
    in.close();
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    } else {
    String filename = file != null ? file.getFilename() : null;
    String byteLength = file != null ? "" + file.getLength() : "0";
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage(FacesMessage.SEVERITY_WARN, " " + " " +
    filename + " (" + byteLength + " bytes)",
    null);
    context.addMessage(valueChangeEvent.getComponent().getClientId(context),
    message);
    System.out.println(fileUploadLoc+file.getFilename());
    a = fileUploadLoc+file.getFilename();
    b = b + 1;
    if (flagInsert == 0){
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    rS01Proposal.insertDoc(id,proposal,columnLengkap,a);
    flagInsert = flagInsert + 1;
    System.out.println("tanda"+ tanda);
    //session
    ProposalSession.storeCurrentProposalId(id);
    } catch (Exception ex) {
    ex.printStackTrace();
    }else{
    // update proses
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    rS01Proposal.updateDoc(id,proposal,columnLengkap,a);
    flagInsert = flagInsert + 1;
    //session
    ProposalSession.storeCurrentProposalId(id);
    System.out.println("tanda"+ tanda);
    } catch (Exception ex) {
    ex.printStackTrace();
    }

  • Get current active desktop console user

    Hi,
    I am googling for some time trying to find a way to determine UserID
    of user using the physical console. I am after a command that can be
    run from terminal, ssh, cron.
    "who" shows all users logged in with Fast user switching,
    all of them on 'console' but I see no way to figure out who is
    the one using the desktop that time.
    Many hits point to CGSession, but so far I was not able find the options
    to get the ID of current console user. It is certain that this binary has
    access to the value, because when trying -switchToUserID it can respond with:
    Unable to Fast User Switch: User must be the current console user or root.
    Is there any way to find out current console user? Would appreciate also
    a pointer to some library I can call from C and printf the value.
    Thanks in advance.
    Andrej

    Hi,
    Your post was 100% to the point. Thanks a million. I was hoping there would be a binary in the system already to provide the info needed, so this forum appeared the most appropriate. So far I've never compiled my C program on a Mac but with the info from published documents it was a snap:
    (how to paste code samples to this forum??)
    mac40:timemgmt amk$ cat loguser.c
    #include <stdio.h>
    #include <SystemConfiguration/SystemConfiguration.h>
    #include <CoreFoundation/CFString.h>
    http://developer.apple.com/library/mac/#qa/qa2001/qa1133.html
    http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPMultip leUsers/Concepts/FastUserSwitching.html#//apple_ref/doc/uid/20002209-BAJDIHBJ
    static CFStringRef CopyCurrentConsoleUsername(SCDynamicStoreRef store)
    // Returns the name of the current console user, or NULL if there is
    // none. store may be NULL, in which case a transient dynamic store
    // session is used.
    CFStringRef result;
    result = SCDynamicStoreCopyConsoleUser(store, NULL, NULL);
    // If the current console user is "loginwindow", treat that as equivalent
    // to none.
    if ( (result != NULL) && CFEqual(result, CFSTR("loginwindow")) ) {
    CFRelease(result);
    result = NULL;
    return result;
    main(int ac, char*av)
    CFStringRef cf;
    const char * s;
    if ( ( cf = CopyCurrentConsoleUsername ( NULL ) ) != NULL )
    if ( ( s = CFStringGetCStringPtr ( cf, CFStringGetFastestEncoding ( cf ) ) ) != NULL )
    printf ( "%s\n", s );
    exit ( 0 );
    perror ( "Get current console user" );
    exit ( 1 );
    mac40:timemgmt amk$ cc -o loguser loguser.c -framework CoreFoundation -framework SystemConfiguration
    mac40:timemgmt amk$ who | grep console
    ivka console Nov 25 07:11
    eyetv console Nov 22 12:31
    mac40:timemgmt amk$ ./loguser
    eyetv
    mac40:timemgmt amk$
    BTW, I am trying to implement a kind of distributed parental control with global time limits over multiple computers.
    Thanks!

  • Get current PDF path when filename has unicode chars

    How do i get the current PDF path if the filename has unicode characters
    Thanks
    Swapneel

    How are you getting it now that it isn't working?

  • Get current swf path

    I'm developing an extension use Extension Builder for Photoshop CS5. I have to use an executable file in my extension. In general, if you use the Adobe Extension Manager to install the extension, the extension's swf file will put to USERPATH\AppData\Roaming\Adobe\CS5ServiceManager\extensions\YOUR EXTENSION NAME.
    However, some time it isn't. And I don't know the reason. My executable file will be copy to the path as same as the swf file. So I want to get the swf file's path.
    In Flex, the File class has two static variables File.applicationStorageDirectory and File.applicationDirectory. But they don't match the swf file's path.
    How can I get the path in runtime? Solution use Flex or Javascript Script is ok.
    Any help will be appreciated. Thanks!

    "panell" <[email protected]> wrote in
    message news:e97o6o$18i$[email protected]..
    > Hi
    > How to get current flash movie path?
    > ex. C:\Movie1.swf? or
    http://www.test.com/Movie.swf?
    myTextBox.text = _url;

  • Best way to get to a path from a browser dialogue

    I want to attach filed to an email
    The file is in one of my finder windows
    What's the quickest way of attaching?
    OK... so the mac's search is awesome - no waoting and the file can be found super quick
    But what if the file is called abc.zip and there are 100 other files of the same name elsewhere?
    In Windows, I would copy the path from Explorer - then paste whereever needed and the folder opens ready for me to select files
    I do this all the time - for just about every application where I need to open a file
    On Mac, getting the path takes tooo long! (OK... we're talking about seconds... but seconds to a keyboard freak is a long time!)
    I'm hoping the answer will help me figure out how to open files from other applications in a similar fashion - just by pasting the path
    Thanks
    Omar

    If you enable the path bar in Finder (View->Enable Path Bar) the path for the file or folder will be displayed at the bottom of the finder window.
    Any or all if it is live and can be selected and dragged. So if you want the whole path drag from the end, if you want only part of the path drag from there.
    You can also click on any prt o it to open that in Finder.
    regards

  • How Do I get a File Path from a FileName?

    Hi there,
    I was wondering how do i get a file path(i.e) directory only from a file name.
    Say i got a file called "C:\Test.txt" is there a method in java that will allow me to only get "C:\"?
    I've tried getPath(), getAbsolutePath() and they all return the directory and the file itself.
    Please Help
    James

    String path = file.getPath();
    String name = file.getName();
    int i=0;
    for(i=0; i< (path.length()-name.lenth() ); i++){
    String temp = path.substring(i, i+name.length());
    if(temp.equals(name) break;
    return path.substring(0,i);

  • Get current logged in Windows user name

    Hi
    Is it possible to retrieve the current logged in Windows user name into a text field automatically?
    Thank you in advance for the help.

    Hi,
    This is a security issue and you will need a javascript file in the Acrobat folder. This will contain a trusted function allowing access to the login name.
    Here is a thread that looked at this:
    http://forums.adobe.com/message/2198084#2198084
    However read to the end, because if you are Reader Enabling the form (at least through Acrobat) then you may run into problems.
    Good luck,
    Niall

  • How to get the file path from HTML input form in Firefox3

    In IE7 (and probably all famous browsers, including old Firefox 2), if we submit a file like 'C:\folder1\folder2\folder3\filename' it works properly and gives the full path to the file and the filename.
    In Firefox 3, it returns only 'filename', because of their new 'security feature' to truncate the path, as explained in Firefox bug tracking system (https://bugzilla.mozilla.org/show_bug.cgi?id=143220)
    I have no clue how to overcome this 'new feature'.
    Can anyone help to find a single solution to get the file path both on Firefox 3 and IE7?
    Thanks in advance....

    Doubleposted and ignored any previous answer: [http://forums.sun.com/thread.jspa?threadID=5342405]. Don't do that. It's rude.
    Regarding to your "problem": why do you need the file path?

  • How to get the file path from HTML input form in Firefox 3...

    In IE7 (and probably all famous browsers, including old Firefox 2), if we submit a file like 'C:\folder1\folder2\folder3\filename' it works properly and gives the full path to the file and the filename.
    In Firefox 3, it returns only 'filename', because of their new 'security feature' to truncate the path, as explained in Firefox bug tracking system (https://bugzilla.mozilla.org/show_bug.cgi?id=143220)
    I have no clue how to overcome this 'new feature' because it causes all upload forms in my webapp to stop working on Firefox 3.
    Can anyone help to find a single solution to get the file path both on Firefox 3 and IE7?
    Thanks in advance....

    As you're posting this in the JSF forum and looking at your [previous topic|http://forums.sun.com/thread.jspa?threadID=5342365], I assume that you're using Tomahawk's t:inputFileUpload. In this case, just use UploadedFile#getInputStream(). You may find this article useful: [http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html].
    By the way, are you lazy or just dumb? You wasted one week to this! I've posted the aforementioned article one week ago. How did you stuck?

  • Air Javascript - Get path from user selected directory

    Solution: The resulting variable is just an air.File, and
    nativePath is accessible, as I expected. It just did nothing the
    first few times I tried it.

    Try this:
    SPPlatformFileSpecification spec;
    // do sADMBasic->StandardGetDirectoryDialog()
    ai::FilePath path;
    sAIFilePath->SetFromSPFileSpec(spec, path);
    Then talk to path to get your location. Hopefully that does the job. I've never used StandardGetDirectoryDialog() though, so for all I know its broken.

  • How to get Current Log in BO user name in data access driver

    In universe, to get the current log in user is via @Variable('BOUSER').
    Right now, I need to be able to get the user name in the data access driver. I am writing a customized data access driver because we need to patch some where clause on the the query generated by the universe based on the logged-in user info. I only think of using end_sql parameter or adding an universe level filter to patch the @Variable('BOUSER') to the query, which would not work if user want to use customized query.
    Can anyone tell me how to get currentBO user name from connection server ? or how @Variable('BOUSER') is translated into the logged-in user name in the universe?

    Shweta,
    The link you provided was the Auditor guide for BO 6.x, I'm not sure it that is going to help Karen or not.
    Karen,
    There is function called connection
    (usage:  =connection([Query Name]), where [Query Name]
    denotes the name of the tab for the query under Edit Query)
    Here is some of the output from connection:
    4;ODBC18;MS SQL Server 2000166; VERSION=7; USER=xxxxx;
    PASSWORD=; DBTYPE=Relational; DATABASE=xxx_xxxx;
    ODBC_USER=xxxxxx; ODBC_PASSWORD=; BO_DSN=xxxx_xxxx;
    BO_DRV_CONNECT_MODE=0; 224; VERSION=6; Name=xxxxx; Shared=4;
    LoginTimeout=600; Timeout=600; Pool Time=60; Array Fetch Size=10;
    Array Bind Size=5; RecommendedLenTransfert=1000; Password_Encryption=x;
    AliasTable=; MeasureDimension=; Hint=; ConnectInit=; ArrayFetch=1;
    I'm not sure if this info helps out either, being that connection provides info on a post-processing basis and it sounds like you need to get out ahead of the SQL generation.  The @variable('bouser') would seem like the place to be, however, in allowing custom SQL to take place you loose the bouser due to an individual could customize the SQL to the point that it gets unwantingly yanked out.  The end_sql might be your answer...
    Thanks,
    John

Maybe you are looking for