Getting PCD folder name of iView

Hi guys,
I'm writing an application to print out the iViews and their properties in Folder A, which consists of sub-folders B and C. THus, the application is retrieving and printing the iViews in sub-folders B and C as well. However, apparently, the iViews are not retrieved in any sequence and it is hard to tell which folder the iView belongs to. Is there anyway to retrieve the folder where the iView resides?
Thanks,
Zhenmin

Hello,
The pcd path of the iview contains the folder id also.
Or better, serach the iview and then right click and select "Locate in Portal Catalogue". That way u can get the complete folder structure where the iview is stored.
Regards
Deb

Similar Messages

  • How to get the folder name of selected subitem in tree structure?

    Hi All,
               I created a tree structure like below.
             ->Folder1-- 1
                              2
                              3
            ->Folder2-----1
                               2
                               3
                    i.e i have two folders & each folder having the values like above.Now i want to perform some action by clicking on the any of the values.Suppose if i click value 2,i want to do some action.the actions need to perform is varies from floder to to folder.
            So How can i get the folder name of clicked Value?
    Regards,
    Ravi

    Hi Kumar ,
    the below code should help you.
    Register the below action for the leaf node for which u need the subfolder's name above it.
    Worked fine in my system ...hope it does in ur scenario too
    method ONACTIONGET_PATH .
      data : lr_element TYPE REF TO if_wd_context_element,
             lr_node TYPE REF TO if_wd_context_node,
             ls_path type string,
             ls_path_node TYPE string,
             lt_string type TABLE OF string,
             l_lines type i,
             l_lines_1 TYPE i.
      lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
    **-> getting the path of the node/leaf
    *which  u had clicked and from that getting the node above it
      ls_path = lr_element->get_path( ).
      SPLIT ls_path at '.' into table lt_string.
    -> remove the first 2 entries as they will contain the view name
      DELETE lt_string FROM 1 to 2.
      l_lines = LINES( lt_String ).
      l_lines_1 = l_lines - 1.
    -> remove the last 2 entries as they will contain the element in the path
      DELETE lt_string  from l_lines_1 to l_lines.
      LOOP AT lt_string into ls_path.
        CONCATENATE LINES OF LT_STRING into ls_path_node SEPARATED BY '.'.
      ENDLOOP.
    **-> getting access to the node above the leaf element
    LR_NODE = WD_CONTEXT->PATH_GET_NODE( path = ls_path_node ).
    lr_element = lr_node->get_element( ).
    **-> Getting the name of the folder...
    *here path is the attribute in my context which stores the name of the folder
    lr_element->get_attribute( EXPORTING name = 'PATH' IMPORTING value = ls_path ).
    endmethod.

  • Getting the folder name of the service in Tomcat 5.5

    Hi,
    I am using Tomcat 5.5.
    I have a problem getting the folder name my service is located in.
    Ex.
    \webapps\myApp\...
    Here i would like the string "myApp" - does anyone know how to get this?
    The reason for this is that i use a war file to deploy "myApp". I have a set of properties which i don't want to change so I put them in a file outside "myApp" called "myApp.properties". I can then easily change between a test environment and my online environment.

    I don't think you understand his answer.
    Reading properties files from the file system directly is a mediocre solution at best for a web application. Even if it happens to work in this particular situation.
    For example you would be better off loading properties from a single properties file as classpath loaded resources and simply using the context as a key to the properties in question. You could also configure this from web environment parameters specific to the web application.
    Anything that puts a hard dependency on a particular file system layout is a bad idea, anything that reads files from within a web application server is likely to be a brittle solution.
    This may work, for you, in your current circumstances, but you need to understand why this is a poor approach in general.

  • Passing folder name to iview

    Hi all,
    We're developing a new application using km to make documents available to end users. We have a repository set up with lots of folders. Under each folder, there's up to 12 sub folders. Each of these sub folders may have their own sub folders.
    We want to present a km search iview for each of the subfolders. We're wanting to use the tool area iview so that our search results will open up in a new window. We also want to use our own custom layout set. We know how to create a KM Search iview and reference it in the tool area search iview so that we can define our layout set, search option set, and what ever other customizations that we want to make.
    I'm wondering if there's a way to pass a folder name to a km search iview. What I'm trying to avoid is having to create a separate tool area search iview, km search iview, and search options set for each of the individual sub folders. If I have to create each of these separate, that means that I'm creating three portal objects for each sub folder: tool area search, km search, and search options set.
    Has anyone got a solution to this?
    Thanks!
    -Stephen Spalding
    Web Developer
    Graybar

    if I am doing something like this : for i in (execute immediate Lv_sql_query)
    I am getting an error which is :
    PLS-00103: Encountered the symbol "IMMEDIATE" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in is mod remainder not
    range rem => .. <an exponent (**)> <> or != or ~= >=
    My code:
    create or replace procedure p_table_compare(fp_table_old in varchar2, fp_table_new in varchar2)
    as
    Lv_sql_query varchar2(2000);
    begin
         --dbms_output.put_line('Hello World');
         Lv_sql_query := 'select * from '||fp_table_old;
         for i in (execute immediate Lv_sql_query)
         loop
              dbms_output.put_line(i.employee_id);
         end loop;
    end;
    Please help.
    Regards
    Rahul

  • How to get right folder name/location on import?

    I can't seem to get LR 3.x to import into the desired folder structure like I used to do with
    LR 1.x and 2.x.  I'm trying for a structure that looks like this:
    I want LR to automatically create a folder with the date stamp in it and located in the right year and then let me enter the the last part of the folder name that identifies the subject matter before the import starts.  So far, all I can get is the auto-generated folder name by date with no ability to edit that or a fully custom folder name where I have to both locate it properly and type the entire name including date.  In LR 1.x and 2.x, this was really easy.  LR would suggest the folder name (or multiple folder names if the images span multiple dates) with the date in it and I could just double click on it to add to the supplemental name before the import.  Can't find any way to do that in LR 3.x.  What it means is that I have to do the import, wait for it to complete, then come back and manually rename each folder it created.  This is particularly a pain when there are multiple folders (across multiple dates) and/or when my backup program has already kicked in and done a backup of the auto-generated date before I come in and manually rename it.
    So, my question is, how do I get LR to auto-suggest the right date-based folder name in the right folder location and let me add something onto the end of it before the import?  This was very easy in LR1.x and 2.x import.

    It slipped under the radar when redoing the new import window.
    Hopefully, we'll get it back in next major update. In the meantime. you
    can add the additional text post import by right clicking on folder name
    then choosing Rename from context menu.
    Thanks Ian.  I hope it does indeed come back.  Renaming the directories manually is what I do now - it just extra work from how I used to do it and it doesn't fit smoothly into the workflow because LR seems to get confused sometimes if I rename while it's still importing or while still building thumbnails.  For a big import, that means I have to go away, let the thumbnails build, then remember to come back promptly to rename the directory before my backup scheme starts backing up the wrongly named directory.  I've managed since 3.x came out, but it finally annoyed me enough I thought I'd post in hopes I was just missing a way to do this.  I sure hope this comes back in a future version.  Organizing by named "shoot" is a very natural way for me to do it.

  • Folder names with diacritics & NFS shares

    OK; sometimes things appear simple but are not. Sharing files with an OSX client has been, and is a nightmare in a Linux environment.
    We have a mostly Ubuntu environment and have tried Samba, and NFS. After a significant amount of work the Mac can do stable NFS Mounts provided the following unconventional settings are implemented:
    In the /etc/exports file on the Ubuntu server:
    /some/catalog/to/export 192.168.0.0/24(rw,sync,nosubtree_check,allsquash,anonuid=1000,anongid=1000,insecure)
    - anonuid needs to be user ID of the user on the server that is the owner of the catalog
    - anongid needs to be group ID of the group on the server that is the primary group for of the catalog
    On the Mac in Disk Utility/File/NFS Mounts:
    - Enter the correct paths
    - click "Advanced" and fill in: resvport,nolocks,locallocks,intr,soft,wsize=32768,rsize=32768
    This finally let's you mount the share
    However, after using the share for a while we discovered that folder names on the share that contains diacritic characters, including characters å,ä,ö and Å,Ä,Ö did not display in the file listing in Finder (In Path Finder Folder names are replaced with " -- "), nor could the folder be opened. However, right-clicking the " -- " in Path Finder and selecting "Get info" did display the correct path to the folder and did display the diacritic characters in the path correctly.
    In a catalog containing 264 folders that all had the same owner and the same group & permissions, 94 did not display properly in OSX/Finder and none could be opened. All 94 contained one or more diacritic characters (åäö or ÅÄÖ). None of the 170 others did contain any diacritics. Spaces, and e.g. "&" does not cause problems.
    With an Ubuntu client I can NFS mount the same server, and I do get the folder names displayed correctly and I can open the folders. It appears likely there is a bug in OSX - likely in Finder/Path Finder, since the correct path name is displayed in "Get Info".
    Message was edited by: TheSnowGirl
    Message was edited by: TheSnowGirl

    Gave up on this and downloaded Interarchy (RBrowser seems similar). This is not NFS and not Samba; rather FTP over SSH (SFTP). Secure, even for remote access and works out of the box, like breeze. All access rights intact . And there is a preview of file, rather that open on remote server...

  • AppleScript: Set folder name of Folder Action?

    Problem:
    How to get the folder name that the running Folder Action script is attached too. Script is functional, stdin bash script with AppleScript via osascript. I just want the folder name, not the POSIX path to it. The System Events dictionary suggests this is possible. I don't want to hardcode the action's assigned folder in the bash script if I can get it dynamically from AppleScript. I know how to return it to bash. AppleScript newbie that has spent several hours googling and testing already.
    Tried:
    tell application "Finder"
         --AppleScript Editor can't get container -- no surprise. Folder action does work
         get POSIX path of (container of ((path to me) as text))
         set workingDir to quoted form of result
         display alert "Current Folder: " message workingDir as critical
    end tell
    tell application "System Events"
         activate
         --AppleScript Editor can't get name of folder action. Folder action does not work
         set currentDir to name of folder action
    end tell
    Appreciation for time and solution in advance.

    twtwtw wrote:
    In that case I suggest you make your life easier.  delete the osascript bit and just return a 0 or 1 from the shell script.  That integer will be passed on to the next action, so add an applescript action that checks to see if the input is 0 or 1 and displays a dialog if necessary:
    on run {input, parameters}
              if input as integer > 0 then
      -- error
      display alert "whatever"
              end if
    end run
    The only reason I posted in the first place was to assess if it was possible to dynamically discover the folder name of the folder action using AppleScript through an osascript request. If the bash script has to be scrapped and entirely rewritten as a Applescript action -- just to obtain the folder name, then that answers my question.
    The purpose of the osascript was to provide an OS X style, user friendly dialog that displays any martian files the bash script ignored. It was the least amount of coding for the result.
    I believe that your input example from above would take the exit status from the preceding shell script. How is my invalidFiles variable passed then? In the shell script, I can pipe the invalidFiles printf line to pbcopy to put that content on the clipboard. After the script is done, I can retrieve that information with a pbpaste command. I wonder if this information is available to your trailing AppleScript action for inclusion in the display alert statement?

  • Bundle install directory - using variables folder name

    Hello,
    I have bundle that has to copy a file to a specific folder in the userdirectory.
    In windows, I can use the %username% variable to get the folder name.
    How can I use that in my bundle .
    Ex : c:\users\%username%\....
    thanks in advance
    Greetings
    Lainkes

    Lainkes,
    The better variable to use would be %USERPROFILE%, which will point to the user profile directory on both Windows XP and Windows 7.
    You have a couple of options for your file copy action - you can either use a batch script within a "run script" bundle, or you can use an "install file" action.
    I'd recommend the "install file" action if it's not a terribly large file since that action results in the file being uploaded to the repository, and therefore does not require any mapped drives or UNC paths in order to copy to the client.
    Simply specify %USERPROFILE% in the "Destination Directory:" box in the install file action.
    Jacob
    Originally Posted by alain-janquart
    Hello,
    I have bundle that has to copy a file to a specific folder in the userdirectory.
    In windows, I can use the %username% variable to get the folder name.
    How can I use that in my bundle .
    Ex : c:\users\%username%\....
    thanks in advance
    Greetings
    Lainkes

  • Split library, folder names and paths are in a mess. Need to get library all in one place on my storage drive and off my OS drive. In a fix!

    Help appreciated on this one as I'm OK on my PC but far from a whizz. Done a little investigation and reading of https://discussions.apple.com/thread/5199195?start=0&tstart=0 but I just can't seem to get anywhere and end up with a very underpopulated iTunes.
    To set the scene. Been using iTunes for many years and have had several PCs in this time and migrated the library over. Each time I have had a half hearted attempt at organising it all on 1 drive but it has obviously not gone to plan hence my split library and weird file/ folder paths. e.g.
    for some reason my recently downloaded apps are stored in C:/users/mark/my music/itunes/mobile applications. I also have numerous itunes library files on this drive
    my music is mainly stored on my storage drive B:/itunes music/music/music. On both drives I have mobile applications folders each with many apps in.
    I have set my itunes media folder location to B:\iTunes Music\Music so have no idea why all my downloaded apps end up on the C:/, nor have I any idea why they appear in the library seing as the itunes media folder is set to B:/
    I hope you can make heads or tails of this as I am even confusing myself as I type!
    Help appreciated as every time I try and move stuff around I end up with a very depleted library and have to remember what I moved where to put it back!
    Mark

    So I right clicked to find the files and relink, and it did not work. The folder name disappeared.
    It didn't disappear, it moved (because you told Lightroom to move it). It moved from the incorrect folder location, to the new folder location. Please look in the new folder, in whatever location it is in, not in the old folder and the old location, and you will find the photos.

  • How can I get rid of directory path in front of my folder names in Folder listing in Library mode???

    Im using the most recent version of Lightroom 5.3 (updated through CC - even though this has shown up on previous version) on Windows 7 and all the folders in my library are showing up with the directory path in front of my folder names. How can I get rid of this? I do not see any options in preferences to turn this off. I have also turned off preferences in Windows > Folder Options Control Panel "Display full Path in Title bar" option.
    I have Lightroom on several computers and have set up preferences the same on each workstation, and this only shows up on one workstation.
    Any help would be appreciated.
    You can see from the image  below how this is showing up.
    Thanks
    Thanks!

    Click the little down arrow/+ symbol  next the + - in the folders bar.

  • How to get the shared name of a folder in my PC through java code.

    Hi,
    I have a shared folder in my PC adn its shared name is different. Is there any way to get the shared name of that folder from java code. I have the absolute path of that dir. Can I get the shared name from that path in java or is there any other method.
    Thanks.
    Edited by: pavanspecial on Nov 28, 2007 11:34 PM

    Hi, Thanks for your reply. I have even tried through 'net share' , but i could not the share name from the path i have. For the 'net share' i need to give the share name itself.

  • How to hide the folder name in a KM Navigation Iview

    Hi,
    Scenario,
    I am using a KM Navigation Iview with LinkListExplorer Layout set. The Folder Name appears at the top of the collection.
    Please can someone tell me how I can hide the folder name for the iview. i.e I do not want the folder name to appear in the iview.
    Appreciate your help.
    Thanks,
    Vaishali

    Folder name is located in the breadcrumb
    remove your breadcrumb in your collectionrenderer of the layout set you are using.
    Check the layout set you are using in your KM navigational iview.
    Raghu

  • My images are still in the catalog, but the Folder name has disappeared. I need to get the folder back into my structure with the images in place

    Help: I have a very well defined folder structure. Folder are located in a Master location and organized by State. Inside of these are my master RAW file folders organized by location. For example: West Virginia > BIRI_RAW_2012, BLFA_RAW_2013, NERI_RAW_2013, etc. After I set up the masterful following a shoot, I go to LR and import the images. At one time I inadvertently imported the NERI_RAW_2013 masterful set as a subset of something else and it was not appearing in my LR Module in the organization I prefer. So I went to my master folders on my drive and moved the NERI file into the West Virginia state folder. When I went back to LR, as expected the NERI folder was grey with a question mark. So I right clicked to find the files and relink, and it did not work. The folder name disappeared. The RAW files are still in the catalog and show up in a missing photos search. I can't reimport because they are already there. I just need to restore my folder structure and get the images back to the right spot.

    So I right clicked to find the files and relink, and it did not work. The folder name disappeared.
    It didn't disappear, it moved (because you told Lightroom to move it). It moved from the incorrect folder location, to the new folder location. Please look in the new folder, in whatever location it is in, not in the old folder and the old location, and you will find the photos.

  • How do I transfer files from a flash drive to iMac. I get a folder with "no name" which I can live with but I can't find any way to make the actual physical transfer of the files to the iMac.

    How do I transfer files from a flash drive to my new iMac?  I get a folder with "no name" that I can live with but I can't find a way to transfer the flass drive files to to iMac hard drive.

    What happens when you try to drag & drop the files?
    ~Lyssa

  • How do I get the right-click-on-tab - "Bookmark all tabs" to put the bookmarks in a folder of my choosing without creating a subdirectory named "[Folder Name]

    Every time I create a new folder, say on the bookmarks toolbar, like "REOPEN 6-13-14" and use the "Bookmark all Tabs" function to create bookmarks to reopen later, it creates a sub directory in the new folder called [Folder Name]. If I have 4 windows open with multiple tabs and do this, it creates 4 separate [Folder Name] folders in the "REOPEN...." folder. Really want to just add all bookmarks into one big folder to reopen later.

    If you use "Bookmarks All Tabs" then Firefox will always create a new folder with the name that you specify in the location that you specify.
    If you do not change the default name then it keeps [Folder Name] for its name.
    This also happens if there is already a folder with the same name and you thus get multiple folders with the same name.

Maybe you are looking for