URG: How can i get current URL in PL/SQL?

Hello,
i need to get the URL of a page in order to read the parameters i pass from a page to another page.
The owa_util.get_cgi_env('QUERY_STRING'); function doesn't work properly, so i'd like to know if there is a standard portal pl/sql function that return the current URL.
In particular i know the wwpro_api_parameters package, but i have some pages without any portlets inside.
For example:
if a URL has these parameters: http://.......?empno=10&deptno=20
can i use the "get_value" function in a custom procedure?
l_value :=wwpro_api_parameters.get_value
('empno','p_reference_path');
Does anybody know how to do that? and what do i have to put in the p_reference_path?
Thanks in advance
Ettore
null

Hi Ettore,
Have a look at this thread: http://technet.oracle.com:89/ubb/Forum66/HTML/000956.html
Regards,
Peter

Similar Messages

  • How can i get current time of a given timezone

    how can i get current time of a given timezone
    for example: Asia/Hong_Kong
    my code is like this, but the result is not correct.
    what's wrong?
    import java.util.*;
    public class test {
    public static void main(String[] args){
              String s = "Asia/Hong_Kong";
              String tempS = "";
              TimeZone myTime = new SimpleTimeZone(s);
              //TimeZone myTime = TimeZone.getTimeZone(s);
              Calendar myCal = new GregorianCalendar(myTime);
              tempS = myCal.get(Calendar.YEAR)+"-"+
                        (myCal.get(Calendar.MONTH)+"-"+
                        myCal.get(Calendar.DATE)+" "+
                        (myCal.get(Calendar.HOUR)+":"+
                        myCal.get(Calendar.MINUTE)+":"+
                        myCal.get(Calendar.SECOND);
              System.out.println(tempS);
    output is : 2001-7-15 11:16:48
    but the correct time should be: 2001-8-16 7:17:48
    the correct time should be 2001-8-16

    Certain indexes in the Calendar API start at 0 rather then 1, so, when you get the value, you may want to increment.
    I'm not sure why the time is incorrect. You may want to call getAvailableIDs() and make sure that the desired TimeZone ID is supported by your version. I doubt that Sun would have incorrect support for the time zone, but it may not be included, or perhaps it is included with a diffrent ID. You can always create your own time zone as well, by passing the String offset to getTimeZone(), the offset being how many hours beyond or before GMT. Hopefully this helps.

  • How Can i get the URL of a page

    How Can i get the URL of a page . like in ASP the
    Request.QueryString() ...
    Thanks

    Are you wanting actual URL or just the url (query string
    variables)?
    For url variables you would reference the structure.variable
    name like so:
    #url.variablename#
    So if you had a url like this:
    http://www.somedomain.com?page=home&action=view
    You could access the variables like so:
    #url.page#
    #url.action#
    If you are wanting to actual page you could use:
    #cgi.script_name#
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    =============================
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Yasmin_lady" <[email protected]> wrote in
    message
    news:e4fhjv$fpl$[email protected]..
    > How Can i get the URL of a page . like in ASP the
    Request.QueryString()
    > ...
    > Thanks

  • How can i get getwayed url string using pluggable nav in news portlet?

    hi.
    How can i get getwayed url string using pluggable nav in news portlet?
    A code just like below is what I want.
    <param value="param=http://.../portal/server.pt/gateway/PTARGS_.../http/...">
    I tryed the following, but didn't work as I wanted.
    1.<param value="<pcs:valueexpr='var'/>">
    -> transformed. but I want the prefix 'param=' in the enquoted string's too.
    2. <param value="param=<pcs:valueexpr='var'/>">
    -> not transformed.
    Any idea?
    Hiroyuki

    Hi all,
    We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
    I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
    Performance Tuning & Profiling:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
    Using JRockit tools:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
    Diagnostics & Troubleshooting
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
    Best Regards,
    Tuva
    JRockit PM

  • How can i get current time in different TimeZone

    Hi alls,
    How can i get current time in different TimeZone.
    I've tried
    final Calendar calendar = Calendar.getInstance(GMT0_TIME_ZONE);
    final Date date = calendar.getTime();
    but it returns current time in my time zone not in GMT0

    a simple way would be:Sometimes gets you the right result (not during daylight saving), but always the wrong way.
    I would strongly recommend getting into the habit of handling Dates correctly. A Date is a universal instant in time - the number of milliseconds since midnight GMT on 1 January 1970. That instant corresponds to various dates and times, depending on your time zone and the effect of daylight saving. You make that conversion of a universal instant to a localized date/time using Calendar and DateFormat.

  • How can we get current time date with resultset?

    Dear All,
    I have to insert current time date in the table.So,i need to get the current time and date with result set.So,I will first get the time date and then insert it into the table.
    I know how can we get current time and date without resultset.i have created this function its working.But now i want to use this.mean using resultset i want to put in the table.
    How can i do this?
    public static String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
    public static String now() {
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    return sdf.format(cal.getTime());
    }

    yuck. Why not simply set a "new java.sql.Date()" to the SQL parameter in question?

  • How can I get the return code of SQL*Plus under Win2000Pro

    How can I get the return code of SQL*Plus under Win2000Pro ?

    In a DOS batch script? Try ECHO %ERRORLEVEL%
    -- CJ

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • How can we get a url for a "Meet Now" conference call from within the Windows Store App?

    Hi,
    Is it possible to get the url for the current meeting / new "Meet Now" call from within the Windows Store app?
    You have the option of inviting your current Lync contacts, but I don't see a way of giving a URL to clients that would launch Lync on their device, or take them to the web app.
    I can see how to get the link using the Outlook plugin, for pre-scheduled meetings. Is this link always the same and the one that should be used for an impromptu "Meet Now" meeting? It would still be good to know how to get this URL from within
    the store app so I can tell clients where to get it.
    Some people may be on Windows RT devices and not have access to the plugin in Outlook, and want to start a meeting at short notice and then invite others via email or pasting a link to them elsewhere.
    Any help appreciated.
    If I have answered your question, please mark it as the correct answer. If I have provided helpful information, please mark it as so.

    Hi,
    Agree with Holger, I check on my Lync Windows Store app and can't find the meeting URL as well.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • I am unable to reply to your e-mail convermation--how can I get the URL to past into my browser?

    Received a confirmation e-mail requestion me to reply to it and I cannot get the URL to paste to my browser--how can I do this???????/

    Hi June,
    Sorry for the trouble you've had.
    I've verified your account on our end and you should be able to access the ExportPDF service now.
    Please let us know if you have any questions!
    -David

  • Q: How to retrieve the current URL with PL/SQL

    I've got a pair of dynamic page portlets on a page. The first is simply an input text box and a submit button, the second is an inventory 'report' based on what is entered in the text box. When a value is entered and the button pressed, there is javascript behind the button that takes the current URL, adds '&ITEM=XXXXXXXX' (removing it first if this is not the first invocation of the page), and redirects to the new page.
    The second portlet uses the &ITEM parm to list a bill of materials for the item. If one of the items possesses a sub-assembly, I want to display the item# in an <a href= manner to make it so the user can simply click on the link to see the BOM of the subassembly.
    To do this, I believe I need to capture the current url and modify it as required to pass the new &ITEM value. I'm having a lot of trouble trying to figure out how to get the current page url. Any help would be greatly appreciated!
    Geoff

    Hello
    I have a similar problem I have developed a pl/sql portlet and put it into a page, this portlets display a dynamic page. This dynamic page have a search functionality, what I am trying to do is that when I click the search button on the dynamic page it recall the whole page and pass the paremeter that the user wrote on the search box, then the portlet that contains the dynamic page recieve the parameter and recall the dynamic page with the parameter that was received. The problem that I have is that the portlet receive the parameter but when I pass the parameter to the dynamic page it doesn't get it. This is the way the I am calling the dynamic page inside my portlet into the show procedure:
    EXECUTE IMMEDIATE
    'begin
    APP_NAME.PG_DYN_DIR_ALFABETICO.show (
    p_arg_names => PORTAL30.wwv_standard_util.string_to_table2(''url_page'',''search_param''),
    p_arg_values => PORTAL30.wwv_standard_util.string_to_table2(:1,:2));
    end;'
    using url_pg,p_text1;
    The dynamic page receive the first parameter(url_page) but not the second one(p_text1), I have checked that the p_text1 has a value on my portlet before I send it to the dynamic page so I really don't understand why my dynamic page doesn't work.
    Please HELP ME. I am desperate
    Ana Lasprilla

  • Get current URL from PL/SQL Package in Portal

    Hello, anyone knows the magic code to get the URL of current Web page from a package running from inside the same page?
    Thx

    You can use the page_url field of the portlet runtime record.

  • Can't get current URL in IE7 !!!

    For some reason,
    ExternalInterface.call("window.location.href.toString") to get the
    URLof the current active page doesn't work under Internet Explorer
    7. (Adding an id doesn't seam to do the trick... although i am not
    sure what value to give to this id) See code ...
    I created a simple swf file with a simple actionscript on the
    first frame to demonstrate the problem. Using the html code i also
    paste below, you can reproduce in less than 1 min.
    Thanks for any help !

    PiBGb3Igc29tZSByZWFzb24sIEV4dGVybmFsSW50ZXJmYWNlLmNhbGwoIndpbmRvdy5sb2NhdGlv
    bi5ocmVmLnRvU3RyaW5nIikgdG8gZ2V0IA0KPiB0aGUgVVJMb2YgdGhlIGN1cnJlbnQgYWN0aXZl
    IHBhZ2UgZG9lc24ndCB3b3JrIHVuZGVyIEludGVybmV0IEV4cGxvcmVyIDcuIA0KPiAoQWRkaW5n
    IGFuIGlkIGRvZXNuJ3Qgc2VhbSB0byBkbyB0aGUgdHJpY2suLi4gYWx0aG91Z2ggaSBhbSBub3Qg
    c3VyZSB3aGF0IHZhbHVlIA0KPiB0byBnaXZlIHRvIHRoaXMgaWQpIFNlZSBjb2RlIC4uLg0KDQpV
    c2UgYW5vdGhlciBjb25zdHJ1Y3Rpb246DQoNCnVybD1FeHRlcm5hbEludGVyZmFjZS5jYWxsKCJn
    ZXRVcmwiKQ0KDQpJbiBKUzoNCg0KZnVuY3Rpb24gZ2V0VXJsKCkNCiAgICB7DQogICAgcmV0dXJu
    IHdpbmRvdy5sb2NhdGlvbjsNCiAgICB9DQoNCkl0IHNob3VsZCB3b3JrIGV2ZXJ5d2hlcmUuDQoN
    CkJ5IHRoZSB3YXk6IGNhbid0IHlvdSB1c2UgbG9hZGVySW5mby51cmwgdG8gZGV0ZWN0IGN1cnJl
    bnQgVVJMID8=

  • How can I get the URL address of a secure https site to turn yellow

    The older versions of Firefox would turn the URL of a secure website yellow when accessed. Even with poor eyesight, I found this easy to see. When I upgraded to version 3.6, this feature was gone. Some of you programming capable users were kind enough to provide me with a chrome.css routine that made 3.6 act the way I needed it to. Unfortunately, I've been forced to upgrade Firefox to version 16 and the chrome.css file that worked on 3.6 seems to have no effect on 16. Would someone please provide me with a way of getting Firefox 16 to turn the https addresses yellow.

    That was a feature last used in Firefox 2.0 in 2006, a real long time ago ''(in software time.)'' This - http://www.dria.org/wordpress/archives/2008/05/06/635/ - explains the changes which came in Firefox 3.0.
    The code used for the Address Bar was completely changed for Firefox 4.0, which is why the css you were using in Firefox 3.6 doesn't work any longer.
    You could try looking for a "retro 2.0 style" Address Bar for that code, but I spent 15 minutes searching for a newer code and didn't find anything for 14.0 plus versions. ''Note that my search skills aren't the best.'' <br />
    http://userstyles.org/
    This is the closest I could find, but it isn't even close to what was used in Firefox 2.0. <br />
    http://userstyles.org/styles/69835/identity-box-earth-simple-fx-14 <br />

  • How can I get current Number file name in a cell ?

    I want to write current Number (3.5) file name in a cell.
    It was working in previous version of Number but not with latest one. Thanks.

    Yes, you can click the title bar of any document (the down arrow) to access the current file name:

Maybe you are looking for

  • System freezes when attempting to upgrade from Snow Leopard to Lion

    I hope someone can help me out there.  I have downloaded the Lion upgrade install program and built an install disk on my jump drive using Lion Diskmaker 2.0.2, but when I tried to upgrade from Snow Leopard to Lion using the jump drive, the install f

  • Query Filter not working - Lookup Community ID based on Community name

    I want to lookup Community ID based on the Community name. I tried the following code to filter the results and got a PTException. I'd appreciate any insight on to what I am doing wrong or a any other pointers to better implement this. // Build a fil

  • Dynamic Link not authorized after Production Premium  Upgrade

    I have upgraded to Creative Suite 4 Production Premium after previously installing Premiere CS4 and AE CS4 stand-alone. I completely uninstalled both of those programs (and all their associated programs) before installing Production Premium. When I a

  • After Effects composition will no longer populate in Media Encoder.

    Hi guys. I'm pulling my hair out with this recurring issue with Encoder. Ive been working on a 24 minute or so video and i have made a habit of stopping every couple of minutes to check if Media Encoder will pick up the composition. 2 hours in and it

  • HTTPService SSL mutual authentication

    I can use HTTPService to access a secure web server via. HTTPS. The SSL is configured to do a mutual authentication: both server and client needs to send their certificate to each other. Where should I put client certificate so that HTTPService can f