Retaining BSP Page values with Javascript popup window

Hi Experts
We are using a customized BSP application for our performance
Management. To propmt users for saving their appraisal documents
before a session timeout,we used an Javascript popup message(alert
window). This window doesnot affect the BSP page in any way.(code
provided below)
Per changed requirement,we now have to retain the BSP page values once
the user clicks 'OK' on this javascript popup window. I used the page
refresh option with script. But this is erasing the earlier values.
Can anyone tell me,how i can holdback the BSP page values after the
user action on the popup window. If a piece of code is provided,it
would be greatly appreciated.
Thanks in Advance
Alan
Existing code for timeout popup
javascript code
function remind (){
var msg = "Your Session will expire in the next 10 minutes. Please
save your data.";
alert the msg(using alert box)
<%
data: v_rem type string.
DATA: port TYPE STRING.
data: l_timer type string.
port = request->get_header_field(
if_http_header_fields_sap=>server_port ).
DATA: services TYPE TABLE OF ICM_SINFO.
CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
DATA: wait TYPE STRING.
READ TABLE services ASSIGNING <service> WITH KEY service = port.
wait = <service>-KEEPALIVE - 10.
CONDENSE wait.
****Start Changes: Timeout
**l_timer = wait * 60 * 1000.
l_timer = 1 * 60 * 1000.
****End Changes
concatenate `'remind(` wait `)',` l_timer into v_rem.
%>
<htmlb:content design            = "DESIGN2002+DESIGN2003"
               sessionManagement = "TRUE"
               controlRendering = "SAP">
<htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
              disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a  parameter to setTimeout
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:32 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:34 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:35 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:37 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:38 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:39 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:44 AM
Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:46 AM

If the BSP page is refrehed, all the user input it sent back to the server. If you don't do anything special, the input is lost and not sent back to the client again. You can go to your controller class' DO_HANDLE_DATA to read the user input, and store it in the controller class to send it back to the client.
If you don't use controller classes, the equivalent would be onInputProcessing. A more advanced alternative would be to use MVC model binding, which would do most of the stuff automatically for you.

Similar Messages

  • Retaining BSP page chages with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design = "DESIGN2002+DESIGN2003"
    sessionManagement = "TRUE"
    controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
    disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a parameter to setTimeout

    duplicate post locked.
    Raja

  • Change page attribute with JavaScript

    Hi,
    hope someone can help.
    Is it possible to change a BSP page attribute with JavaScript??
    I have a JavaScript array with some serialnumbers. After push a save button, i want to save the array data into a page attribute.
    Some ideas?
    Regards Anton

    Hi,
    The only way of passing vars from JS to page attributes is submitting them via (hidden) values in a form or via params in an URL.
    Alternatively, you can try to let JS store things in a client cookie and let the BSP read that cookie.
    I didn't try that out yet though.
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • Syntax Error In Javascript Popup Window

    I'm wondering if anybody can help me out here with a curious bit of code. I'm using GoLive 9 to generate Javascript popup windows. They seem to work fine, but when I check the syntax I get these errors:
    Line 22 Unexpected PCDATA
    Line 24 The Corresponding start tag is missing
    Specifically, it references this code:
    </script>
    //-->
    </script>
    But every time I try to delete or modify those lines I lose the link to my css file and can't link it back. Does anybody out there with a whole lot more brains than me have a solution? Remember, I'm stupid, so if you have a fix I'd appreciate it being explained as simply as possible. Thanks. BTW here's the entire code for the Javascript popup page below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Adobe GoLive" />
    <title>1408</title>
    <script type="text/javascript"><!--
    <script type="text/javascript">
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    </script>
    //-->
    </script>
    <link href="../../../BAD/michaelthibault.com/css/agl-styles.css" rel="stylesheet" type="text/css" media="all" />
    <link href="../../../BAD/michaelthibault.com/css/java.css" rel="stylesheet" type="text/css" media="all" />
    <style type="text/css" media="all"><!--
    a:link { color: #838383; }
    a:active { color: #838383; }
    .dsR1 /*agl rulekind: base;*/ { width: 480px; height: 260px; }
    #media { position: absolute; top: 50px; left: 50px; width: 480px; height: 260px; z-index: 1; }
    #pause { position: absolute; top: 320px; left: 50px; width: 180px; height: 15px; z-index: 2; }
    #close_a { position: absolute; z-index: 3; top: 336px; left: 50px; width: 180px; height: 19px; }
    --></style>
    </head>
    <body>
    <div id="media">
    <object class="dsR1" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="204" width="480" align="left">
    <param name="enablejavascript" value="true" />
    <param name="bgcolor" value="#1a1a1a" />
    <param name="src" value="../../media/01_trailers/1408_tlr1r_h.480.mov" />
    <param name="autoplay" value="true" />
    <param name="controller" value="false" />
    <embed align="left" height="204" pluginspage="http://www.apple.com/quicktime/download/" src="../../media/01_trailers/1408_tlr1r_h.480.mov" type="video/quicktime" width="480" controller="false" autoplay="true" bgcolor="#1a1a1a" enablejavascript="true"></embed>
    </object></div>
    <div id="pause">double click in center to pause</div>
    <div id="close_a">
    <a href="javascript:self.close();">close window</a></div>
    <p></p>
    </body>
    </html>

    You have a script tag nested inside another script tag. Try changing this:
    < script type="text/javascript">< !--
    < script type="text/javascript">
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    < /script>
    //-->
    < /script>
    ...to this...
    < script type="text/javascript">< !--
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    //-->
    < /script>

  • JavaScript Popup Window

    Hi, has anyone done an example where you are at a page, say Page1.jsp that has a text box and a button, when you click on the button a javascript popup window must open(Page2.jsp). Page2.jsp has a text box and a button. The user will enter a value in the text box and when they click the button it must close the popup window and populate the text box on Page1.jsp with the value entered on Page2.jsp.
    Is this possible in JSF, I have tried but it doesn't work. On the popup windoow botton I have javascript code that saves the value in the session, submits the parent page and then closes the popup window.
    On the parent page init, I look for the value saved in the session var and set the textbox's text to it. When I read the value of the text box, it is right but on the screen the value does not show up at all,
    Does anyone have any idea, I can't seem to understand at all what could be wrong here.

    Hi,
    You can use this code:
    1. in the parent form you have a button and a text field named "textCallClass".
    2. in the popup window you have listbox and a button.
    When the button on the popup window is clicked, the selected list item is returned.
    In you popup window, button on_click :
                        <script>
                            function handleOK() {
                                var myform      = document.forms[0];
                                var listControl = myform['form1:listboxID'];
                                var openerField = window.opener.document.getElementById("form1:textCallClass");
                                if (listControl.selectedIndex == -1) {
                                    alert ("Please select an item from the list !");
                                    return false;
                                else {
                                    openerField.value = listControl.options[listControl.selectedIndex].value;
                                    window.close();
                        </script>In the parent form, button on_click:
                            function handleCallClassPopup() {
                                window.open("CallClassLookup.jsp", "Lookup", "width=250,height=300");
                            }A better way is to use the SessionBean to store and retrieve the data.
    Catalin Florean.

  • How to pass _ti value to javascript's window in Destination URI of Button

    How to pass _ti value to javascript's window in personalization's Destination URI of  a Button.
    In Self-Service HR, under my benefit's final confirmation page, I added a new button,
    when clicked would do a javascript alert saying "You have successfully completed your 2008 Benefit Enrollment Process". After clicking ok button, it takes to a printable page.
    Here is my code in the Destination URI field
    javascript:onClick=alert('You have successfully completed your 2008 Benefit Enrollment Process'); window.location='OA.jsp?page=/oracle/apps/ben/selfservice/enrollment/webui/EnrlConfPG&retainAM=Y&OARF=printable';
    The alert works but after clicking ok, I get error.
    Looks like it is expecting ti value in the URL and if I pass ti value like this, it works
    window.location='OA.jsp?page=/oracle/apps/ben/selfservice/enrollment/webui/EnrlConfPG&retainAM=Y&OARF=printable&_ti=800699419'
    But where do I get the real ti value? instead of hard-coded value, as ti is not constant and it changes for each login or session
    ERROR was:
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:597)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.ben.selfservice.enrollment.webui.ConfirmationCO.processRequest(ConfirmationCO.java:158)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.NullPointerException
         at oracle.apps.ben.selfservice.enrollment.webui.ConfirmationCO.processRequest(ConfirmationCO.java:158)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
         at oa_html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Please help!
    Thanks

    Burkepm,
    Two things:
    1)Don't use .showModalDialog api of MSDN library, because its only applicable to modal dialog pages in IE.This api won't work on any other browser. Moreover,u will need to add
    < base target="_self " />
    under <head> tag of pop up page. This is required because imodal window api of javascript provided in MSDN would not be able to recognize its parent window with out this.
    So,its not possible to close the pop up window and submit data to the base page form by submitting the page when we close the pop up.
    You can OAF js function for openeing the pop up window.
    2)Secondly, there is way to invoke js pop window function without setting profiles I have mentioned in my blog.This is basically through bound values, for ehich url is genaradted dybnamically, so there is no MAC key url validation.
    Here is the code u need to use this code in process request.:
    import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
    import oracle.apps.fnd.framework.webui.OABoundValueEmbedURL;
    OAButtonBean btn = (OAButtonBean)webBean.findChildRecursive("<button item id>");
    String page= "/xxx/oracle/apps/XXX/abc/webui/xxxPg&retainAM=Y";
    String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page;
    OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(btn,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+900+", height:"+500+"}, true); return false;");
    btn.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
    I hope this helps.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

  • Get values in a popup window into the livecycle forms

    Hi,
    Is it possible to get the values in a popup window in a livecycle form or assign the values in a poup window into livecycle form?
    Thanks

    Hi,
    There is a method in the Acrobat SDK called execDialog that can be called from within an XFA Form. You can pass values to and from a dialog using this method. It is a bit involved and therefore I strongly recommend AcroDialog, which is a plugin for Acrobat from Windjack Solutions (http://windjack.com/product/acrodialogs/).
    You can use this graphical interface to create dialogs and hten copy the script into your XFA Form.
    Hope that helps,
    Niall

  • Just downloaded Foxmarks new version (3.7.8) it freezes Firefox 3.6.6 with a popup window error notification - something about NoScript

    Just updated Foxmarks to the latest version (3.7.8). I'm running Firefox 3.6.6. It freezes Firefox with a popup window notifying me of some error with NoScript, I can't do anything except close Firefox with Windows (service pack 3) alt-ctrl-del

    http://forums.informaction.com/viewtopic.php?p=19671#p19671
    http://getsatisfaction.com/foxmarks/topics/update_3_7_8_breaks_xmarks_with_firefox_3_win7

  • Need help with a popup window problem

    I have this code within my certAppB.js page :
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    Which produces a popup windows that says:
    Submitting this form will begin the approval process
    You will not be able to come back to this form to edit it again
    Do you want to continue submitting this form?
    OK Cancel (these are 2 buttons)
    I want to change this to say:
    Submitting this form will begin the approval process. You will not be able to change this form once submitted. You also agree that the following statement is true and correct to the best of your knowledge and belief:
    "I, [User Name], hereby certify and state on behalf of [Company Name] that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.�6314, as applicable, including authorized waivers, as they currently exist on [Date]."
    Do you want to continue submitting this form?
    OK           Cancel
    So I have to pull the users [User Name], [Company Name], and the [Date].
    On the approverView.jsp login page ( which is the first login page users see after loggin) it shows
    the users full name, so I nabbed the code from that page:
    <body>
    <jsp:include page="logo.jsp" />
    <jsp:include page="unav-navigate.jsp" />
    <table width="100%" border="0" cellspacing="0" cellpadding="5" class="info">
    <tr>
    <td width="25%" valign="top">
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="welcome">Welcome
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <span class="sm">If you are not this person, please click <html:link styleClass="norm" href="/fake_name/logoff.do">here</html:link>.</span></td>
    <td width="2%"> </td>
    <td width="73%" valign="top"><jsp:include page="instruction.jsp" /></td>
    </tr>
    </table>
    and made this code out of it to pull the username,companyname:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    This is the userView.java page that is referanced :
    * Created on Mar 28, 2003
    * To change this generated comment go to
    * Window>Preferences>Java>Code Generation>Code Template
    package org.fake.name.view;
    import java.io.Serializable;
    import java.util.List;
    import org.gama.cafs.businessobjects.TorqueDb;
    * @author chris
    public class UserView implements Serializable {
         private int userId;
         private int memberId;
         private int companyId;
         private String role;
         private String firstName;
         private String lastName;
         private String companyTitle;
         private String emailAddress;
         private String phoneNumber;
         private String companyName;
         private String address1;
         private String address2;
         private String address3;
         private String city;
         private String state;
         private String province;
         private String postalCode;
         private String countryName;
         private List productTypes = null;
         private List productTypeAcronyms = null;
         private List productTypeIds = null;
         private List tradeNameIds = null;
         private List tradeNames = null;
         private TorqueDb torqueDb = null;
         public UserView() { }
         * @return String
         public String getAddress1() {
              return address1;
         * @return String
         public String getAddress2() {
              return address2;
         * @return String
         public String getAddress3() {
              return address3;
         * @return String
         public String getCity() {
              return city;
         * @return String
         public String getCompanyName() {
              return companyName;
         * @return String
         public String getCompanyTitle() {
              return companyTitle;
         * @return String
         public String getCountryName() {
              return countryName;
         * @return String
         public String getEmailAddress() {
              return emailAddress;
         * @return String
         public String getFirstName() {
              return firstName;
         * @return String
         public String getLastName() {
              return lastName;
         * @return int
         public int getMemberId() {
              return memberId;
         * @return String
         public String getPhoneNumber() {
              return phoneNumber;
         * @return String
         public String getPostalCode() {
              return postalCode;
         * @return Set
         public List getProductTypes() {
              return productTypes;
         * @return String
         public String getProvince() {
              return province;
         * @return String
         public String getRole() {
              return role;
         * @return String
         public String getState() {
              return state;
         * @return int
         public int getUserId() {
              return userId;
         * Sets the address1.
         * @param address1 The address1 to set
         public void setAddress1(String address1) {
              this.address1 = trimString(address1);
         * Sets the address2.
         * @param address2 The address2 to set
         public void setAddress2(String address2) {
              this.address2 = trimString(address2);
         * Sets the address3.
         * @param address3 The address3 to set
         public void setAddress3(String address3) {
              this.address3 = trimString(address3);
         * Sets the city.
         * @param city The city to set
         public void setCity(String city) {
              this.city = trimString(city);
         * Sets the companyName.
         * @param companyName The companyName to set
         public void setCompanyName(String companyName) {
              this.companyName = trimString(companyName);
         * Sets the companyTitle.
         * @param companyTitle The companyTitle to set
         public void setCompanyTitle(String companyTitle) {
              this.companyTitle = trimString(companyTitle);
         * Sets the countryName.
         * @param countryName The countryName to set
         public void setCountryName(String countryName) {
              this.countryName = trimString(countryName);
         * Sets the emailAddress.
         * @param emailAddress The emailAddress to set
         public void setEmailAddress(String emailAddress) {
              this.emailAddress = trimString(emailAddress);
         * Sets the firstName.
         * @param firstName The firstName to set
         public void setFirstName(String firstName) {
              this.firstName = trimString(firstName);
         * Sets the lastName.
         * @param lastName The lastName to set
         public void setLastName(String lastName) {
              this.lastName = trimString(lastName);
         * Sets the memberId.
         * @param memberId The memberId to set
         public void setMemberId(int memberId) {
              this.memberId = memberId;
         * Sets the phoneNumber.
         * @param phoneNumber The phoneNumber to set
         public void setPhoneNumber(String phoneNumber) {
              this.phoneNumber = trimString(phoneNumber);
         * Sets the postalCode.
         * @param postalCode The postalCode to set
         public void setPostalCode(String postalCode) {
              this.postalCode = trimString(postalCode);
         * Sets the productTypes.
         * @param productTypes The productTypes to set
         public void setProductTypes(List productTypes) {
              this.productTypes = productTypes;
         * Sets the province.
         * @param province The province to set
         public void setProvince(String province) {
              this.province = trimString(province);
         * Sets the role.
         * @param role The role to set
         public void setRole(String role) {
              this.role = trimString(role);
         * Sets the state.
         * @param state The state to set
         public void setState(String state) {
              this.state = trimString(state);
         * Sets the userId.
         * @param userId The userId to set
         public void setUserId(int userId) {
              this.userId = userId;
         * @return List
         public List getProductTypeAcronyms() {
              return productTypeAcronyms;
         * Sets the productTypeIds.
         * @param productTypeIds The productTypeIds to set
         public void setProductTypeAcronyms(List productTypeAcronyms) {
              this.productTypeAcronyms = productTypeAcronyms;
         public List getProductTypeIds() {
              return productTypeIds;
         public void setProductTypeIds(List productTypeIds) {
              this.productTypeIds = productTypeIds;
         private String trimString(String str) {
              String tmp = null;
              if (str != null)
                   tmp = str.trim();
              else
                   tmp = str;
              return tmp;
         public List getTradeNameIds() {
              return tradeNameIds;
         public List getTradeNames() {
              return tradeNames;
         public void setTradeNameIds(List list) {
              tradeNameIds = list;
         public void setTradeNames(List list) {
              tradeNames = list;
         public TorqueDb getTorqueDb() {
              return torqueDb;
         public void setTorqueDb(TorqueDb db) {
              torqueDb = db;
         public int getCompanyId() {
              return companyId;
         public void setCompanyId(int i) {
              companyId = i;
    Question:
    How do I insert the code I assembled:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    INTO the function:
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    So that the popup window will show the [username], [CompanyName], [Date]. I can�t find any doc�s on how to insert logic into a function with str�s.
    Any help would be very much appreciated. Thanks in advance.
    Applications used by me: Sun solaris 8 server, Tomcat 4.1.24, pulling from postgresql 7.3, and I edit in Eclipse 2.11.

    These two tags:
    <logic:present name="UserContainer" property="userView" scope="session">
    </logic:present>
    surround things you only want to happen if there is a userView object present.
    This tag:
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    is replaced with the value of userView.getFirstName().
    So:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    becomes:
    User Jim Steinberger !
    if the userView object is present and firstName == Jim and lastName == Steinberger.
    To insert those values into your JavaScript function:
    <logic:present name="UserContainer" property="userView" scope="session">
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "";
    str5 = "I, <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>, hereby certify and state on behalf of <bean:write name="UserContainer" property="userView.companyName" scope="session"/> that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n\n" + str4 + "\n" + str5 + "\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    </logic:present>
    Should become:
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "I, Jim Steinberger, hereby certify and state on behalf of Dynamic Edge, Inc. that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n" + str4 + "\n" + str5 + "\n\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    after being processed by Tomcat and Struts. (Note: the function will not appear if userView is missing)
    By the way, you might be missing the closing bracket to function AppSubmit() { which might throw a JavaScript error. Just FYI :)
    Good luck!
    Jim Steinberger
    [email protected]

  • Passing Value from a Popup Window Back to the Parent Window

    I am using JSF. I try to pass a value that is entered by users in the popup window back to a text field in the parent window.
    quote: document.forms[ ].elements[ ] is null or not an object.
    The relevant code snippets are shown below. The screen1.jsp is the parent window:
             <script language="JavaScript1.1">
               function doPopup(source)
                    popup = window.open("externalFilePopup.jsp",
                        "popup",
                         "height=300,width=200,toolbar=no,menubar=no,"                    + "scrollbars=yes");
                    popup.openerFormId = source.form.id;
                    popup.focus();
               </script>
    <h:outputText value="Enter the external system file name"/>        <h:inputText value="#{dataManagementBean.ip}" size="18" />
    <h:commandButton value="..." onclick="doPopup(this); return false;" />
    ..........The externalFilePopup.jsp is the popup window:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].elements[ formId + ":ip" ].value = value;
                   window.close();
            </script>
         <h:outputText value="IP Address: "/>
         <h:inputText size="25" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('#{dataManagementBean.ip}');"/>
            .......... The script error occurs when I click on this OK button.
    Please point out the mistakes in my code. Thank you.

    I have made some modifications to the code in the popup window. The error reported in my previous posting is gone. But, I still have several problems:
    1. syntax error in the popup window jsp page: line 45, char 21, syntax error, ..., Do you want to continue running script on this page?2. The popup window does not close after I click on the OK button that I coded in the popup window jsp.
    3. The value that I entered in the popup window eventually gets passed back to the text field in the parent window only if I re-run the application.
    The relevant JavaScript code snippets are:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].form[ formId + ":ip" ].value = value;
                   window.close();
            </script>
                                       <h:outputText value="IP Address: "/>
         <h:inputText size="25" id="ip" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('ip'); return=false;"/>
    ......What are the mistakes that I made?

  • Javascript popup window for updatable report

    We have an updatable report and would like to have a pop-up window on one of the fields. What parameters do we pass to the pop-up so it can return the selected value to the correct row and column in the would report? What is the code in the pop-up to set the correct row/column in the updatable report?
    We are familiar with the process for form elements, but not for updatable reports.

    Hello,
    YOu just have to save the current working form field as a variable. So the popup javascript would look something like this.
    var gReturnElement;
    function customPopUp(pThis){
    gReturnElement = html_CascadeUpTill(pThis,'TD').getElementsByTagName('INPUT')[0];
    /*popup code here*/
    Then from the popup window you would use something like
    function customSetValue(pText){
    window.opener.gReturnElement.value = pText
    window.close();
    Is there a specifc reason you can't use the built in ones? It would be much easier for you to mantain compared to custom code.
    Carl
    Message was edited by:
    Carl Backstrom

  • Call an applet in other page html with javascript

    Hi
    I found many exemples with javascript, to call applet method in the same html page, but never cross pages
    There is a way to call with javascript an applet in other window/page?
    Thanks

    By other WORKSPACE do you mean another location (as defined in dads.conf)?<br><br>Either way, you just have to make the url relative or just hard code the entire path. If location 1 is pls/htmldb and location 2 is pls/htmldb_two then all you need to do is:<br><br>
    owa_util.redirect_url( '/pls/htmldb_two/f?p=TLL:3:&SESSION.::::F119_TAB_CONDITION:1');<br>
    that is if I understood your question correctly...<br><br>
    chet<br>

  • UIX Tip - maybe of use to somebody - confirm Delete operation with Javascript popup

    It was easier than I thought it would be to convert my Javascript Delete Confirmation message that I had developed for my JSP over to UIX:
    By default UIX would generally do something along the lines of:
    <submitButton text="Delete" ctrl:event="delete" />
    which generates the following html:
    <a href="# onclick="submitForm('viewForm',1,{'event':'delete');return false">
    If you want to popup a Javascript window asking the user to confirm the operation you can do:
    <submitButton text="Delete" ctrl:event="delete">
    <boundAttribute name="onClick">
    <fixed javaType="string">javascript:if (confirm("WARNING: You will not be able to revert this operation. This operation will also fail if there are dependant objects!")){return true;}else{return false;}</fixed>
    </boundAttribute>
    </submitButton>
    this will generate the following html:
    <a href="#" onclick="return _chain('javascript:if (confirm(&quot;WARNING: You will not be able to revert this operation.  This operation will also fail if there are dependant objects!&quot;)){return true;}else{return false;}','submitForm(\'viewForm\',1,{\'event\':\'delete\'});return false',this,event,true)">
    Matt.

    This is a totally supported technique, and a good one.
    To pick at nits, you don't need to start "onClick" handlers with "javascript:". Save yourself a whopping
    11 bytes by trimming that off. With a bit of slyness, you could boil this down to:
    <boundAttribute name="onClick">
       <fixed javaType="string">return confirm("WARNING: You will not be able to revert this operation.  This
    operation will also fail if there are dependant objects!");</fixed>
    </boundAttribute>... or, just extract that into a script, like:
      <script><contents>function makeSure()
      return confirm("WARNING: You will not be able to revert this operation.  This operation will also fail
    if there are dependant objects!");
    }</contents></script>
      <submit text="Delete" ctrl:event="delete" onClick="return makeSure()"/>

  • Change TextView value with Javascript

    Hello,
    I'm trying to find a way of changing the value of an HTMLB TextView on the client side with javascript.
    Do you know how to do that ? Cannot work it out...
    Many thanks
    Nicolas

    Hi,
    this can be a bit tricky, because you have to know, how to access the element. that means you need an unique id or an absolute position of the TextView-element
    if you can see, how to access the specific element in your client-pagesource, a possible javascript could be:
    document.getElementById("<id of element>").firstChild.nodeValue="My new Text"
    or access by name/count of the element:
    document.getElementsByName("<name of element>")[#position of occurance].firstChild.nodeValue="My new Text"
    kr, achim

Maybe you are looking for

  • Safari 5.1.6 won't open on Lion 10.7.4

    Process:         Safari [542] Path:            /Applications/Safari.app/Contents/MacOS/Safari Identifier:      com.apple.Safari Version:         5.1.6 (7534.56.5) Build Info:      WebBrowser-7534056005000000~6 Code Type:       X86-64 (Native) Parent

  • JMS Adapter Testing

    Hi Team I am using the JMS adapter as a sender and the idoc as receiver. i want to test the  End to End scenario. i am using the Transport Protocol as " Access JMS Provider with JNDI". I have been provide by a program which helps to write the xml mes

  • EventDispatching Continously on Rollover RollOut Events

    I have a simple mxml component tht extends Canvas. When I try and show the border / focus skin on a rollover / rollout event for my backgroung image the rollover and rollout event get fired continously. What is triggering the roll out event ?. I have

  • Adobe AIR update has no digital signature. Is this normal?

    I installed Adobe Air and it says it needs to update. But when I click Update, my firewall says there is no digital signature. So, I don't kow if this Adobe product is OK. Every time, when I surf the Web, I get an Update Adobe message. I don't know i

  • Albums sorted alphabetically by song title when searching on ipod classic

    I understand that the default for the search feature is to sort songs within each result alphabetically - for instance, you go to "Search" type "Tool" and Select "Tool." Now you see a list of albums by the band, and you can select the one you want, b