Want a javascript redirect URL using an already defined page item?

Hello,
i have a button where i configure a Redirect to URL option... and use : javascript:html_PopUp('http://yahoo.com', '_newwindow');
That is pretty clear, and it works. I also have a defined page item which does contain a valid URL
For example :P4_OFFICE_WEB_PAGE_LINK_V:='http://google.com'
I want the pop up to use a stored value, not the hardcoded one at the top... I have tried all of these, but none seem to work :
javascript:html_PopUp('P4_OFFICE_WEB_PAGE_LINK_V', '_newwindow');
javascript:html_PopUp(':P4_OFFICE_WEB_PAGE_LINK_V', '_newwindow');
javascript:html_PopUp(APEX_UTIL.GET_SESSION_STATE('P4_OFFICE_WEB_PAGE_LINK_V'), '_newwindow');
What should i use?
Thanks.

user12602240 wrote:
I am a bit novice... sometime i don't know when to use a : (colon) and when not! And i certainly didn't know an ampersand symbol, page item name followed by period (.) will return the value stored. All covered in the documentation.
Please update your forum profile with a real handle instead of "user12602240".

Similar Messages

  • I want to assign the Url of a Sharepoint list page to a Constant, and I am using it into User Control navigate Url.

    I want to assign the Url of a Sharepoint list page to a Constant, and I am using it into User Control navigate Url.
    But it is Not working there , Could you Please Suggest me the Better way..
    Regards
    Nitesh

    Your question isn't clear. Can you explain what you're trying to do and what you've attempted?

  • Use button to assign page items a value

    Hi All,
    I have a simple question (hopefully).
    I need to assign two page items some value when a button is pressed. I cannot see what I'm doing wrong !
    I have created the button and set Button Request Source Type to PL/SQL Expression or Function. I have then added some code ;
    :p0_year := 2011;
    :p0_week := 37;
    This does not work, am I going about this the wrong way as I guess this should be pretty straight forward ?
    Thanks
    Billy

    Hi there billy,
    maybe you could use the Page Processing:
    Click the Processes plus sign,
    click PL/SQL,
    then name it,
    then in Point drop down choose On Submit After Computations and Validations,
    in Enter Pl Sql page process text area:  :p0_year := 2011;
    +:p0_week := 37;+
    click next,
    then next,
    then in 'when button pressed' drop down, choose the button you want to trigger the process above.
    then, click create process...
    You may also follow the advise from Zulqarnain by using dynamic action or javascript..
    Hope this will help..
    Best regards,
    shynn,,

  • Issue with calling url using custom uri from page loaded in stagewebview

    I am using stageWebView for showing webpage in my mobile app but don't know how to move back to my app once it gets loaded. In application descriptor file, I had already registered custom uri scheme (myapp://) for IOS devices and from the loaded page inside stageWebView, I was trying to call following URL myapp://webcam. But nothing had happened. It neither called LOCATION_CHANGE event of StageWebView not called INVOKE_EVENT of nativeapplication.
    How can I fix this issue?
    Thanks in advance,
    Mamta

    Hi Ashutosh,
    yea it gets launched correctly from safari. But my problem is with the link(which is using custom uri scheme e.g myapp://backtoapp) in the loaded page inside StageWebView. It is not allowing app to moveback to app from StageWebView. Moreover these two event listeners INVOKE_EVENT(native application) and LOCATION_CHANGE(stagewebview) are not responding. Dont know what should I do in order to move back to app area(mainView.mxml) from StageWebView(native browser).
    Thanks,
    Mamta

  • Using SQL Query for page item source does not insert populated value

    Hi All,
    Following are the attribute details of a certain page item on an edit form:
    Display As: Text Field
    Page Item Source Type: SQL Query
    Source value Expression: SELECT a from tab where id = 'ABC'
    Although the field appears populated on the screen, but the value is not inserted in the table.
    Can anyone help on this?
    Thanks in advance,
    Annie

    Annie:
    One solution is to define a pl/sql function that given a date will return the 'run-date'. Something like create or replace function get_prod_date(p_date in date) return date is
    retval date;
    begin
    select run_date into retval from tab_x where run_date=p_date;
    return retval;
    end;Change the Source Type for the page-item back to 'Database Column'
    Set Source value or expression to the 'database column name'
    Set 'Post calculation computation' to be
    get_prod_date(:pxx_date)
    Varad

  • Using page items in a report region

    Hi all,
    I am attempting to query a database table using values from two page items.
    SEARCH_FIELD is the field in which a query constraint is being applied
    SEARCH_CONDITION is the the query constraint condition being applied
    So, for example, I tried setting SEARCH_FIELD to AMOUNT and SEARCH_CONDITION to %22%.
    When I put the line 'AMOUNT LIKE :SEARCH_CONDITION' at the end of the query it returns the rows that do match the constraint.
    When I put the line ':SEARCH_FIELD LIKE :SEARCH_CONDITION' it displays "no data found."
    The debug shows it parse query, bind SEARCH_FIELD, bind SEARCH_CONDITION, determine column headings, then parse and bind again, and print column headings, and row loop: 15 row(s). Then the message "no data found." It should return a single row, but it does not.
    Any reason why apex doesn't like this?
    Thanks in advance,
    T.

    Sorry for the reply delay...
    The region is an SQL Query. The source is:
    Select NUMBER, DATE_LOGIN, DATE_LOGOUT, FORM.FORM_NAME as "Form", Person.L_Name||', '||Person.F_Name as "REQUESTER", DEPARTMENT.DEPARTMENT_NAME, ACCOUNT#, SUBCODE.SUBCODE as "Subcode", AMOUNT, DESCRIPTION, SENTTO.LOCATION as "Sent To", (Select Person.L_Name||', '||Person.F_Name from PERSON WHERE AUTHORIZED_BY=PERSON.ID) as "Authorized By" from SIGNATURETBL, PERSON, DEPARTMENT, FORM, SENTTO, SUBCODE WHERE REQUESTER=PERSON.ID AND DEPARTMENT=DEPARTMENT.ID AND FORM=FORM.ID AND SENT_TO=SENTTO.ID AND SIGNATURETBL.SUBCODE=SUBCODE.ID AND :SEARCH_FIELD LIKE :SEARCH_CONDITION
    If :SEARCH_FIELD has the value of 'AMOUNT' and :SEARCH_CONDITION has the value of '%22%' the regions says that no data was found. If :SEARCH_FIELD, in the query, is replaced by AMOUNT then the query does return the proper rows.
    Can you not reference an item to determine a column constraint?
    Thanks for any input

  • How to pass a single quote in a URL using Javascript

    Can someone tell me how to pass a single quote in a URL using Javascript. I have created a Javascript funciton in which I pass several column values from an APEX report.
    The URL for the report link I am using is "JAVASCRIPT:passBack('#EMP_ID#','#Name#','#e-mail#')"
    The problem occurs with the Name and e-mail columns contain a single quote (i.e. James O'Brien)

    Thank you Saad, that worked.
    Since I built the report using type 'SQL Query (PL/SQL function fody returning SQL query)' I had to add some additional quotes to get it to work.
    i.e.
    replace(EMP_EMAIL_NAME,'''''''',''\'''''')
    or
    replace(EMP_EMAIL_NAME,chr(39),''\'''''')
    Thanks for the help,
    Jason

  • I just bought a new Mac and migrated my CS6 over.  Now when I open it, I'm told I'm running a trial version of Cloud.  Why can't I use my CS6 version that I purchased?  I don't want to pay for something I've already bought.

    I just bought a new Mac and migrated my CS6 over.  Now when I open it, I'm told I'm running a trial version of Cloud.  Why can't I use my CS6 version that I purchased?  I don't want to pay for something I've already bought.

    Here's how to convert the Trail to Permanent:
    On receiving Trial/Trial Expired screen
    Make sure that you are online
    Click on license this software
    Perpetual product owners: Log in with adobe ID and enter product serial number
    Product should be licensed successfully

  • I want to change my primary email address, and use one already associated with my account why can I not do this ?, I want to change my primary email address, and use one already associated with my account why can I not do this ?

    I want to change my primary email address, and use one already associated with my account why can I not do this ?, I want to change my primary email address, and use one already associated with my account why can I not do this ?  I don't want to create another one if I really don't need to
    Any ideas ?

    I'm afraid that once an address has been associated with an Apple ID you can't re-use it in any way. You will have to create another address (such as a free on from GMail or Yahoo for example).

  • I want to change my primary email on Apple ID... but it says I can't use email already in use but its not my alternative email - it may have been in the past - any ideas?

    I want to change my primary email on Apple ID but it says I can't use email already in use but its not my alternative email - it may have been in the past - any ideas?

    I don't believe Apple lets you delete old accounts. They also will not let you merge them.

  • I want to allow only specific url using class-map

    i have two  dir on server like abc and  xyz  on the web server , but i have blocked the url using class-map like *xyz*
    is there any way to allow specific url  like in dir /abc/login.html and block all the files from /abc dir

    Thanks.  Actually, I posted my query because I haven't been able to make Parental Controls in OS X do what I want. I've been trying that tool for a while.  It seems that there are sort of three options:
    1. Allow everything with no exceptions
    2. Block sites that fail an automated filter for "adult" content, and then add back allowable sites.
    3. Block everything, and then add a white list of allowed sites
    In my case, option 2 doesn't work, because frankly, I don't care if my kids choose to look at content that somebody has evaluated as "adult."  Generally, the web log says that they don't, and if that does become an issue, then I will deal with it when it arises.  
    What I want to be able to do is the direct opposite of option 3 listed above:  Allow everything except an admin-specified black list defined per user, and be able to modify that list from time to time when I have a specific issue with a specific user. 
    I just want to be able - from time to time, like when I know they are behind on school work - to be able block a short list of "innocuous" persistent time-sucking sites as Youtube, Facebook, Twitter etc., even though there is not necessarily any objection content per se on the sites I want to block for that specific user (the "user-specific, admin-defined blacklist").   It is the lost (mis-allocated) time, not the risk of loose morals that concerns me.
    Network-level solutions exist, but these do not allow me to discriminate among user accounts as far as I can tell.  If anybody knows of a good solution that works in OS X across various platforms - freeware or commercial - I will appreciate a lead.   Or, if there is a hack that will allow me to accomplish this in Parental Controls, I would appreciate a pointer in that direction, as well.

  • No destination URL is defined. Use the followind redirect URL in Transactio

    Hi,
    I am new BSP, I have to display logon screen in my BSP application, i was copied SYSTEM bsp application and tried to run it, but it is throwing error "No destination URL is defined. Use the followind redirect URL in Transaction SICF:  /sap(====)/public/bsp/sap/login/default.htm?sap-url= " . Please let us know what has to be done for the same
    Message was edited by:
            Rams BSP

    Hi Rams,
    see http://help.sap.com/saphelp_47x200/helpdata/en/33/8351f1f3351c41853ea3508cbef0cf/frameset.htm
    and
    http://help.sap.com/saphelp_47x200/helpdata/en/1d/13c73cee4fb55be10000000a114084/frameset.htm
    It sounds like you have not configured the redirect correctly in the ICF.
    Cheers
    Graham

  • Want to hide command bottun using javascript

    Hi,
    I want to hide command bottun using javascript when form load
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Add/Edit CD details</title>
    <script type="text/javascript" src="Test.js"></script>
    <script type="text/javascript" src="datetimepicker.js"></script>
    <script type="text/javascript">
    *function hideDeleteButton(){*
    if(document.forms['editForm'].elements['editForm:cd_number'].value="")
    document.('viewForm:deleteEntry').style.visibility = "hidden";
    </script>
    </head>
    *<body onLoad="hideDeleteButton(),document.getElementById('editForm:cd_title').focus();">*
    <f:view>
    <h:form id="editForm" onsubmit="return validateDate()">
    <b><p align="center">CD Management</p></b>
              <% if(session.getAttribute("supervisor")==null)
         response.sendRedirect("../index.faces");
    %>
              <table width="100%">
              <tr><td valign="top" >
              <h:panelGrid columns="8">
              <h:commandLink id="com1" value="CD management" action="#{CDBean.getAllCDs}" title="CD management" immediate="true"/>
              <%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>
              <h:outputText value="||" id="use1r"></h:outputText>
              <h:commandLink id="Users" value="Users account" action="#{usersBean.viewAllAccounts}" title="Users account" immediate="true"/>
              <%} %>
              <h:outputText value="||" id="use13"></h:outputText>
              <h:commandLink id="pas" value="Change password" action="#{changePasswordBean.changePassword}" title="Change password" immediate="true"/>
              <h:outputText value="||" id="us2er"></h:outputText>
              <h:commandLink id="com2" value="Log out" action="#{logoutBean.logout}" title="Log out" immediate="true">
              </h:commandLink>
              </h:panelGrid>
              </td>
              <td valign="top" align="right" title="Logged in||<%=session.getAttribute("username") %>">Logged in||<font color="green"><%=session.getAttribute("username") %></font></td>
         </tr>
         </table>
    <hr>
    <b><h:outputText value="#{viewCDBean.form_title}"/></b><br><br>
    <div id="no"><h:outputText id="nocd" value="#{viewCDBean.cd_number}"/></div>
    <h:panelGrid columns="3">
    <h:outputText id="output112"/><h:inputHidden id="cd_number" value="#{viewCDBean.cd_number}"></h:inputHidden><h:outputText id="output117"/>
    <h:outputText id="output1" value="Title"/><h:inputTextarea id="cd_title" value="#{viewCDBean.cd_title}" rows="2" cols="40" required="true"></h:inputTextarea><h:message for="cd_title" style="color:red"/>
    <h:outputText id="output2" value="Contents"/><h:inputTextarea id="cd_contents" value="#{viewCDBean.cd_contents}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output18"/>
    <h:outputText id="output3" value="License key"/><h:inputText id="license_key" value="#{viewCDBean.license_key}" size="50"></h:inputText><h:outputText id="output19"/>
    <h:outputText id="output4" value="Vender company"/><h:inputText id="vendor_company" value="#{viewCDBean.vendor_company}" size="50"></h:inputText><h:outputText id="output20"/>
         <h:outputText id="output5" value="Vender name"/><h:inputText id="vendor_name" value="#{viewCDBean.vendor_name}" size="50"></h:inputText><h:outputText id="output21"/>
         <h:outputText id="output6" value="Vender contact no"/><h:inputText id="vender_contact_no" value="#{viewCDBean.vender_contact_no}" size="50"></h:inputText><h:outputText id="output22"/>
    <h:outputText id="output7" value="Remarks"/><h:inputTextarea id="remarks" value="#{viewCDBean.remarks}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output23"/>
    <h:outputText id="output8" value="Added by"/><h:inputText id="entered_by" value="#{viewCDBean.entered_by}" readonly="true"></h:inputText><h:outputText id="output24"/>
    <h:outputText id="output9" value="Last modified by"/><h:inputText id="last_updated_by" value="#{viewCDBean.last_updated_by}" readonly="true"></h:inputText><h:outputText id="output25"/>
    <h:outputText id="output10" value="CD/DVD"/>
    <h:selectManyListbox id="cd_dvd" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.CD_DVD}">
                   <f:selectItem itemValue="" itemLabel="DVD" />
                   <f:selectItem itemValue="0" itemLabel="CD" />
              </h:selectManyListbox>
    <h:message for="cd_dvd" style="color:red"/>
    <h:outputText id="output11" value="License/Open source"/>
    <h:selectManyListbox id="license_or_open_source" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.license_or_Open_source}">
                   <f:selectItem itemValue="1" itemLabel="License" />
                   <f:selectItem itemValue="0" itemLabel="Open source" />
              </h:selectManyListbox>
    <h:message for="license_or_open_source" style="color:red"/>
    <h:outputText id="output12" value="Serial key"/><h:inputTextarea id="serial_key" value="#{viewCDBean.serial_key}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output28"/>
    <h:outputText id="output13" value="Purchase date"/>
    <t:inputCalendar id="purchase_date" value="#{viewCDBean.purchase_date}"
                   renderAsPopup="true" renderPopupButtonAsImage="true" popupButtonImageUrl="cal.gif" title="pick a date"
                   alt="pick a date" popupDateFormat="dd-MMMM-yyyy">
              <f:convertDateTime type="date" dateStyle="default" pattern="dd-MMMM-yyyy"/>
         </t:inputCalendar>
         <h:outputText value="(dd-mmm-yyyy)" id="purchase_date2" style="color:red"/>
    <h:outputText id="output14" value="Purchase price"/><h:inputText id="purchase_price" value="#{viewCDBean.purchase_price}"></h:inputText><h:message for="purchase_price" id="output30"/>
    <h:outputText id="output15" value="Status"/><h:inputText id="status" value="#{viewCDBean.status}"></h:inputText><h:outputText id="output31"/>
    </h:panelGrid>
    <table>
    <tr>
    <td>               </td>
    <td>                </td>
    <td><%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>*<h:commandButton value="Delete" id="deleteEntry" action="#{CDBean.deleteFromCDMaster}" onclick="return insure()" />* <h:commandButton value="Submit" action="#{CDBean.modifyDetail}"/> <%}%></td>
    <td><h:commandButton value="Cancel" action="#{CDBean.getAllCDs}" immediate="true" onclick="setDateFieldBlank()"/></td>
    </tr>
    </table>
    </h:form>
    </f:view>
    </body>

    function hideDeleteButton(){
    if(document.forms['editForm'].elements['editForm:cd_number'].value="")
    document.z('viewForm:deleteEntry').style.visibility = "hidden";
    This script will not work

  • How to call a url using javascript

    Hi friends
    Iam a newbie i have a requirement
    i have to call some n number of URL using javascript i have all my url in one table .... i have to call all the url from that table ... and the output of the url should be saved in a flat file...The output of the url is in XML format... can any one please suggest me in doing my task ... and one more thing in which tool can i run the javascript coding...please give me ur suggestion and idea how it can be done ....
    My URL for example ll be like this as shown below wen i run this url it ll give me an XML format output
    HTTP://www.myserver.com/ev_api.action?user_id=<username>l&password=<password>&statevar=history&cutoff=<date>&id=<id>
    Thanks in advance
    Thiliban

    thilib wrote:
    In this OTN is there is javascript forum can please give me the link for it
    Thanks
    thilibJust to rephrase Walter's reply: there is no javascript forum in OTN!

  • Calling a URL using JavaScript even handler

    When I'm trying to call another URL using JavaScript, it doesn't work.
    I did following things,
    1).Created a Button
    2).In javascript event handler, I'm calling Javascript function doSearch()
    3). I wrote this function in Header Text Section of the Form Tex as below
    <SCRIPT language="JavaScript">
    function doSearch() {
    location="http://www.oracle.com"
    </SCRIPT>
    When I saw the source of that button, it shows me as following,
    --<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD>
    <INPUT TYPE="BUTTON" NAME="FORM_TO_CALL_CUSTOM.DEFAULT.CALL_REPORT.01" VALUE="CALL_REPORT" onClick="doSearch(); do_event(this.form,this.name,1,'ON_CLICK','');">
    </TD></TR></TABLE></TD></TR></TABLE>
    But, it doesn't call that URL.
    Plz. guide me.
    null

    Sorry, the code for the CALL_Report button is as follow.
    --<Tab BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD>
    <INPUT TYPE="BUTTON" NAME="FORM_TO_CALL_CUSTOM.DEFAULT.CALL_REPORT.01" VALUE="CALL_REPORT" onClick="doSearch(); do_event(this.form,this.name,1,'ON_CLICK','');">
    </TD></TR></TABLE></TD></TR></TABLE
    null

Maybe you are looking for

  • Problem using integrated WLS in jDeveloper 11.1.2.1.0

    Hey there, I got a problem using the integrated WLS from the jDeveloper 11.1.2.1.0. After trying to deploy an ADF Web Application on the integrated WLS, I get the following log message: LOG +[Waiting for the domain to finish building...]+ +[11:26:04

  • Windows 7 and my laser printer

    Hello I am using Windows 7 Home Premium 64 bit, and I have a problem with one my printers, the printer I have an issue with is a Laserjet 1020 and it will not print from any source on the PC, (Internet, word, Adobe PDF filesetc) the printer is instal

  • Problems using sprites in CM with Firefox

    Hi, Iu2019m tying to improve Portal Performance, improving XMLForms content, so decided to reduce the number of requests (images) using sprites, the problem is, for some reason, that I canu2019t understand, attribute u201Cbackgroundu201D or u201Cback

  • DVD device only records

    My brother has a Mac Pro 2,1 Quad Core and OSX 10.5.8  Recently the DVD player/recorder will not play back, but does record. Is this a hardware or software problem?

  • Sisco IPSec VPN password not saving.

    Is there a way to store my password in the vpn configuration? I'm using the default client and it keeps prompting my password every time it connects and is annoying.