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

Similar Messages

  • How to retrieve the current User using PL_/SQL code?

    Hi,
    How can find the current logged user within a Dynamic Page using PL/SQL code?
    Thanks.

    Hi,
    There is a function wwctx_api.get_user which returns the logged in user. You can use this in your plsql code.
    Thanks,
    Sharmila

  • Listen the current URL with Flash  Adobe Air

    Hi!
    I'm new in Adobe Air, I need (urgente!!!) to do a simple widget with Adobe Air that monitors the URLs where I navigate and when I enter to a specific site the widget appears in the front of my screen and display a message. The problem is that I don't know how to listen the current URL of my browser using Adobe air (flash).
    I was trying with HttpStatusEvent but I can figure aut how to retireve the URL from my browser.
    Thanx!!
       Carolina

    An Adobe AIR application runs independently from web browsers.  For something like what you describe to work, an application would need to find a way to interact deliberately with browsers running on the system. The HttpStatusEvent, however, is an event that is listened for when the Adobe AIR application itself is attempting to interact with a URL and receives an HTTP status code, in which case you are already aware of the URL to begin with.
    dex

  • Generate the current URL with css file

    Hello everybody,
    I just added a QRCode App on my Custom List page and I'm trying to create a css file that
    it can generate the current URL where the QRCode App is opening.  The QRCode App allows to add css file which Indicates
    if I want to specify a custom CSS file URL. The QRCode opens with each List item. 
    Below is the code that I've been trying to use:
    <ul >
        <a href="">Link </a>
    </ul> 
    *This code shows the current URL. However instead showing the the URL, it shows a Link to the current page. Can someone help me with that? 
    Link for the QRCode App:
    http://office.microsoft.com/en-us/store/qrcode-app-for-sharepoint-WA103699711.aspx
    Thanks!
    App Part properties
    When you're editing the app part properties, you can change the following custom properties:
    Name
    Category
    Type
    Description
    QR Code Text
    QRCode Settings
    String
    QR code
    associated text or url. By default, this value is the host web url.
    QR Code Width
    QRCode
    Settings
    Integer
    QR
    code width. Default value is 200 px.
    QR Code Height
    QRCode
    Settings
    Integer
    QR
    code height. Default value is 200 px.
    Render Mode
    QRCode
    Settings
    Enum
    QR
    code render html method. The value could be canvas or html table. Default value is Cancas.
    Custom CSS File Url
    QRCode Settings
    String
    Indicates
    if you want to specify a custom CSS file URL.
    flavio

    hi
    what do you mean by current url? If url of current page is not what you are looking for, then is it url of current site?
    As you use app, I guess you are working with Sharepoint Online and can't use server side code? If this is the case, then check the following post:
    How to get URL of current site collection and other server side properties on client site in Sharepoint. Briefly you need to use OTB _spPageContextInfo object and set href attribute of your link in javascript:
    <ul>
    <a id="foo">Link</a>
    </ul>
    <script type="text/javascript">
    document.getElementById("foo").setAttribute("href", _spPageContextInfo.siteAbsoluteUrl);
    </script>
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • How to retrieve the text associated with a link annotation

    Hello
    In Acrobat, I created a link using the Select tool. I selected the text which I wanted to create a link.
    After with a C++ plug-in, I want to retrieve the text associated with a link annotation. Which is the function which makes it possible to find the text?
    Regards
    David G

    ok thanks for ur reply now my question regarding about ur first three message..
    U told using quad we finding their rectangle dimensions and then compare that with link annatation title. So then we retrieve link annataion right..
    Ya i already done like u told.. But i have one problem so plz solve dis..
    Problem--- see my code below
    for(int nWordCounter = 0; nWordCounter < nWordCount; nWordCounter++ )
    pdNWord = PDWordFinderGetNthWord(pdWordFinder, nWordCounter );
    PDWordGetNthQuad(pdNWord, nWordCounter, &quad);
    blh = ASFixedRoundToInt32(quad.bl.h);
    blv = ASFixedRoundToInt32(quad.bl.v);
    brh = ASFixedRoundToInt32(quad.br.h);
    brv = ASFixedRoundToInt32(quad.br.v);
    tlh = ASFixedRoundToInt32(quad.tl.h);
    tlv = ASFixedRoundToInt32(quad.tl.v);
    trh = ASFixedRoundToInt32(quad.tr.h);
    trv = ASFixedRoundToInt32(quad.tr.v);
    char *a = (char*)Asmalloc(20);
    sprintf(a, "%d %d %d %d %d %d %d %d", blh, blv, brh, brv, tlh, tlv, trh, trv);
    In dis code, the quad values of blh, blv, brh, brv, tlh, tlv, trh and trv are same for all words(pdNWord). so pls help me for dis proble..
    thanks in advance
    Raghu N

  • 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

  • How to handle the current row with radio button selection???

    Hi Everyone,
    I have one ADF page with one table and one "Find" button.
    I have created one new attribute with VARCHAR2(1) in the VO and dragged that attribute as first column in the table. And changed that first column to Radio Button to select only one row at a time.
    Upon clicking on the "Find" button i need to get the values of current selected row.
    How can i get the values of selected row?
    What code should i write to get the values of selected row in Method Binding of "Find" button?
    Any suggestions will be really useful.
    Thanks.

    Hello Kumar,
    I have some comments on your case.
    >
    I have created one new attribute with VARCHAR2(1) in the VO
    >
    1- You should create this attribute in the Entity object and then add it to the view object.
    2- Do you need that only one radio button is set at a time for all rows ? If yes then you need to handle the case when the user set more than one row and clear the value of the attribute for all other rows.
    >
    How can i get all the values of current row in backing bean method(method binding of Find method)?
    can u plz provide me the code for that?
    >
    If you mean by the current row is that the row with its value of the selected attribute is set (the radio button is set for that row), then you can write a method in the viewObjectImpl class and expose it to client interface and call it from your bean.
    here is an example based in Department table in HR schema.
    //This method is written in DepartmentsViewImpl   
    public Row getSelectedRadioRow(){
                //create a second row set to not impact the row set used in ADF
                RowSet duplicateRowSet = this.createRowSet("duplicateRowSet");
                //get the current row of the table to set it back after re-executing the VO
                DepartmentsViewRowImpl currentRow = (DepartmentsViewRowImpl)this.getCurrentRow();
                Row[] filteredRows = duplicateRowSet.getFilteredRows("IsSelected", "1");
                DepartmentsViewRowImpl row=null;
                if(filteredRows.length>0){
                    row = (DepartmentsViewRowImpl)filteredRows[0];
                    System.out.println("Department Name " + row.getDepartmentName());              
                this.setCurrentRow(currentRow);
                duplicateRowSet.closeRowSet();
                return row;           
            }

  • How to check the current time with a Stored  time in string format

    Hi All
    I would like to compare the system time with an existing time values which is allready there in String format..
    i mean i would like to check if the SysTime is inbetween 6:30 and 14:00
    I accomplished this in Oracle ..
    Select 'Y' from dual where to_date(to_char(sysdate,'HH24:MI '),'HH24:MI') between to_date('06:30','HH24:MI') and to_date('14:00','HH24:MI')
    But instead of checking the DB each and every time , the perfomance would be better if we can do this in our java code..
    Could some one provide me with a code to accomplish the above scenario..
    Thanks in advance..,.,

    import java.util.Calendar;
    Calendar rightNow = Calendar.getInstance();  // gets the current date and time to millisec
    Calendar earlyTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 6).set(Calendar.MINUTE, 30);
    Calendar lateTime = Calendar.getInstance().set(Calendar.HOUR_OF_DAY, 8).set(Calendar.MINUTE, 0);
    if (rightNow.compareTo(earlyTime)> 0 && rightNow.compareTo(lateTime) < 0){
    // do something
    }Try this.

  • How to keep the same URL with a redesigned website

    I have completely redesigned my muse website and want to replace the old one which is already live. How do I go about doing so and keeping the same URL?

    Hi
    You can upload the site to root which would replace the existing one.
    http://helpx.adobe.com/muse/topics/exporting-publishing.html
    Thanks,
    Sanjit

  • How to get the current URL in UIX

    I've tried:
    ${pageContext.request.requestedURL}
    ${uix.bajaContex.servletRquest.requestURL} (works but returns .uix, I want .do links)
    They didn't work.
    Thanks,
    Eduardo

    Eduardo,
    I guess that this has to do with the way that Struts and UIX controllers work together. My assumption is that though you see .do in teh URL, its actually .uix that is processed at last.
    Can't you get the request URL from the findForward method in the Struts DataAction ?
    Frank

  • How to get the current date and compare dates

    hi
    does anyone know how you would get the current date?
    furthermore, how to compare the current date with a past date to see how many days or months have past since then?
    thanks

    have a look at the Date class. new Date() creates an object containing the exact date and time at creation time. (Date).getTime() might be useful for comparing two dates. GregorianCalendar might be useful, too.

  • How to retrieve the  row  in a jtree

    hello
    how to retrieve the current row of database when i click on a particular node in a jtree.
    i had tried it in this way->
    ViewObject vv=(panelBinding.getApplicationModule()).findViewObject("BranchMasterView1");
    Row r=vv.getCurrentRow();
    but it is not working.
    actually i have to retrieve the code of a branch after clicking on a particular branch node.
    thank you

    When the node is clicked, get the user object from the clicked node. That will be a JUTreeNodeBinding. From that object you can get what you want.
    Sascha

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • How to cooperate the current mail system with Sun Java Commnication Suite 5

    Dear all and Shane,
    Excuse me for bothering you again.
    Due to time limited, I would like to know how to cooperate the current mail system with Sun Java Commnication Suite 5. I mean I would like to use current mail system (mailscanner + postfix + courier-IMAP + clamav + spamassassin + webmail) and use the outlook connector to connect to Sun Java COMMS 5 to share the calendar, contacts only.
    Right now I have done the testing by using outlook, mac mail, thunderbird to share calendar,contacts via Sun Java COMMS 5 in Centos Linux 5.
    My plan is as following
    1. Sun Java Communication suites 5 server ( I called it comms5 ) will be in DMZ zone and will open the necessary ports in firewall.
    2. I will create more than six sub domain name in Sun Delegate server and the necessary accounts within these domain names.
    3. All messages will be transmitted via Postfix and clients will retrieve from Courier-IMAP
    4. All Clients included other branch offices will use different mail clients to share their calendars, contacts via COMMS5 ( But how will COMMS handle the messages such like invitation ? )
    Any suggestions will appreciate.
    PS: Is it possible to classify the contacts in outlook address book ?
    For example, when user click the receiver, it will show like as following
    GLOBAL ADDRESS BOOK
    --Director
    --and so on
    ----CN.BRANCH OFFICE
    -----------CN01 EMAIL ADDRESS
    -----------CN02 EMAIL ADDRESS
    -----------CN03 EMAIL ADDRESS
    and so on
    ----JP.BRANCH OFFICE
    -----------JP01 EMAIL ADDRESS
    -----------JP02 EMAIL ADDRESS
    -----------JP03 EMAIL ADDRESS
    and so on
    ----TW.BRANCH OFFICE
    and Due to the user account is located in CN.BRANCH OFFICE, it will extend the CN.BRANCH OFFICE contacts level.
    Excuse me for bad English, hope you can understand it.
    Best Regards,
    Bruce

    Dogz wrote:
    Due to time limited, I would like to know how to cooperate the current mail system with Sun Java Commnication Suite 5.
    I mean I would like to use current mail system (mailscanner + postfix + courier-IMAP + clamav + spamassassin + webmail) and use the outlook connector to connect to Sun Java COMMS 5 to share the calendar, contacts only.Getting your current mail system to 'co-operate' in this way will require more time then simply migrating the accounts of users on the current mail system to the comm-suite-5 installation and making use of UWC for Webmail access and ClamAV/SpamAssassin integration within the messaging MTA.
    Also the use of Outlook Connector with a non-Sun IMAP backend isn't supported, nor is the use of a non-Sun IMAP backend possible with UWC.
    Right now I have done the testing by using outlook, mac mail, thunderbird to share calendar,contacts via Sun Java COMMS 5 in Centos Linux 5. Once again I should remind you that CentOS is not a supported platform for comm-suite-5
    Regards,
    Shane.

  • I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a  , which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a +, which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    There's another way.
    Right or control click the + then click Remove Item.
    Just remembered that keyboard shortcut!
    You're welcome 

Maybe you are looking for

  • Can you help me add songs from iTunes 11.0.1 to iPhone4S?

    I have a new MacBook Air and am trying to add songs from it (iTunes 11.0.1) to iPhone4S. However, drag & drop does nothing, which is what I had done on my PC to add songs previously.  Note: I specifically don't want to sync my songs/libraries.  I jus

  • Links not displaying properly on mobile devices

    Hi All, I am having trouble with my website when viewing it on a mobile device (android, iphone). Everything displays well on the mobile devices except for links. Excluding menu items, everytime there is a link on the page, it creates a huge white sp

  • How do you change the album artwork size in the new itunes

    I just downloaded the laterst version of itunes, and I can't figure out how to change the size of the album artwork in the grid...I like to be able to see all of my albums at once, so I usually view them in the smallest size, but I can't figure out h

  • Setting up .mac addresses in iWeb sites

    My .mac site (www.chaibabyusa.com) has been setup and published on iWeb '08 in .Mac. I would like to have email addresses setup ([email protected]) so that an email could be forwarded to an external site (@gail.com, for example). Thank you in advance

  • Export a list of used clips

    Hi, Is there a way to export a list of used clips in a project? Thanks