Complete URL in unstructured UI Template?

Hi,
Is it possible to retrieve complete url in unstructured UI Template in Oracle Portal 10.1.2?
I would like to pass it on as a parameter to pl/sql:
<ORACLE>
declare
   v_complete_url varchar2(4000);
begin
   v_complete_url := <some magic code to get url here>;
   my_package.my_procedure(v_complete_url);
end;
</ORACLE>I have searched the forums, but have been unable to find a solution to this.
Can anyone help?
Regards,
Haavard

Update:
Unfortunately the code above did not reveal the complete url, for some reason the parameters were left out (PPE interfering?)
The solution was to use owa_util to get all the parameters, unfortunately this method does not guarantee the order of the parameters, thus making it difficult to reconstruct the complete url. Anyway, I have worked around the problem, and are now using the following code (yes, I know i doesn't actually DO anything yet :-)):
<ORACLE>
   declare
      param_string varchar2(2000);
      l_names owa.vc_arr;
      l_values owa.vc_arr;
   begin
      portal.wwpro_api_parameters.retrieve (l_names, l_values);
      htp.p('<!--');
      htp.p('host:    '||owa_util.get_cgi_env('HTTP_HOST'));
      htp.p('script:  '||owa_util.get_cgi_env('SCRIPT_NAME'));
      htp.p('path:    '||owa_util.get_cgi_env('PATH_INFO'));
      htp.p('query:   '||OWA_UTIL.GET_CGI_ENV('QUERY_STRING'));
      for i in 1..l_names.count loop
         htp.p('p: '||l_names(i) || '=' || l_values(i));
      end loop;
      htp.p('-->');
   exception
      when OTHERS then
        htp.p('<!-- unstructured UI template code blew up! -->');
   end;
</ORACLE>Regards,
Haavard

Similar Messages

  • Is it possible to include items and portlets in an unstructured UI template

    Is it possible to include items and portlets in an unstructured UI template. The solution which we are working on requires to have the following dynamic entities as part of the unstructured UI template
    - Page Path
    - Basic Search (item)
    - People Search (portlet)
    - Current Date (we could achieve this by using <oracle>select sysdate from dual</oracle> in the html code... however, the date appears with a different background color)
    We are working on Oracle 10g AS 9.0.4.

    Hello Matt,
    Thank you for the reply to my email menu question.
    I have a couple of things that have been bouncing around in my head that maybe you could answer for me:
    1. I see where I have a free site to promote web hosting, of which I selected the site name as NewtonBridgeAdv.... Will this site allow me to fully integrate it into the web with my design, e-commerce,  email marketing, as this site NewtonBridgeAdv.com? I currently have NewtonBridgeAdv listed on http://www.thruadoor.com/advertising-agency.html but would like to move it to a more complete site.
    2. I see where SuperSupportTeam.com is expiring on 14, June 2014. This site was cancelled as WebMarketing a few weeks ago (but still current with the payment) and is now set up as one of the five basic sites.  The payment was not refunded for this months web marketing so maybe this is what it is referring to. I don't know. I wanted the credit applied to an upgrade to E-Commercee on thruAdoor.com. However, I was not granted the refund.
    3. I thought I had viewed a sales commission on the Portal credited to the current site hosting, but now the account is empty. How do I warrant a commission for any sites that I may host on BC?
    4. I may not understand what some of the BC team members have said about my current site thruAdoor.com in that it is not set up properly or not linked properly with BC. I don't know what they are talking about. Can you help?
    Thanks,
    Henry O'Pry
    President
    Southeastern Color
    Athens, GA

  • Not able to get the complete URL in mail content

    Hi All,
    I want to give the below link in mail which is sent from workflow, so on click of it, the user will be able to open the particular opportunity directly.
    https://<sys_host>%3Fcrm-object-type%3DBT111_OPPT%26crm-object-action%3DB%26crm-object-keyname%3DGUID%26crm-object-value%3DXXXXXXXXXXXX
    XXXXX here is GUID of the Opportunity of 32 character.
    For this, I have created a attribute of type BAPITGB-LINE. When inserting this expression into the mail activity of the WF, I have chosen the data to be exported as "All lines as cont. text".
    In this attribute, when I concatenate the values and the guid, I get only part of the link as below which is 133 characters.
    https://<sys_host>%3fcrm-object-type%3dbt111_oppt%26crm-object-action%3db%26crm-object-keyname%3dguid%26cr
    When I try to append it in a internal table of type BAPITGB, I am getting the complete URL but with a space between every line in the internal table as below.
    https://<sys_host>%3Fcrm-object-type%3DBT111_OPPT[SPACE]%26crm-object-action%3DB[SPACE]
    %26crm-object-keyname%3DGUID[SPACE]%26crm-object-value%3D
    DFD60A8AD0E53DF1918F0050569F0324
    Please let me know, how to avoid this space in append statements. Also, the concatenate is taking only 132 characters, after which it cuts the URL, leaving it incomplete.Kindly correct me if I was wrong somewhere.
    Thanks,
    Ramya
    Edited by: Gali Kling Schneider on Jul 11, 2011 9:47 AM

    Hi Sanjay,
    As suggested, I have split the URL into 3 links in WF container having the initial values as below.
    Link1 -> <sys_host>.%3Fcrm-object-type%3DBT111_OPPT
    Link2 -> %26crm-object-action%3DB %26crm-object-keyname%3DGUID
    Link3 -> %26crm-object-value%3D
    In the mail activity, I have given the link as: &LINK1&&LINK2&&LINK3&&GUID&
    &GUID&-> GUID of the opportunity.
    When I tested this in log-> List with technical details-> mail, it had the correct value without space as below.
    https://<sys_host>.%3Fcrm-object
    -type%3DBT111_OPPT%26crm-object-action%3DB
    %26crm-object-keyname%3DGUID%26crm-object-value%3DDFD60A8AD0E53DF1918F00505
    69F0324
    But in SOST, when I checked for the link it is having spaces as below:
    https://<sys_host>%20%3Fcrm-object-type%3DBT111_OPPT%20%26crm-object-action%3DB%26crm-object-keyname%3DGUID%20%26crm-object-value%3D%20DFD60A8AD0E53DF1918F0050569F0324
    Kindly advice.
    Thanks,
    Ramya
    Edited by: Gali Kling Schneider on Jul 11, 2011 9:48 AM

  • A method to create completely customized photo book page templates from scratch in Lightroom 5

    I was able to successfully create completely customized Lightroom 5 page templates (including altering the number of, positions, and sizes of pictures) by making edits to the templatePages.lua file(s) in the Lightroom directory tree.  I have never heard of the LUA file format before, but it is ASCII and looks somewhat like XML, so it was fairly easy to decipher.  Here is a high-level description of how I did it.  This applies to Lightroom 5 on Windows 7.  If this doesn't make any sense to you, then don't try it - you're likely in over your head.  Although my description is brief and lacking in detail, it should enable someone who is capable of handling this to figure it out with a little of careful trial and error.  Do this at your own risk - if you screw-up your installation, catalog, or computer, it's your own fault.  It all worked great for me.
    First, open the "<lightroom 5 install directory>\Templates\Layout Templates" folder.  Then navigate to the template set that contains the template you would like to use as a starting point for the new template.  For example, "12x12-blurb\clean12x12".  Make a back-up copy of the templatePages.lua file in case you mess something up and want to revert.
    There will be a bunch of .jpg files in this directory that each contain a preview image of the layout that carries the same name as the .jpg file.  Find the one that you would like to use as a starting point.  Take note of the name of the file, which is probably something similar to "page_26_preview.jpg".   Duplicate the file and rename it to something unique, such as "dummy_preview.jpg".  It's just temporary, so it doesn't matter what name you pick, provided it is a legal file name with no spaces.
    Next, open the templatePages.lua file in a text editor.  I suggest using one that can automatically recognize and format ULA (such as Notepad++, which is open source and free to use).  Then search the file for the unique portion of the file name you took note of earlier, such as "page_26".  It will point you to a section in the LUA file that describes that particular template.  Carefully copy that entire section, including a balanced number of brackets (starting with the two brackets and commas before "children" and ending with the one bracket and comma after the "title" line.  Paste the copied text into the end of the file on a new line immediately following the bracket and comma after the "title" field for the last page template section (right near the end of the file).  Change the "previewName" field to the name of the preview file copy that you created ("dummy_preview.jpg" for me) and the "name" field to the name of the new template you're creating ("dummy" for me, since it is just temporary).  Next change at least one of the hex characters in the "pageID" field such that the new template will have a unique page identifier.
    Now you can make edits to the photo and text fields included in the new section, using other templates in the template file as examples.  "x" and "y" fields are coordinates (in pixels) for the bottom-left corner of the picture or text field, "height" and "width" are the width of the field in pixels.  The fields should be mostly self-explanatory, but make sure that the "photoindex" fields are filled-in starting from 1 to N, where N is the number of pictures in the template, with no duplicates or gaps.  They do not need to be in order.  Treat the "textIndex" fields similarly for text fields.  If you want to add an additional picture or text field, simply copy the section describing a picture or text field from another template and paste it, carefully, into the new template that you are creating.
    Once you are done, save the file (you may get interference from Windows UAC, in which case save the file elsewhere and the move it back to the correct directory).  Then open Lightroom.  Create a new photobook, and choose the new template for one of the pages, remembering that the preview image will look like the JPG that you copied.  Voila!  If you didn't screw anything up, you should see a page based on your new template.  Then right-click the page and select "Save as custom page", which will cause a fresh preview file to be created for your new template and your template to be copied to the "custom pages" section of the template menu.  The new section you added to the "templatePages.lua" and the "dummy" preview file can now be deleted, since they are no longer needed.  I save them so that I may simply overwrite them the next time I need to create a customized template.
    Enjoy, and please share any clarifications, corrections, or enhancements to my process.

    peter at knowhowpro wrote:
    DHWachs wrote:
    This post was great!  Thank you so much.  But I am hoping you know one more thing related to this.  In the "transform" section of the definition (where the x/y coordinates are set along with height and width) there is an option called "angle".  I was hoping that changing this value would allow me to offset the angle of the picture.  However, if I put any value there other than 0 the template becomes unusable.
    Do you happen to know what this option does?
    I haven't looked into the files, so this is just a guess based on how some graphic applications work. It's common to think of rotating a shape as pivoting around a center point, but It's possible that the file sets a value for the rotation point not at the center. In some graphics applications, you can set a shape's pivot at any corner or in the middle of any side, of the rectangle that contains the whole shape.
    So, your value may be rotating the shape around a pivot that moves the shape into some area that upsets the behavior of other shapes. Just a thought.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Peter's point is a good one.  I would also assume that the "angle" property allows you to rotate an image, but I haven't tried it myself.  One thing to investigate - are there any page templates included in LR that have image placeholders that are at an angle (I don't recall any, off-hand)?  If so, looking at the associated .lua file could provide insight into how an angled image placeholder should be described.

  • How can I stop safari from auto completing url's on my iphone 4 and ipad2?

    How can I stop safari from auto completing url's on my iphone 4 and ipad2?  On both devices I have cleared history, I have gone into settings-safari-and cleared history and cleared cookies & data, tried turning my devices on and off and I also have private browsing turned on. Both devices are operating on iOS 5.  When I type in a url I don't want anything to show and auto complete.  Any suggestions?

    This indicates corrupt files.
    A restore should resolve.

  • How can I do a backup listing of all of my bookmarks, with complete URLs to print out from a wordpressing program?

    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I make a backup listing of all of my Firefox bookmarks, with complete URLs, so I can print it out from a word precessing document? Please email me the answer-
    [email protected]
    == Firefox version
    ==
    2.0.0.4
    == Operating system
    ==
    PPC Mac OS X Mach-O
    == User Agent
    ==
    Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
    == Plugins installed
    ==
    *-Netscape Navigator Default Plug-in
    *Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Test Your JVM.
    *Plugin that plays RealMedia content
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.
    *Shockwave Flash 9.0 r260
    *Provides support for Digital Rights Management
    *Provides support for Windows Media.
    *Java 1.3.1 Plug-in (CFM)
    *Macromedia Shockwave for Director Netscape plug-in, version 8.5.1
    *Java 1.3.1 Plug-in

    You can export the bookmarks to an HTML file: Bookmarks > Organize Bookmarks > File: Export
    See http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    See also [tiki-view_forum_thread.php?forumId=1&comments_parentId=252551 How do I print off my bookmarks]
    You should at least update to Firefox 2.0.0.20 if you are on Mac OS X 10.3.9 or lower and can't use more recent versions that require at least OS X 10.4
    See http://kb.mozillazine.org/Installing_Firefox
    The most recent Firefox version for OS X 10.3.9 is 2.0.0.20.
    Mac: http://download.mozilla.org/?product=firefox-2.0.0.20&os=osx&lang=en-US

  • Hi, I'm making hyperlinks. They work for the main page of the webpage, but when I'm trying to redirect the hyperlink to a "sub page" of the webpage it is still going to the main page. (allthough I'm pasting the complete url address)

    Hi, I'm making hyperlinks. They work for the main page of the webpage, but when I'm trying to redirect the hyperlink to a "sub page" of the webpage it is still going to the main page. (allthough I'm pasting the complete url address)

    Hi! first of all, thank you so much for your help.
    I don't know about that panel you are talking about.
    what I do is RIGHT CLICK, INTERACTIVE, NEW HYPERLINK, and a window pops up, where I paste the address (images).
    Where says URL I paste the complete address that the "sub page" gives me.
    Is that correct? (for the main page of the wabepage works correctly)
    thanks!!!

  • How to get the specified serarch term from the complete url? - Help

    Hello,
    I have a table in which some columns. One of the column is storing the complete url for the search given by the user.
    For Example:
    1.
    I give search like "oracle" on the Google, the column will store the complete url as
    "http://www.google.com/search?hl=en&q=oracle".
    I want the search word "oracle" to be returned from the column.
    2.
    I give search like "new + features + in + oracle + 10g", the column will store the url as
    "http://www.google.com/search?hl=en&lr=&q=new+%2B+features+%2B+in+%2B+oracle+%2B+10g"
    I want "new + features + in + oracle + 10g" search word to returned from the column.
    Can anyone tell me how to achieve this task? I have tried for a long time also I tried the sys.utl_url.unescape() function, but could not got the desired result.
    Please help, its really urgent!!!
    Thanks in advance.

    Hi,
    you can have a look into this code:SET ESCAPE ON
    DECLARE
            ref1 VARCHAR2(1000 CHAR) := 'http://www.google.com/search?hl=en\&q=oracle';
            ref2 VARCHAR2(1000 CHAR) := 'http://www.google.com/search?hl=en\&lr=\&q=new+%2B+features+%2B+in+%2B+oracle+%2B+10g';
            FUNCTION hextodec( h IN VARCHAR ) RETURN NUMBER
            AS
                    h2 VARCHAR2( 150 );
                    i NUMBER( 10 );
                    j NUMBER( 2 );
                    d NUMBER;
            BEGIN
                    h2 := LTRIM( h, '0' );
                    d := 0;
                    FOR i IN 1 .. LENGTH( h2 )
                    LOOP
                            SELECT DECODE( SUBSTR( h2, i, 1 )
                                    , '0', 0, '1', 1, '2', 2, '3', 3, '4', 4, '5', 5
                                    , '6', 6, '7', 7, '8', 8, '9', 9, 'A', 10
                                    , 'B', 11, 'C', 12, 'D', 13, 'E', 14, 'F', 15 )
                                    INTO j
                                    FROM DUAL;
                            d := 16 * d + j;
                    END LOOP;
                    RETURN d;
            END hextodec;
            FUNCTION strip(samplevalue IN VARCHAR2) RETURN VARCHAR2
            AS
                    finalvalue VARCHAR2(1000 CHAR) := samplevalue;
                    decimalvalue NUMBER(2);
                    pospct NUMBER;
                    extract VARCHAR2(2 CHAR);
            BEGIN
                    finalvalue := SUBSTR(finalvalue ,INSTR(finalvalue ,'\&q='));
                    finalvalue := SUBSTR(finalvalue ,4);
                    if (INSTR(finalvalue ,'\&')-1 > 0) then
                            finalvalue := SUBSTR(finalvalue ,1,INSTR(finalvalue ,'\&')-1);
                    end if;
                    finalvalue := REPLACE(finalvalue ,'+',' ');
                    LOOP
                            pospct := INSTR(finalvalue ,'%');
                            EXIT WHEN pospct = 0;
                            extract := SUBSTR(finalvalue ,pospct+1,2);
                            finalvalue  := SUBSTR(finalvalue ,1,pospct-1) || chr(hextodec(extract)) || SUBSTR(finalvalue ,pospct+3);
                    END LOOP;
                    RETURN finalvalue;
            END;
    BEGIN
            DBMS_OUTPUT.PUT_LINE( hextodec('2B'));
            DBMS_OUTPUT.PUT_LINE(strip(ref1));
            DBMS_OUTPUT.PUT_LINE(strip(ref2));
    END;
    /Regards,
    Yoann.

  • Why can't I just press ENTER to go to the page when I have the complete URL typed into the address bar?

    I dunno; maybe I'm just crazy, but I'd swear that before I downloaded FF4, I used to be able to (1) type in a complete URL, or (2) type a partial URL or keyword and choose what I wanted from a drop-down of recent URLs, then hit ENTER to be taken to the page I was looking for--all in the address bar, without having to use my mouse to click the little curly arrow at the right end of the address bar (next to the "favorite" star).

    BINGO! SOLVED IT!! It was that rotten AVG safe search. Bravo, and thank you, TonyE! (I often suspect I'm losing my marbles; glad to know that this time it was a false alarm;)

  • Complete URL of the page

    Hi All,
    Does any one know how can I get the complete URL of the page using inbuilt API's.
    For example, If I am on page:
    http://localhost:7501/sampleportal/application?namespace=security&origin=portal.jsp&pageId=page1
    Is there any way I can get this using API's.
    request.getRequestURI() doesn't solve the purpose.
    Any ideas?
    cheers
    Mark

    Mark,
    request.getRequestURI() gives you everything up to the query string. So
    append to this reqeust.getQueryString().
    russ
    "Mark" <[email protected]> wrote in message
    news:3ef3125e$[email protected]..
    >
    Hi All,
    Does any one know how can I get the complete URL of the page using inbuiltAPI's.
    >
    For example, If I am on page:
    http://localhost:7501/sampleportal/application?namespace=security&origin=portal.jsp&pageId=page1
    >
    >
    Is there any way I can get this using API's.
    request.getRequestURI() doesn't solve the purpose.
    Any ideas?
    cheers
    Mark

  • Complete URL of an iView Component !!

    Environment : EP 6.0 Sp2
    Following is the complete url of an iview ...
    http://<servername>:<port>/irj/servlet/prt/portal/prtroot/<componentName>.default
    I am using the following code to get the url ...
    IPortalUrlGenerator portalGen = null;
    IUrlGeneratorService urlGen = (IUrlGeneratorService)componentRequest.getService(IUrlGeneratorService.KEY);
    ISpecializedUrlGenerator specUrlGen2 = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
    if (specUrlGen2 instanceof IPortalUrlGenerator)
       portalGen = (IPortalUrlGenerator) specUrlGen2;     
    String strUrl = new String();          
    if (portalGen != null)
       strUrl = portalGen.generatePortalComponentUrl(componentRequest, "ComponentName.default");
    with the above code, the url I am getting ( in strUrl vaiable) is ...
    "/irj/servlet/prt/portal/prtroot/<componentName>.default"
    How can I get the url part "<servername>:<port>" so that I append it to the above string to get the complete url of the portal component or is there any other way to get a complete URL of a component ??
    I appreciate your help !!

    Use the HttpServletRequest object to get the bits you need:
    String strUrl = "/blah/blah";
    HttpServletRequest srq = componentRequest.getServletRequest();
    String url = srq.getScheme()+"://" +
         srq.getServerName() + ":" +
         srq.getServerPort() ;
    response.write (url + strUrl);

  • Unabel to get complete URL in PDF with Acrobat 7.0

    Hi
    I am working with Indesign CS2, Now a days i am facing one comic problem. My PDF file with acrobat professional 7.0, Unable to handle complete URL which is having "period or under score" in between.
    For Example [email protected]
    In PDF file that will appear [email protected]

    Hi Bob
    Sorry for inconvenience.
    Acrobat automatically generate the hyperlink from URL but Acrobat 7.0 unable
    to generate complete link for URL, Incase inbetween of URL there is any
    "period or underscore" present. For EXP [email protected] this URL
    has an indesign file after created the PDF and open with Acrobat 7.0 this
    will be shown [email protected]
    Is there any way to overcome this problem with Acrobat 7.0.
    However Acrobat 8.0 has this compatibility.

  • Safari: Display complete URL in search/URL Bar

    OS/X 10.10.1
    Safari 8.0
    How do I make Safari always display the complete URL in the search bar and not just the abbreviated domain name?
    thanks,
    bill plunkett

    Safari > Preferences > Advanced > Smart Search Field:
    Checkmark the box beside "Show full website address".

  • Wanted to see the complete URL in Invoke activity dynamically

    Hi
    In BPEL instance that exists in em , Is there any possibility to see the complete URL for an Invoke activity which url it is hitting dynamically ?
    I have a cluster environment (001, 002) for an webservice , i am giving the load balancing URL, every thing works fine , but not able to see/ensure which exact server's URL being hit dynamically from invoke activity of BPEL.
    Is there a possibility to see the URL in BPEL instance like audit, flow,.. enabling any of the logging etc etc...
    Regards,
    Rajiv S

    Hi,
    I might be wrong but I don't think that the BPEL is aware of the URL of the endpoint choosen by the load-balancer (That is the purpose of the load-balancer).
    So I would advise you to check the load-balancer monitoring to know (or add a data in the response that let you identify the endpoint reached ?).
    regards,
    mathieu

  • Get complete URL

    How would I get the complete URL of my page, including all the data after the '?' ?
    I've tried request.getRequestURL, but it only returns the main URL. By this I mean, if the complete URL was
    http://forum.java.sun.com/post!default.jspa?forumID=45getRequestURL only returns
    http://forum.java.sun.com/post!default.jspa Thanks!

    Check out the other methods on the request class.
    The method getQueryString() will get the rest of the URL you are missing.

Maybe you are looking for

  • Is there a limit to Number of Tracks in DVDSP

    I have a client who want to put package 80 seperate interviews. Is there a limit to the number of video tracks that DVDSP can handle? Help appreciated

  • Sales Order No. missing/Skip off

    Hi, After creation of sales order system Skipping some numbers, This happen 4-5 Times. I have check setting into number range Objecy RV_BELEG, There is Buffering not maintained. Pl. help ASAP, Regards, Devendra

  • Warnings in the Upgrade Log file for OBIEE 11G from 10G

    Hi, I am new to OBI 11g. I have installed simple type OBI 11g (version - 11.1.1.5.0) on a single server(Windows 2003, RAM-4GB,CPU-2.8GHz Dual Core ). I used upgrade assistant to upgrade the RPD & Webcat from 10.1.3.4.1 version to 11g, but I got about

  • Alpha BG in 3D text?

    How to get alpha background after using 3D text using ray traced (CS 6), environment layer, lights and cam?

  • Help with uppercase letters in Find/Change

    Hiyis. I'm trying to change all instances of "US" to "U.S.," but when I type it into Find/Change, I'm getting stuff like "discuss" highlighted. Any way to specify just uppercase US on its own? Or do I have to go through and review every suggested cha