Constructing a url from the wwsbr_all_items view

Well the subject says it all! Using the view of items in the portal, how do I construct a url?
If the items are stored as links, the url is in the url field. If items are documents contained within the repository, the url field is blank. At least I think this is correct from what I can tell. So in need to discern their url.
Any assistance is appreciated!

Here's a function I use to do this. From wwsbr_all_items simply pass the function the colums ID and CAID. It will return the url to the document. If you create the function and then try and run it from SQLPlus or something, don't forget to set your SSO context or it will not work.
exec wwctx_api.set_context('portal',[portal web password],NULL);
FUNCTION DOC_PATH_URL(
          P_ITEM_ID IN NUMBER,
          P_CAID IN NUMBER)
     RETURN VARCHAR2
IS
l_return           varchar2(10000);
l_item_name      varchar2(100);
l_folder_id      number;
l_folder_name      varchar2(100);
BEGIN
select wwutl_htf.url_encode(name), folder_id into l_return, l_folder_id from portal.wwsbr_all_items where id = P_ITEM_ID and caid = P_CAID and active = 1 and
is_current_version = 1 and itemtype = 'basefile';
     BEGIN
          WHILE 1=1 LOOP
               select parent_id , name into l_folder_id , l_folder_name from portal.wwsbr_all_folders where id = l_folder_id and caid = P_CAID;
               l_return := l_folder_name || '/' || l_return;
          END LOOP;
          EXCEPTION
               WHEN NO_DATA_FOUND THEN
               NULL; -- EXIT LOOP AT NO ROWS FOUND, THIS IS EXPECTED.
     END;
RETURN('/portal/page/portal/' || l_return);
EXCEPTION
WHEN OTHERS THEN
HTP.P(SQLERRM);
RETURN 'ERROR';
END DOC_PATH_URL;
Edited by: ScottM on Jun 21, 2010 9:22 AM

Similar Messages

  • Can i copy an podcast URL from the podcast view in iTunes?

    Hi, is there any way to copy an podcast URL from the Podcast view in Itunes?
    I have about 20 podcasts right now and when i try to hookup someone else with these, its a long way guiding them tru the podcast directory or finding the website where the podcast URL is posted....
    i just want to copy the podcast URL!
    You can view the podcast url by requesting the podcast description, but i can't be copied!!
    Apple: Please make it selectable and/or make it easy to share podcasts...
    Best Regards,
    Rick Beemsterboer
    Dell Latitude c640   Windows XP Pro  

    i would be nice if it could be done in less steps..
    and also with podcasts that arent listed in the directory
    i've disabled the store link anyways..

  • I'm trying to have the end times shows up when I print my calendar from the month view. As of now, when I print in the monthly view, it only gives me the start time of a meeting.

    I would like to have the ending times shown on my monthly calendar.  As of now, it only shows the start time.  The end times show up on the weekly calendar, but I don't want to print from the weekly view.

    Hi,
    I see two issues,
    1. the url is not correct for the image, www.mountjay.com/Home/MountJayDesign.jpg
    2. meta property should go in to head section, at the moment, it is under body (if you insert the code as html). go to page properties-> Metadata-> head. Paste this here, and check the site again,
    Please let me know if you have any other query.

  • Opening an external URL from the Web UI

    Hello,
    I want to use the Web UI in order to open an external URL.
    I know it can be done easily using JavaScript, but the URL is generated from one of the page controller methods, and I want to open it directly from there.
    I know that there's the Window Manager in the Component Controller, that can open popup windows, but none of it's methods receive an external URL.
    So how can I open an external URL from the Web UI methods?
    Thanks,
    Udi.

    Hi,
    you can use the Trnsaction launcher with OP.
    in the window you create an OP_X
    with the code
      data: lv_navigation type ref to     if_crm_ui_navigation_service.
      lv_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
      lv_navigation->navigate( iv_link_id = 'ZTO_X' ). "runtime you create the TO_X nevigation"
    in your implamentation class of the view you add a preotected method OP_TO_X with the code
       data:
        lr_window type ref to cl_bsp_wd_window.
      lr_window = me->view_manager->get_window_controller( ).
      lr_window->call_outbound_plug( iv_outbound_plug = 'TO_X'
                                     iv_data_collection = iv_data_collection ).
    and you call to that method from the EVENT_HANDLER you want.
    Amit.

  • Can not copy a URL from the address bar/line

    Why is it proving so difficult for me to copy a URL from the address bar using Safari?  When I click on the link I want to copy, it does not highlight.  I have used Command L and Command C, and that works but there has to be a simpler way.  I also read that if I click the address bar once, then press the control key and click on it again that a menu would appear with cut, paste, copy.  That does happen, but all options are greyed out, and not selectable.  Another google search resulted in someone saying there was a button or arrow to click on and that this tool would copy the URL.
    The URL I am copying is very long, longer that the address bar window
    What Gives Here?

    Click the icon (favicon) to the left of the URL.
    That will select the entire URL.
    Command C will copy the URL.

  • Querying data from the maintenance view.

    Hi Experts,
    Well, i need the STEXT field value from the maintanance view V_T591A created for the standard table T591A.
    Table T591A has the field Subtype but doesn't have the field Stext, which consists the description of the subtype. The Stext field is there in the maintenance view V_T591A.
    So, if i want to query the respective description of the specific subtype, how do i get the values from the maintenance view?
    Please advice.
    Thanks in anticipation to all!
    Cheers,
    Sundar.

    Atish,
    It is not possible that way! U cannot Query directly from MV as a DB table.
    Anyways, i managed to find the answer.
    Thanks though.
    Regards,
    Sundar.

  • Polling from the database view in BPEL 11g

    Hi,
    We do have a requirement of polling from the database view in BPEL 11g. I am exploring the following polling strategies in our case:
    - Delete
    - Logical Delete
    In case of Delete polling strategy, can we delete the record as the view does not allow deletion. In this case, do we have any other way to achieve this functionality?
    In case of Logical Delete, We have to mark the status column with particular value. how could we achieve the same when the view is not updateable.
    In 10g, we can override the delete polling strategy with an update statement. Is it possible in 11g?
    Thanks & Regards
    Siva

    Hi,
    I am also doing the same thing what you have done, please help me.
    I have used BPEL export utility for exporting my JPDs to BPEL. but it was not a good help, ultimately i m creating a process manually.
    the main problem what is the replacement of control(jcx files)
    please guide me really it would be great help..
    Thanks in advance and hope to hear from you.
    my mail id is [email protected]
    please send some document if you have...

  • Problem creating a PDF from the "print view" of a web page

    When creating a PDF from the "print view" of a web page, the features in the print dialog box overlap. When the PDF is created, the words are garbled. e.g. words apppear as jzhhhxxf or zxihcj.

    Use a job settings that embeds the fonts. If you look at the PDF, the font properties probably do not look correct and don't include embedded fonts. Also, set the printer to Adobe PDF before you try to do a print, so that the web page can try to properly adjust to the printer.
    Why not just try opening the web site directly in Acrobat?

  • Using firefox 37.0.1 windows 7. open a tab (right click) it's blank. copy and paste and go the url from the tab into a new private window and it works.

    Opening a tab (right click on a url) and I get an empty/blank window.
    If I copy the url from the emty/blank tab and then open a new private browsing window and do a paste and go, everything works.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • OK to remove used clips from the Clips Viewer?

    At the bottom of the iMovie 9 screen, there's an area that I think is called the Clips Viewer--the area that shows the imported clips that you can add to your project. After I have done so and I am sure that I don't want to add them anymore to my project, is it okay to remove the clips from the Clips Viewer? I have a lot of clips that I want to use in my project that all have very similar thumbnails and having them all in the Clips Viewer at once will create hopeless confusion.

    Don't delete any clips from the event viewer that are used in your project until you have completed the project and shared it. Then if you are sure you do not ever want to re-edit that project or share it again or use those clips in another project then you can delete them. If you delete them while your project is active the clips will go off line and your project is unusable.

  • Hi i been try to minimise few app like safari,Ical etc etc from the fullscreen view but didn't manage to find any solution!! With the command   M shortcuts didn't work...any help???

    Hi i been try to minimise few app like safari,Ical etc etc from the fullscreen view but didn't manage to find any solution!! With the command   M shortcuts didn't work...any help???

    To make a screen full screen, you click on the arrows in the upper right corner.  To minimize, move your cursor all the way to the upper right corner of your desktop--give it a second--a symbol will appear that lets you "reverse" the action and minimize the window.  Hope I'm explaining this correctly. 

  • Yahoo/att email from my ipad2 are deleted from the server view.

    When reading my yahoo/att email from my ipad2 they are deleted from the server view. Is there any way to keep this from occuring? I have my home pc set to not delete upon reading to allow manual retention as needed.

    If you recently added back your email account it was most likely set up as an IMAP account - renowned for the seamless sync across your device - yes I am being a little sarcastic there - at the technology not at you
    The oft recommended way to "force" the email to be POP is to add your email address in there incorrectly - misspelling works fine - and then it asks whether you want a POP or IMAP account
    Try that - delete the account - you will not lose your emails in there
    Then re add and follow the steps I recommended and see if that solves your issue

  • Pass the product ID through the URL from the checkout page to the "receipt - buy" landing page. is it possible?

    Pass the product ID through the URL from the checkout page to the "receipt - buy" landing page. is it possible?

    You can just the module_shoppingcartsummary module and with liquid you can render the items in the cart out.
    Developer reference

  • NX-OS - How include or exclude an OID from the SNMP view entry???

    Hi, I'm working with Nexus 7010 - System version: 5.1(3).
    For example, in the 7200 we can include or exclude an OID from the SNMP view entry using the command #snmp-server view.
    How can we include or exclude an OID from the SNMP view entry in the Nexus 7010???
    Thanks.

    Greetings Marcelo,
    SNMP views are not currently supported on NX-OS. You can use Role-based Access Control to restrict what SNMP users can manage which is somewhat limited in scope - mainly permit/deny read/write access to specific features.
    Cheers,
    /Phil

  • Is it possbile to get URL from the browser address bar?

    Hi
    I'm in the process of creating a JITIR agent in java that takes in the url of the website that the user presently viewing.
    I don't want the user to have to copy or type in to my app the websites URL. Is it possbile to get this from the process e.g. The browser address bar, or the HTTP:// request sent by the browser.
    Any thoughts gratefully recieved.
    Phil

    I'm in the process of creating a JITIR agent in javawhat's this?
    robert

Maybe you are looking for

  • Package Z_SOLMAN_CUSTOMIZING does not exist

    Hi I am getting Sold to party error when creating change request. I want made Default as 1 . I have made settings to Ibase entries. But when I am editing Rule by going to PFAC it saying that Package Z_SOLMAN_CUSTOMIZING does not exist. Can any one ha

  • Update Bios ???

    Hello, I have an All in One HP TouchSmart 600 PC. I need to boot from USB, but when I check in Bios I don`t have such option. There is something I can do, so I can boot from USB? Thank you in advance for your support!

  • Command line args from java to C++

    Hi I want to pass command line arguemnts argc and argv from java to C++. I have browsed the net and most of them suggested that I declare the jni statement with jObjectarray. I saw an example at http://www.csc.calpoly.edu/~fouzi/crossroads/Arguments.

  • Rotating a BufferedImage

    I have been rotating a BufferedImage using the following code where m_Image is the BufferedImage: AffineTransform trans = new AffineTransform(); AffineTransformOp op = null; int imgWidth = m_Image.getWidth(); int imgHeight = m_Image.getHeight(); tran

  • N95 v20 Battery life

    Ok so it seems that the v20 firmware for the n95 is susposed to improve battery life! Well .. . thats aload of rubbish!! I have just updated to v20 from v11 r12 and it now seems my battery lasts about 7 hours max! when i had version 11 or 12 it laste