Get full document path

Hi,
I'm looking for sample code/information on how to to 'programatically' work out the full path of a document in the Portal content area. ie. /docs/FOLDER/CONTENT/FOLDER1/FOLDER2/FILENAME.HTML etc.
THanks in advance.
Luke Duc Lam

I wrot this function for geting the path between "/docs/FOLDER/CONTENT" and "FILENAME.HTML" if you have the content area_id you can select the name from wiew 'wwsbr_all_content_areas', but I'm not sure which column I had to select for the document name. I started with item master id and had problems to find my document after moving it between folders. May be you have an answer for this question.
-- recursiv function, that creates a folderpath between content area folder
-- and the folder passed through p_folder_id with the language
function create_folderpath(
p_ca_id in number
,p_folder_id in number
,p_language in wwv_things.language%type
) return varchar2
is
v_parentfolder_id wwv_things.id%type;
v_folder_name varchar2(4000);
begin
if p_folder_id = 1 then
return '';
else
select folder.parent_id, folder.name
into v_parentfolder_id, v_folder_name
from wwsbr_all_folders folder
where folder.id = p_folder_id
and folder.language = p_language;
return create_folderpath(p_ca_id, v_parentfolder_id, p_language)||'/'||v_folder_name;
end if;
end create_folderpath;
Regards Theresia
P.S. bevor compiling the code, look at the || signs, may be you get spaces between by copying code.

Similar Messages

  • Full Document Path on the MAC

    Has anyone tried to use the PIGetDocumentName on the macintosh. It gives back only the Document title. On windows we get the entire file path with PIGetDocumentName. Is there another way to get the full path of the front document on the mac.
    thanks and regards,
    Pawan

    Hi Pawan,
    I am also looking for a way to get a document path on MAC's PS.
    Have you found a way to do it yet?
    Thank you in advance,
    Anatoly

  • How to get full file path while uploading a file in flex Applications

    How to get full file path while uploading a file in flex applications.
    FileReference Object is giving file name and other details but not the actual path.
    Is there any workaround to to get the file path?.
    Thanks

    Why not ask in the Flex forum; it is more likely that someone over there knows.

  • How to get the document path of the pictures uploaded for products?

    Hi Gurus,
    How to get the document path of the pictures uploaded for products uploaded through tcode COMMPR01?
    Many Thanks,
    Neeraj

    client path.
    I need to get the client path in order to download files form server to client.
    Best regards,
    Huy.

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

  • File Input can't get full file path when user choose to upload it

    i saw the solution which many used it to return the file path,
    at this link:
    https://bugzilla.mozilla.org/show_bug.cgi?id=143220
    comment#40 and #50
    but they don't want to hold it to use it later, i want that, i can't hold the full file path in my hand and set it to a variable to use it later, i have to use only javascript DON'T Applets. and i use FireFox 3.6.3 or later version.
    Please, what can i do ?....can any one help me .... ?
    thank you an advance.....
    == This happened ==
    Every time Firefox opened
    == always ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.0 (KHTML, like Gecko) Chrome/6.0.408.1 Safari/534.0

    thank you for reply
    i saw this links and already sent to this group, and i'll more search again, But i found that any change in user.js the about:config don't see, may my system can't feel with user.js ?
    e.g : i changed user_pref("javascript.enabled", false);
    but it still see it true.
    what is the wrong in your opinion sir ?

  • How to get full package path?

    Hi all.
    My program consists of 2 files:
    1.) run.exe
    2.) classes.zip
    The second (.zip) file contains java classes. How can I gain a full path to any package in this .zip file? I tried
    MyClass.class.getPackage().getName() but it returned only somethig like myPackage.mySecondPackage. But I need full path, something like C:\My program\...
    Many thanks.
    Miso

    I tried
    > MyClass.class.getPackage().getName()
    but it returned only somethig like
    myPackage.mySecondPackage. But I need full
    path, something like C:\My program\...
    Think of it a bit: your jar (or zip) file is stored in, say 'c:\MyPrograms'
    as 'myjar.zip'. What should the path of your class file be then?
    'c:\MyPrograms\myjar.zip\myPackage.mySecondPackage.MyClass'
    wouldn't make any sense would it?
    Leaving out the name of the jar/zip file itself wouldn't make any sense
    either. IOW, the 'absolute path' of a class doesn't make any sense,
    as long as the JVM can find your classes everything is fine.
    kind regards,
    Jos

  • Full File path of the uploaded fie in struts

    How do we get full file path from the FileForm component in Struts upload.
    Acutal requirement is that ,
    in the file browser component, the user may select a file or he may paste and external link like http://www.xyz.com/abc/index.html etc..,
    How do we get the value that is in the input in the File Browser component as it is?
    Any help, is highly appreciated.
    Praveen

    I don't have a clue, but I would see that as a security threat if I was a user. I don't want to send local path names to a server.
    /Kaj

  • Document Path in Layout Set

    Hi all,
    I'm trying to get a documents path to display as a property in a layout set. Is there a command I can put in the Displayed Properties of the Collection Renderer to get the documents path to display?
    Thanks
    Richard

    Hi Richard,
    Try configuring the property "cm_rnd_path" in displayed properties for the collection renderer that is being used in your layout set.
    Cheers, Akhilesh

  • How can i get the document full path in S_TieDocument?

    I create a new S_TieDocument and override 2 methods:
    extendedPreInsert and extendedPostInsert
    how can i get the document full path in these 2 methods?
    (e.g. if i use the system user to upload a new file named 'test.file' in system root path /home/system, and i want to get the document full path '/home/system/test.file', how to get it?
    anybody know it, pls tell me, thanks a lot.
    java source is as below
    package oracle.ifs.server;
    import oracle.ifs.beans.Document;
    import oracle.ifs.beans.DocumentDefinition;
    import oracle.ifs.beans.LibraryObjectDefinition;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.beans.PublicObject;
    import oracle.ifs.common.AttributeValue;
    import oracle.ifs.common.IfsException;
    import oracle.ord.itech.cmsdk.ws.view.EmbeddedCMSDKWebServicesWSStub;
    public class S_TieDocument extends S_Document
    public S_TieDocument(S_LibrarySession session, S_LibraryObjectData data)
    throws IfsException
    super(session, data);
    public S_TieDocument(S_LibrarySession session, java.lang.Long classID)
    throws IfsException
    super(session, classID);
    // Overrides
    public void extendedPreInsert(OperationState opState,
    S_LibraryObjectDefinition def)
    throws IfsException
    // Always call super
    super.extendedPreInsert(opState, def);
    // Get the LibrarySession
    S_LibrarySession session = getSession();
    def.setUserSetAttribute("CUSTOMATTRIBUTE",
    AttributeValue.newAttributeValue(""));
    //how can i get the document file full path here?
    public void extendedPostInsert(OperationState opState,
    S_LibraryObjectDefinition def)
    throws IfsException
    // Get the LibrarySession
    S_LibrarySession session = getSession();
    //how can i get the document file full path here?
    }

    In the new version of Numbers this option is not available.  You will have to type the file name into the header yourself.  You can post feedback to Apple using the menu item "Numbers > Provide Numbers Feedback"
    or use Numbers2.3 which should be in the folder "/Applications/iWork '09" if you previously had it installed

  • How to get full path of indesign document as well as picture path.

    Hi all,
    I am working in InDesign CS4 plugins. and I have two quetions,
    1) How can we get the indesign document full path. I am able only to get the document name but i want the full path of it.
    2) How can we get the selected picture path also. I am able only to get its name.
    Please let me know if any one have idea of  it.
    Regards,
    Jitendra Kumar Singh

    //to get full path of document, works for both mac and pc
    IDocument *document = Utils<ILayoutUIUtils>()->GetFrontDocument();
    IDataBase* theDb = ::GetDataBase(document);
    const IDFile* sysFile = theDb->GetSysFile();
    InterfacePtr<ICoreFilename> cfn((ICoreFilename*)::CreateObject(kCoreFilenameBoss, IID_ICOREFILENAME));
    if(cfn != NULL){     if(cfn->Initialize(sysFile)
    == 0){
              PMString fulldocumentnameandpath = FileUtils::SysFileToPMString(*sysFile);
    Hope this helps,
    Liz Patten

  • File dialog box: how get full path and filename (firefox 3.0 problem)

    Hi,
    I have a smilar problem then discussed in this thread: file dialog box: how get  full path and filename
    Now this solution doesn't seem to work in firefox 3.0,I only get the filename but not the full path.
    I have tried to solve this problem by adding *"netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");"* in a javacript function but that doesn't do the trick
    Although when i tested it local it does work.
    Any idees how to solve this?
    Best Regards
    Stijn

    Actually, that is strange and scarry. With 20% of the browser market share they decide to behave like Microsoft did in the past - they want to decide what users need and what they do not need. With 3.0 I have a real problem with some of my applications. They are all tested in IE6, IE7, FF2.0 and they all work the same way (they even work with Opera and Safari). Now, I will for sure not go there and make it work for 3.0, just because 2 out of 200 users use FF3.0. Up to now I have always recomended FF as the best browser. 3.0 causes my opinion to change completely. Competition is always good but it is a question if it is good if we have 20 different browsers out there with equal market shares.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Word 2013 shows full UNC path instead of local "Documents" folder on file Open and Save

    Normally Word (and Excel) by default will show the user's local "Documents" folder when opening or saving a file. That is what we want. However, after using Windows Server Folder Redirection to redirect the Documents folder to the network (Windows
    Server 2012R2), Word now shows the full UNC path to the network share.
    Instead of seeing:
    "MyPC  Documents"
    users see
    \\sever1\redirect$\username\documents
    Folder redirection is supposed to be transparent to the user. Virtually all our other applications, including Office 2003, respect this convention and continue to show "Documents". As you can see, Word even exposes a hidden share.
    Even if we go to File / Options / Save and browse to the local Documents folder as the place Word should open and save files from, Word immediately removes the path you have browsed to, and replaces it with the UNC path.
    Is there a way to suppress this behavior? Thanx!
    Dana

    Hi,
    Based on my understanding, you only want others to see some part of path name, rather than full UNC path name. It is right?
    It seems that we can’t implement your requirement. When we open a file from “My Pictures”, it shows “My picture” instead of showing the full path “C:\Users\User\Pictures”. “My Picture” is set as a library in Windows, so it hides
    full path by design. We can't set \\sever1\redirect$\username\documents as a library.
    As a workaround, you can upload these files to OneDrive and share link to others.
    If I have anything misunderstood, don't hesitate to tell me.
    Regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Get full path in an inputFile

    Hi! I´ve inserted an inputFile component in a JSF Page. In the backing bean, I need to get the full path of the selected file in that inputFile, but I´m only able to get the fileName casting the inputFile to an UploadedFile. How can I get the full path?
    Thank you so much

    Hi Frank,
    when I tried to upload an image file into OrdImageDomain with
    myImage.setContentSource(new OrdFileSource(myuploadfile.getFileName())) via UploadedFile
    I was given error of "file not found" kind of error, but if I hardcode the statement with
    myImage.setContentSource(new OrdFileSource("c:/temp/myFileToUpload.jpg")), the upload suceeded.
    I found that myuploadfile.getFileName() returns only the file name part, not the full path name. I suspect that is the source of error.
    Same question: can I get the full file path name out of an UploadedFile? if not, how to get around it?
    or am I doing something wrong? my Jdev is 10.1.3.0.4
    Regards,

  • How do I get Full Url to a Document?

    I am querying Document Folders using the IDocument Interface. The query returns the Url, but only a partial Url. I need to Full Url path in order to send to a user to access it. The URL being returned is only the last part (e.g. "_477_0_0_18/DeveloperGuide_PlumtreeNETWebControls_v2-1.pdf"). I need the first part (e.g. the http://.....)
    Sample Code:
    Protected Sub RetrieveDocumentDetails(ByVal intFolderID As Integer)
    Dim customDataSet As New DataSet Dim newTable As New DataTable("TestTable") Dim newRow As DataRow
    'Initialize Custom DataSet newTable.Columns.Add("CardName", GetType(String)) newTable.Columns.Add("DateCreated", GetType(String)) newTable.Columns.Add("DateModified", GetType(String)) newTable.Columns.Add("DocOwner", GetType(String)) newTable.Columns.Add("DocumentUrl", GetType(String)) 'newTable.Columns.Add("DocDescription", GetType(String))
    'Instantiate Plumtree Remote Session Dim IPTRemoteSession As IRemoteSession IPTRemoteSession = RemoteSessionFactory.GetExplicitLoginContext(New System.Uri("http://cgi-clay01.clayton.com:8111/ptapi/QueryInterfaceAPI.asmx"), "Administrator", "")
    'Query the Plumtree Document Manager passing in the Folder ID Dim PTDocumentManager As IDocumentManager = IPTRemoteSession.GetDocumentManager() Dim PTDocumentQuery As IDocumentQuery = PTDocumentManager.CreateQuery(intFolderID) Dim PTQueryResults As IObjectQuery = PTDocumentQuery.Execute() Dim i As Integer
    'Loop throught the Document Query Results and load into the Custom Dataset For i = 0 To PTQueryResults.GetRowCount - 1 Dim PTDocument As IObjectQueryRow = PTQueryResults.GetRow(i)
    newRow = newTable.NewRow() newRow("CardName") = PTDocument.GetName() newRow("DateCreated") = PTDocument.GetCreated() newRow("DateModified") = PTDocument.GetLastModified() newRow("DocOwner") = PTDocument.GetOwner() newRow("DocumentUrl") = PTDocument.GetStringValue(DocumentProperty.URL) '(I NEED THE FULL URL HERE) 'newRow("DocDescription") = PTDocument.GetDescription()
    newTable.Rows.Add(newRow) Next customDataSet.Tables.Add(newTable) customDataSet.AcceptChanges()
    'Bind Custom Dataset to Datagrid DataGrid1.DataSource = customDataSet DataGrid1.DataBind()
    End Sub
    Paul

    You can insert layout breaks to change the number of columns throughout your document. This screenshot is from a newsletter I did in Pages 1/iWork '05, but this function is unchanged.
    You should change your profile information that appears at the bottom of your posts. Mac OS 9 hasn't been a current OS for over 10 years & there is no way to run Pages on it. If you're not sure what version of Mac OS you're using, click the  in the upper left of your menu bar & choose About This Mac.

Maybe you are looking for

  • Disgusted with HP Elite m9280a constant/random freezes, lock ups, BSOD, black screen

    constant/random freezes, lock ups, BSOD, black screen. I have been trying to trouble shoot this PC for almost a day now. weird problems like when 3 sticks of memory is present it wil not boot but it will boot on 1 and on 2 sticks will have hangs? dis

  • SCD type 2 in OBIEE

    Hi, I'm relatively new to OBIEE and trying to implement slowly changing dimension type 2.-- i.e. to look up the correct record in the customer dimension (A_FICC_ACCOUNT) based on the transaction date in the fact table (A_FICC_PROFITABILITY). The cust

  • How do i get to sync after the iOS 6 update?

    i connected my phone to my computer to sync some songs, and then my iPhone 4S updated to iOS 6 without my noticing. after it finished, all of my apps and music and videos got wiped, so i did a restoration. for some reason i am now stuck in a loop of

  • BT Customer services are useless no help what so e...

    Hi i was BT customer Account number *A/C no. removed. till today and now found out my account is closed?? i join BT in JULY 2013 as BT phone and broadband customer and then in august 2013 i found out that my phone line is shifted to some other compan

  • "Row modification counter" in T-code db02

    Hi experts, In Transaction code DB02, when you enter the name of a table in Detailed analysis, you can see some indicators like Reserved (KB), Data size (KB), Total rows, Row modification counter... Do you know what does the indicator "Row modificati