Finding a folders parent folder

How can you find out what a folders parent folder is ?
The view WWSBR_ALL_FOLDERS has the folder information (id, name etc.) but doesn't have anything to indicate what the parent folder is.
This view runs off the table WWV_USER_CORNERS which contains a parentid column.
Is it best to create a custom view to query on or has anyone used a different view with the information in ?
Thanks in advance
Simon.

Did not realize that wwsbr_all_folders view does not expose the parent_id!!
I have updated the view script, see below, to expose a parent_folder_id column.
CREATE OR REPLACE VIEW WWSBR_ALL_FOLDERS AS
SELECT c.id,
c.siteid caid,
c.language language,
c.parenid parent_folder_id
c.name name,
c.title display_name,
c.topicid category_id,
c.topic_siteid category_siteid,
c.description ,
c.type type_id,
c.type_siteid type_siteid,
c.base_type base_type_id,
c.is_portlet is_portlet,
c.is_caching_on is_caching_on,
c.seq sub_folder_sequence,
c.displayinparent display_in_parent_folder,
c.itemversioning,
c.settingssetid style_id,
c.settingssetsiteid style_caid,
u.url url_value,
decode(c.base_type,3,c.value,null) search_value,
decode(c.base_type,4,c.value,null) plsql_value,
c.image title_image_name,
c.rolloverimage rollover_image_name,
c.titleimage banner_image_name ,
c.navigationcornerid navigation_bar_id,
c.navbarsiteid navigation_bar_caid,
c.ispublic is_public,
c.haveitemsecurity item_level_security,
c.type_display_full display_full_screen,
c.plsql_executor plsql_folder_executor,
c.createdate,
c.creator,
c.updatedate,
c.updator
FROM WWV_USER_CORNERS C,
WWSBR_URL$ U
WHERE c.value = u.url(+) and
c.siteid = u.object_siteid(+)
null

Similar Messages

  • Is there a way to drag, copy, export parent folder shown in light room with multiple child folders to smug mug?

    I have a parent folder called FHS Dance Competition, that contains several folders (one per team).   I have this structure in my computer hard drive which I uploaded with one click to light room.    In the past I've had to manually create each folder, copy the name, drag in the photos, etc.  Very time consuming.    Is there a way to drag or copy, or export the parent folder shown in light room to the lower portion of the screen where the smug mug piece is?

    Ron,
    I too need to make "Real Copies" of images and hate doing anything directly from the OS because of the chance that my LR catalog gets out of Sync with the actual images on the computer.  So I make the copies inside LR with an export routine and then move the copies inside of LR with the normal drag and drop.  Once the export preset is created it can be executed from the Library Grid by right-clicking on the image (or selected images) to make the copies.  My settings are as follows in case you are interested:
    This is the first time I have posted an image before and I am not sure if you will be able to read it or not.  The contents from the export preset in the image above are as follows if that helps:
    s = {
    id = "3AF0E3D2-BC6A-4D53-A7BE-B7A6C4D673AC",
    internalName = "Make Real File Copy",
    title = "Real File Copy",
    type = "Export",
    value = {
    collisionHandling = "overwrite",
    exportFilters = {
    exportServiceProvider = "com.adobe.ag.export.file",
    exportServiceProviderTitle = "Hard Drive",
    export_colorSpace = "sRGB",
    export_destinationPathSuffix = "",
    export_destinationType = "sourceFolder",
    export_useSubfolder = false,
    extensionCase = "lowercase",
    format = "ORIGINAL",
    includeVideoFiles = false,
    initialSequenceNumber = 1,
    jpeg_limitSize = 100,
    jpeg_useLimitSize = false,
    metadata_keywordOptions = "lightroomHierarchical",
    minimizeEmbeddedMetadata = false,
    outputSharpeningLevel = 2,
    outputSharpeningMedia = "matte",
    outputSharpeningOn = false,
    reimportExportedPhoto = true,
    reimport_stackWithOriginal = true,
    reimport_stackWithOriginal_position = "below",
    renamingTokensOn = true,
    size_doConstrain = false,
    size_resolution = 300,
    size_resolutionUnits = "inch",
    tokenCustomString = "RC",
    tokens = "{{image_name}}_{{custom_token}}",
    tokensArchivedToString2 = "{{image_name}}_{{custom_token}}",
    useWatermark = false,
    watermarking_id = "<simpleCopyrightWatermark>",
    version = 0,
    Let me know if you have any questions.
    Jeff

  • Opening Nested folders changes the modification date of the parent folder

    This has been bugging me for some time and is very odd...
    If I open a folder that is nested inside another folder it changes the modification date of the parent folder to today's date and time, even though I have not made any changes to the folders contents, or even viewed any of the contents.
    I have posted this question on other forums and no one has been able to reproduce this on their systems.
    I have multiple macs, using a combination of 10.4 and 10.5, connected via an AEBS and this only seems to occur when I am connected to my network.
    All machines have been setup using a migration from a previous machine going way back to my original OSX installation and various iterations of Powerbooks, iBooks, iMacs, Minis, MacBooks etc...
    Can anyone throw any light as to what is causing this?
    Many thanks,

    Hi Ben,
    I have multiple macs, using a combination of 10.4 and 10.5, connected via an AEBS and this only seems to occur when I am connected to my network.
    I'm not sure about this, but I think that when it happens that network time and date is automatically being set.
    Dimaxum

  • Lightroom does not automatically find images that have been moved within same parent folder/drive

    Lightroom does not automatically find images that have been moved within same parent folder/drive...I moved my catalog and photos to shared drive so that all users can access and when I moved photos within parent folder lightroom did not automatically adjust like in video I watched.  I had to manually locate.  Is there a fix for this?

    Lightroom does not automatically find images that have been moved within same parent folder/drive...I moved my catalog and photos to shared drive so that all users can access and when I moved photos within parent folder lightroom did not automatically adjust like in video I watched.  I had to manually locate.  Is there a fix for this?
    I haven't watched that video, but if you move photos in your operating system ... Lightroom does NOT automatically find these photos. Finding photos that have been moved is NOT a feature of Lightroom. So, there is no fix for this.
    You would have to tell Lightroom where the photos are now located, as explained in the link from 99jon
    If you must move photos, move them inside of Lightroom, not in your operating system, or better yet — don't move them, and use Lightroom tools such as keywords and other metadata to achieve organization.

  • Aperture 3.1.2 When exporting files to Finder is creating a folder for each file, that means export 200 files is creating 200 folders for each files. Does anyone knows how to fix this. Thanks

    Aperture 3.1.2 When exporting files to Finder is creating a folder for each file, that means export 200 files is creating 200 folders for each files. Does anyone knows how to fix this. Thanks

    No. This is NOT true. I've been battling with this for a couple hours.
    I choose Export>Versions
    choose
    Subfolder Format: Project Name
    no custom subfolder
    Name Format: Current Version Name.
    Aperture creates project folders for each image and names them Projects1, Projects2, Projects3 etc.
    To be sure, I have no project named Projects
    x
    This particular Aperture library has 16 projects. you can see in the screen grab it's created more than 30 folders
    If I uncheck the Subfolder, that is say NONE, I just get images and images and images, not in their project folders (of course, because I've said NONE, so why would it put them in project folders?)
    I just want to export the entire library and have the versions placed in folders named by the projects from which they came.... ez enough, no?

  • How do I hide the parent folder of the user home folders in File Sharing?

    In 10.6 Server I would set the parent folder so that "Everyone" could not list folder contents, then set "Everyone else" read only.  This prevented the parent folder from showing up in the list of available Share Points and allowing users to see the list of home directories.
    In 10.8, this trick no longer seems to work.  No matter what I set the ACLs to, the folder always shows up as a share point in the connection window.  2014 is the folder I've set for the Home directories of our network users (and there will be 2 more for graduating years.)  I can set the ACL so if they attempt to mount it, it just spits out an error saying they can't view the contents, but that isn't reasonable.  I don't want it to show up at all.  The only thing the students should see is their home folder.  Nothing else.
    What can I do to make it so 2014 doesn't show up in the connection window?  2014 is the parent folder for the home directories, so it can't be unshared.

    This prevented the parent folder from showing up in the list of available Share Points and allowing users to see the list of home directories.
    That second sentence should read:
    This prevented the child folder (parent folder to the home directories) from showing up in the list of available Share Points and allowing users to see the list of home directories.

  • Automator and applescript to copy new files in a folder with same name as parent folder

    I have an iMac with a pictures folder (Finder folder) containing several subfolders with pictures. As per now, all these subfolders are imported into an iPhoto library (and the structure of the Finder pictures folder is thus maintained: The iPhoto events are named the same as the Finder subfolder). I.e. I have not created any albums in iPhoto.
    I have also set up a workflow, where new iPhone photos are automatically being synced to specified Finder folders within the iMac pictures folder. So what I want to do is to make a workflow to import potential new photos from week to week into the existing iPhoto structure. I know iPhoto has this Autoimport folder, so this one is unpacked and "mapped". So, this is what I´m hoping to do:
    Automator (iCal - want to do this on a weekly basis):
    - Get specified Finder items -- set to target folder = iMac pictures folder
    - Get folder content (with subfolders)
    - Filter Finder items
         - Items from the last 7 days (which then would be any new files created last week)
    - Applescript/shell script loop(?)
         - Get folder name for each file´s (from previous step) parent folder
         - Create new folder with same name as the file´s parent folder (if not already existing) under the iPhoto Autoimport folder
         - Copy the given file into the folder from above
    - Run iPhoto application (Automator task), which then should just auto import the new photos according to the Finder folder structure
    Whith the workflow above, I aim to maintain the existing iPhoto structure, and just import new photos into the existing structure. Creating folder names under the Autoimport, similar as the existing Finder folder names / iPhoto events should make it possible to have the new files imported under the existing event, right?

    Anyone?
    I have now switched to Aperture (from iPhoto) due to Aperture´s capability to handle Finder folder structure, and due to the possibility of having the pictures within Aperture as referenced files to the pictures within the Finder folders (i.e. possibility to delete pictures from both library and Finder folder at the same time).
    So I have a superior Finder folder called "Album". Within "Album" I have several subfolders (sub albums) containing pictures. The "Album" folder with subfolders are imported into Aperture as "Projects and albums", and the pictures are uploaded within the Aperture structure as referenced files. So for now the Aperture structure is more or less a direct mirror of the Finder folder structure, whereas "Album" is the project.
    And this is my current workflow in Automator, but I´m searching help with my Applescript:
    - Get specified Finder items (target folder = the superior Finder folder "Album")
    - Get Folder content
    - Filter Finder items (to look for potential new files to import into Aperture)
         - Kind is not folder
         - Date created last X days
    The output files from this task enters an Applescript
    on run {input, parameters}
           repeat with f in input (**Loop**)
                   tell application "Finder"
                          set fileName to name of (f)
                          set parentFolder to name of container of (f)
                          tell application "Aperture"
                                 tell library 1
                                        tell project "Album"
                                               if (exists album parentFolder) then
                                                 ** I then would like to check if fileName already exist within the existing album**
                                                 ** If not existing, I would like to import file f into the existing album as a referenced file**              
                                               else if not (exists album parentFolder) then
                                                       make new album with properties {name:parentFolder}
                                                ** I then would like to import file f into the new album as a referenced file**
                                               end if
                                        end tell
                                 end tell
                          end tell
                   end tell
           end repeat
    end run

  • How can I exit a collection window and return to parent folder?

    I would "love" to have a place where I could ask the simple questions like this that come up and seem so simple to those who know, they don't mention the details I need like how to close a working collection window and move back to the parent folder of that collection.
    I've been stuck for two days (it happened before) in a window (library module) with a collection of 8 photos.  I cannot find any way to close that window or go back to the library collection of hundreds of photos from which it was chosen.  It's very frustrating to be stuck in this window, perhaps forever?
    How do I close these windows.  Isn't there a "back" button?
    I started in Photoshop 3, then 5, then 7, then stopped renewing due to difficulty learning PS until the Adobe CC became available with the many tutorials.  It was great learning how to make a collection, but the tutorials didn't mention how to get back to the main folder where the collection was chosen.  So again, I"m stuck at an even lower level of functioning than with photoshop alone.
    I had to copy a photo and open it separatly in Photoshop just to be able to work on it.  Yesterday I could "edit in Photoshop cc" with right click.  Today, it won't even do that.
    I suspect now two things are working to prevent me from working properly on my photos but have no clue how to fix this.

    In the library module, left-hand panel, there are different sections or tabs. Collections is one of those tabs near the bottom out that panel. If you scroll up in that panel you should see other sections, one of which is "Folders". If that isn't showing, then right-click on the Collections section heading and make sure there are checkmarks in the sections that you want to have displayed. To return to the folder you need to go to the folders section and find the folder in your list.
    Another way to return to a folder is to click in the area in this illustration:
    Doing so will present a list of folders that you have recently been inside of. You can click on one of those folders and return directly to it.

  • Getting path of parent folder of a file during a workflow execution

    How can I get the parent folder/directory of a file during the execution of a workflow? I cant't find any actions i Automator that will give me this.
    I want to make a general applicable automated workflow. The path can not be hardcoded in the workflow as different files and folders will be worked on each time the workflow is run.
    The input to the workflow is a file or list of files. I want to be able to retrieve the path of the parent folder of these files at runtime.
    Will I have to do this through AppleScript? If so, then how?
    (in case you have seen my first post on this; it seems I wasn't specific enough so people didn't understand what I want to do. Therefore this second post. Sorry for the iconvenience)

    Hi anilsen!
    If all selected files are within the same folder, it would be like this:
    For example:
    • Get Specified/Selected Finder Objects
    • Run AppleScript
    on run {input, parameters}
    tell application "Finder"
    set output to (container of item 1 of input) as alias
    end tell
    return output
    end run
    Spazek

  • Getting a parent folder WITHOUT IfsFileSystem

    Hi,
    We discovered that using the IfsFileSystem class drastically increases access times to iFS public objects. As a result we are considering phasing out use of this class in favour of other API calls, which appear to be faster.
    Unfortunately we cannot find an easy way to get the parent folder of a document or folder. Please help, we definitely cannot use IfsFileSystem and need another way around.
    It would be interesting to hear if anybody else has discovered problems with the IfsFileSystem class. Even just creating one instance seems to increase access times?!?
    Thanks in advance,
    Max

    One way to do this is to use either of the following two methods on PublicObject:
    public java.lang.String[] getAllFolderPaths()
    public java.lang.String getAnyFolderPath()
    The first will return every path to the PublicObject in question. (Remember that a PublicObject can have multiple parent folders, or none.) The second will return one of them.
    Given a folder path, you can find a PublicObject. Here's some pseudocode (if you decide to use this, make sure to check for IfsExceptions and null values):
    // get your folder and its path
    LibrarySession sess = openLibrarySession();
    Folder myFolder = getMyFolder();
    String path = myFolder.getAnyFolderPath();
    // get its parent folder
    FolderPathResolver fpr =
    new FolderPathResolver(sess);
    PublicObject parent = fpr.findPublicObject(
    path +
    sess.getFolderPathDelimiter() +
    FolderPathResolver.UP_DIRECTORY_TOKEN );
    Another way to do this would be to search for all FolderPathRelationship objects whose RIGHTOBJECT attribute is your folder, and then get the LEFTOBJECT attribute from one of the FolderPathRelationship objects you find. The LEFTOBJECT would be the folder's parent.
    Read the javadoc for more details.

  • BO SDK Query to find all folders that a user has access to

    Hi Experts
    Please help me on BO SDK Query to "find all folders that a user has access in a single query".
    I am tried trial & error using PARENTS & CHILDREN. nothing worked
    Please advice
    Thanks!
    Prasath

    Hi Aasavari
    I am checking BO Web services samples and .NET samples. Please advice me the correct files to check the user/folder rights.
    Thank you so much
    Prasath
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETWebServicesSDKSamples

  • Share nested folder but not parent folder?

    Is it possible to share a nested folder in Lion 10.7.3 but not it's parent folder for one user, but then share the parent folder and all child folders to other users?

    Thanks John,
    I already have that clicked, but the problem is that there are some images that are floating around the parent, not in a sub. If one goes into exployer (but not thru LR) one can easily see which ones are not in the subs, as they show up beside the sub's. But that only works with the jpegs and not the DNGs, as they do not have a thumbnail. One could also add up the numbers of the subs (in LR) and subtract from the parent to find out how many are not in subs, but it still does not identify them.

  • How do I create a new parent folder in my LR3.6 catalog?

    I am trying to follow the LR Queen's advice for simplifying my existing catalog, in order to move it to a new computer and to then upgrade to LR4. When I right  click on a top folder, and click "Add parent folder", I do not get a new visible parent folder, and my existing folder disappears from view. Help!

    The <Add parent Folder> feature is not for creating parent folders but for making parent folders visible, in case they are not visible.
    To crate a parent folder just create a new folder by clicking on the + sign in the header of the Folders Panel, just at the right edge of the black bar with the word "Folders".
    Then drag-and-drop the other folder(s) on top of this newly created folder.

  • How do I make this Applescript dig trough All subfolders of the Parent folder?

    Im using a script to batch convert a bunch of m4v´s to a set framesize, and im using this script with automator as a Finder Service. However, if theres a folder inside my parentfolder (Omkodning) with its own folder, it doesn't look inside that folder. Since my heriarchi is deeper then just one folder, this script isn't working all the way. How do I change it to search the entire content of my parent folder (Omkodning), subfolders and the missing part, sub-subfolders ?
    --on adding folder items to this_folder after receiving these_items with timeout of (720 * 60) seconds tell application "Finder" --Get all m4v files that have no label color yet, meaning it hasn’t been processed set allFiles to every file of entire contents of ("FIRSTHD:Users:jerry:Desktop:Omkodning" as alias) whose ((name extension is "m4v") and label index is 0) --Repeat for all files in above folder repeat with i from 1 to number of items in allFiles set currentFile to (item i of allFiles) try --Set to gray label to indicate processing set label index of currentFile to 7 --Assemble original
    and new file paths set origFilepath to quoted form of POSIX path of (currentFile as alias) set newFilepath to (characters 1 thru -5 of origFilepath as string) & "mp4'" --Start the conversion set shellCommand to "nice /Applications/HandBrakeCLI -i " & origFilepath & " -o " & newFilepath & " -e ffmpeg4 -b 1200 -a 1 -E faac -B 160 -R 29.97 -f mp4 –crop 0:0:0:0 crf 24 -w 640 -l 480 ;" do shell script shellCommand --Set the label to green in case file deletion fails set label index of currentFile to 6 --Remove the old file set shellCommand to "rm -f " & origFilepath do shell script shellCommand on error errmsg --Set the label to red to indicate failure set label index of currentFile to 2 end try end repeat end tell end timeout --end adding folder items to
    Message was edited by: Jayboys

    Telling the Finder to get the entire contents of a folder will also get the contents of subfolders (unless they are aliases).
    Note that the attached folder and the items that were added are passed to the adding folder items to handler in the this_folder and these_items parameters.

  • How can I view only the photos in the root of a parent folder?

    I can view the parent folder for my photos, but when I select it, I see all the photos in all the subfolders.  How can I filter the view to show only the files in the top-level folder?
    Thanks
    Fred

    On the top menu bar click Library
    Uncheck the box “Show Photos in Sub-Folders”
    You can re-activate at any time.

Maybe you are looking for

  • Adding pages in pages!!!

    Hi everyone I have a Pages document- it's actually designed to be a report, with over 40 pages. My problem is that I have some pages with charts, graphics, and so on where I've set the various objects to "floating" so that I can place them easily on

  • Can't create dir for powernowd.

    I'm trying to install powenowd so I don't burn myself on the touchpad but when I'm launching powernowd it tells me: 165715/home/riwa/# powernowd powernowd: PowerNow Daemon v0.97, (c) 2003-2006 John Clemens powernowd: Found 1 scalable unit: -- 1 'CPU'

  • GB01 FM  JV_GB01_DIRECT_INPUT...Document Created but giving error message

    Hi All,       I am trying to POST S/L Documnet using the FM  JV_GB01_DIRECT_INPUT.       Function module returns the Document Number.But when When I try to view this using Tcode GD23..Its giving an error 'Noline items were selected'. I am not sure ex

  • SMD Agent for ABAP Only Systems

    Everything I have read states that the SMD Agent is only for JAVA Stack.  Then I read a post here stating to install the SMD on the ABAP systems.  Can anyone clear this up?  I have a mix of Java only, Abap only and dual stack systems.  Can anyone hel

  • Lightroom 3 upgrade to LR4 not registered in Community Help

    I recently upgraded my copy of Adobe Lightroom from v3.6 to v4.2.  After verifying the new install was working properly and converting the catalog I uninstalled v3.6.  When I go to help in the Lightroom menu the Community Help application starts in i