How to call javaScripts in pfr() of CO

HI all
I want to call a script in prf() of CO
that script is already at same page
how can I call?

hi,
you can inject the javaScript in as follow for example you have TextIputField with enternal name EnterValue. write the following code at processRequest() method.
String javaS = "alert(\"JavaScript in Action \\n\");\n";
OAMessageTextInputBean EnterValue = (OAMessageTextInputBean)webBean.findChildRecursive("EnterValue");
EnterValue.setOnBlur(javaS);
this will show an alert when user tab out of the current field.
Note: in processFormRequest() you can't call beans setter methods.
Regards,
Haroon.
Edited by: Haroon Afridi on Apr 28, 2011 10:00 PM

Similar Messages

  • How to call javascript function from PL/SQL procedure

    Can anybody advice me how to call javascript function from PL/SQL procedure in APEX?

    Hi,
    I have a requirement to call Javascript function inside a After Submit Process.
    clear requirement below:
    1. User selects set of check boxes [ say user want to save 10 files and ticks 10 checkboxes]
    2. user clicks on "save files" button
    3. Inside a After submit process, in a loop, i want to call a javascript function for each of the file user want to save with the filename as a parameter.
    Hope this clarify U.
    Krishna.

  • Please tell me how to call javascript(.js) in my vb exe for adobe illustrator cs.

    Could you please please give some sample codings "how to call javascript in my vb exe for adobe illustrator cs". I called through doscript in my vb program, but some time it throws an error. If i run the script directly in illustrator it does not throws error. So Please advice me how to solve this problem.
    Thanks in advance,
    Prabudass E

    I'm not sure if this helps but it's from the CS4 scripting examples:
    Set appRef = CreateObject("Illustrator.Application")
    Set fileSystemObject = CreateObject("Scripting.FileSystemObject")
    ' Creating a folder browser in VBScript can be a problem (relying on either Windows API calls
    ' or use of ActiveX controls which may not be present on a given system). Instead, use
    ' Illustrator's built-in JavaScript to display a file browser. DoJavaScript can return a value,
    ' in this example it's the platform specific full path to the chosen template file.
    doJavaScript = "var templateFile = File.openDialog(""Select CalendarTemplate.ai file:""); if (templateFile) filePath = templateFile.fsName;"
    myFilePath = appRef.DoJavaScript(doJavaScript)

  • How to call javascript function with dynamic data in display tag

    Hi,
    Iam new to pagination concept. Iam using display tag to display rows in jsp by strtus.
    I have a problem when calling the javascript function using ahref in attribute in display tag.
    <bean:define name="form1" property="EditDetails.List" id="ListDisplay"/>
    <display:table name="pageScope.ListDisplay" cellpadding="0" cellspacing="1" pagesize="10" partialList="false" size="listSize" requestURI="">
    <display:column property="poNo" href='javascript:searchEditDetails("./submitOrder.do? actionID=getMISLoadEdit&poNumberSel=<%=((com.po.bean.EditDetails)poListDisplay).getNo()%>&statusIdSelected=<%=((com.po.bean.EditDetails)ListDisplay).getStatusId()%>")'
    title="Number"/>                         
    <display:column property="strDate"title="Date" />
    <display:column property="orderValue"title="Order Value(INR)"/>
    <display:column property="stringRequestedDeliveryDate"title="Suggested Delivery Date"/>
    <display:column property="statusDescription" title="Status" />
    </display:table>
    The above code display the data in row format is working fine when I click the No It thow javascript error and its not redirecting to the other page.
    When I try this with ordinary struts its working fine the code is:
    <logic:iterate id="polist" name="Form1" property="EditDetails.List" indexId="i" type="com.bean.EditDetails">
    <tr>
    <td ><a href="javascript:searchEditDetails("./submitOrder.do?actionID=getMISLoadEdit&NumberSel=<%=((com.bean.EditDetails)polist).getNo()%>&statusIdSelected=<%=((com.bean.EditDetails)polist).getStatusId()%>")"><html:hidden name="polist" property="No" write="true" /></a>     </td>
    <td><html:hidden name="polist" property="strDate" write="true" /></td>
    <td><html:hidden name="polist" property="orderValue" write="true" /></td>
    <td><html:hidden name="polist" property="stringRequestedDeliveryDate" write="true" />     </td>
    <td><html:hidden name="polist" property="statusDescription" write="true" /></td>
    </tr>
    </logic:iterate>
    Please help me how to call javascript with dynamic data.
    Thanks in advance

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • How to call javascript function?

    Hi,
    How to call javascript function for SAP button
    control onclick event?
    Thanks in advance.

    Hi Sundar,
      u can call java script  in design mode.
      Add this code in ur design part inside body and call the function as
    <sap:button id="a" onSelect="javascript:go();"
    Add inside body:
      <script language="javascript>
    function go(){
    alert("hai");
      </script>
    Regards,
    Vinoth.M

  • How to call javascript function in Flash

    Please help...
    I have a site that run multiple of domain for example
    Domain (A): raymond.com
    Domain (B): raymond.ca
    The problem is this.. when (B) html page load the flash file
    that locate at (A) it load but non of the buttons work which call
    javascript function using getURL("javascript:showpopup()"); But it
    work fine if all reside on the same domain,eg( (A) html page load
    flash file form (A)). Anyone know how to solve this other than
    create a set of flash files on (B).
    Regards,
    Raymond

    http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=Flash_MX_2004&file=00001750.html

  • How to call javascript file in windows?

    I developed javascript for automated pdf files. But i don't know how to call that javascript file from outside of acrobat. Kindly advice me the various way to use that script. This is for acrobat 8.0.

    You can place Acrobat JavaScripts in various form elements, document actions, documents, and the application folder or user application folder. See the Acrobat JavaScript API Reference and Guide fo rmore information, http://www.adobe.com/devnet/acrobat/javascript.html .
    From within Acrobat's JavaScript's debugging console, one can use the following code to locate the JavaScript folders used by Acrobat/Reader:
    function JSInfo() {
    /* define function to report JS information */
    // some basic system information
    console.println(app.viewerType + ' ' + app.viewerVersion + ' is running on ' + app.platform);
    // user level script folder
    try {
    var userJS = 'User level JS folder: ' + app.getPath("user","javascript");
    } catch(e) {
    var userJS = "User has not defined use JS folder level scripts";
    console.println(userJS);
    // application level script folder
    try {
    var appJS = 'Application level JS folder: ' + app.getPath("app","javascript");
    } catch(e) {
    var appJS = "There are no defined application level JS folder level scripts";
    console.println(appJS);
    return;
    } // end of JSInfo function
    JSInfo(); // call the function

  • How to call javascript function & action method on clicking jsf  button?

    I have one jsf custom button. I am checking client side validations in mail by calling javascript function & also sending mail by calling action method of a bean which will execute at server side for onclick event of that button. Because of this when I click on that button its calling both javascript function and action method. So even though validations failed its sending mail. How can I overcome this problem?? Please help me....

    I am asking regarding commanLinks in jsf. I have the following code block in jsf. Even though mailSentMessage('true'); returns false, its calling action="#{emailObjectAction.sendEmail}" method. thats why I got that doubt. try the following code.
    <h:commandLink id="mailBtn123Send"      onclick="return mailSentMessage('true');" value="send mail"     action="#{emailObjectAction.sendEmail}">          
    </h:commandLink>

  • How to call javascript function in back bean of jsf

    hi,
    i am trying to call java script function in back bean but not done. Is there any code for call javascript function in bean file.

    Java runs at server side.
    JSF produces HTML output.
    Server sends HTML output to client.
    Java stops running.
    HTML runs at client side.
    JS starts to run in HTML.
    Clear? Java is a server side language. JS is a client side language. To run JS using JSF, simply print it out to the HTML so that it get invoked when the HTML runs.

  • How to call javascript function when form load[like onload="fun()" in html]

    I have to call javascript function at the time of iview is loading. I am not able use onload event which is not working in SAP Portal environment. Please suggest me any other alternative to call the function at the time of iview is loading. I have to set some properties when form is loading.

    I will explain my scenario correctly
    Let us take two pages
    1. Main Page (A)
    2. Child page (B)
           I have displayed records in tableview and each having checkbox and two buttons "print" and "viewDetails"  at down in page A. If I clicked "print" button the records which i have selected checkboxes details will be displayed in new window( page B). In page B i have given this following code
      <script language="javascript">
          window.opener.setTarget('Search');
      </script>
    setTarget() function is in page A.
    function setTarget(opt) {
      if(opt=='print')
         opt="";     
         document.<%=strFormControl%>.target="_blank";
       else
            document.<%=strFormControl%>.target="_self";
    This code is executing after the content of all records details displayed.
    My condition is If i click print button new window is opened and details are displaying. And before displaying content in new page B (means after opened new window) if i click on "viewDetails" button that is also opening new window because <script> code is not executed not yet. but it should display in same window when i click "viewDetails" button.

  • How to call javascript from java application

    How can we call a function written in javascript from java application (core java not applet)? How will java identify javascript?
    Is there any such options ?

    Try creating a page called launcher.html (for example). That does this:
    <html>
    <head>
    <script language="javascript">
    windowHandle=window.open("http://www.javasoft.com", "", "height=700,width=1000,status=no,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,top=5,left=5");
    </script>
    </head>
    </html>Now you launch IE (or whatever) with this page using the Runtime class. After x seconds (after the second window has been launched) try killing the process. Hopefully it will kill the original window you opened and not the window you popup (the one without toolbars etc)
    It might kill both windows but I can't be bothered to test it. If it does you'll have to try and find a workaround.

  • How to call javascript using applescript in InDesign cs2 Mac

    Hi,
    I need to integrate javascript with my apple script??? how to use it???please help me...i need it immediately..........

    Hi Andrew,
    Here is an example for you – a snippet from my script:
    global myBridgeLabel
    -- function that runs on clicking the button in adobe script studio project
    on clicked theObject
    if name of theObject is "b1" then
    set processName to "Started working"
    set myBridgeLabel to "Red"
    set myLabel to 1
    else if name of theObject is "b2" then
    set processName to "Started doing this"
    set myBridgeLabel to "Green"
    set myLabel to 2
    else if name of theObject is "b3" then
    set processName to "Started doing that"
    set myBridgeLabel to "Yellow"
    set myLabel to 3
    else if name of theObject is "b4" then
    set processName to "Finished doing this"
    set myBridgeLabel to "Blue"
    set myLabel to 4
    else if name of theObject is "b5" then
    set processName to "Finished doing that"
    set myBridgeLabel to "Purple"
    set myLabel to 5
    end if
    tell application "Adobe InDesign CS2"
    set mydocument to active document
    set myDocumentPath to full name of mydocument
    set workerName to "Kasyan"
    tell metadata preferences of mydocument
    set theDate to current date
    set myWeekday to weekday of theDate as string
    set myDenNedeli to my convertWeekday(myWeekday)
    set myRecord to (processName & " – " & workerName & " – ") & myDenNedeli & " " & text 1 thru -4 of time string of theDate & " \r"
    set myHistory to get property namespace "http://ns.adobe.com/photoshop/1.0/" path "History"
    set property namespace "http://ns.adobe.com/photoshop/1.0/" path "History" value myHistory & myRecord
    end tell
    set myJavaScript to "var myLabel =\"" & myBridgeLabel & "\"; app.activate(); var bt = new BridgeTalk; bt.target = \"bridge\"; myScript = 'app.displayDialogs = \"none\"; var t = new Thumbnail (File (\"" & myDocumentPath & "\")); var mdata = t.metadata; mdata.namespace = \"http://ns.adobe.com/xap/1.0/\"; mdata.Label = \"' + myLabel + '\";'; bt.body = myScript; bt.send();"
    do script myJavaScript language javascript
    In this javascript I use pares of single and double quotes.
    The main java script – myJavaScript – (inside double quotes) contains another java script – myScript – (inside single quotes) which runs in Bridge via BridgeTalk.
    I also put variables from AppleScript into JavaScript by using two pares of double quotes – the outside pare I escape with slashes:
    set myBridgeLabel to "Red" -- a variable I defined in AppleScript
    set myJavaScript to "var myLabel =\"" & myBridgeLabel & "\"; app.activate();
    -- the contents of myBridgeLabel variable now becomes part of the JavaScript
    Kasyan

  • How to Call JavaScript using SDK [CS4] - Reg.

    Dear All,
    Here I am successfully run the javascript usig SDK [CS3] coding. But I have some slight modificate then this is not working. Please kindly help me.
    I'm using the SDK Code is :
    CS3:virtual ErrorCode RunFile(const IDFile& idFile, bool16 showErrorAlert = kTrue,
    bool16 invokeDebugger = kFalse) = 0;
    Call to RunFile:
    ErrorCode err = scriptRunner->RunFile(scriptFile, kFalse, kTrue);CS4:virtual ErrorCode RunFile(const IDFile& idFile, const RunScriptParams& params) = 0;
    Call to RunFile:
    RunScriptParams params( scriptRunner);
    params.SetInvokeDebugger(kTrue);
    ErrorCode err = scriptRunner->RunFile(scriptFile, params);
    In CS3:
    PMString jsFullPath("C:\\WINDOWS\\MacID\\BIN\\sample.jsx"); // a path to my java script file
     do {  
    const IDFile outFile(jsFullPath); InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss));
    ASSERT( scriptManager ) ;
    InterfacePtr<IScriptRunner> scriptRunner(scriptManager,UseDefaultIID());
    ASSERT( scriptRunner ) ;
    if(scriptManager) {
    InterfacePtr<IScriptRunner>scriptRunner(scriptManager,UseDefaultIID());
    ErrorCode err = scriptRunner->RunFile(outFile, kTrue, kFalse); 
    }while(kFalse);
    This above coding is working fine... in Adobe InDesign CS3.
    But I have to change the code as per the CS4 SDK, but this is not working. See the below code:
    PMString jsFullPath("C:\\WINDOWS\\MacID\\BIN\\sample.jsx"); // a path to my java script file
     do {  
    const IDFile outFile(jsFullPath); InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss));
    ASSERT( scriptManager ) ;
    InterfacePtr<IScriptRunner> scriptRunner(scriptManager,UseDefaultIID());
    ASSERT( scriptRunner ) ;
    if(scriptManager) {
    InterfacePtr<IScriptRunner>scriptRunner(scriptManager,UseDefaultIID());
    RunScriptParams params( scriptRunner);
    params.SetInvokeDebugger(kTrue);
    ErrorCode err = scriptRunner->RunFile(outFile, params);
    }while(kFalse);
    I having the doubt above the below line:
    RunScriptParams params( scriptRunner);
    params.SetInvokeDebugger(kTrue);
    ErrorCode err = scriptRunner->RunFile(outFile, params);
    I used the above line code in CS4 SDK, and run the CS4 Application then Immediatly CS4 Application is quited.
    Because of the code is throwing "R6025 - pure Virutual Function call"... like that.
    Here I have attached the 3 Error JPG files.
    Please kindly any one can help me!, B'coz of I'm struggle to get the answer.
    Anybody can give me the answer then I will appriciate!!
    Thanks & Regards
    T.R.Harihara SudhaN

    Dear Dirk
      Many thanks for quick reply.
    But Still I am not getting the answer, So please give me the correct coding;
    PMString jsFullPath("C:\\WINDOWS\\MacID\\BIN\\sample.jsx"); // a path to my java script file
    do {  
    const IDFile outFile(jsFullPath);
    if(scriptManager)
    InterfacePtr<IScriptRunner>scriptRunner(scriptManager,UseDefaultIID());
    RunScriptParams params( scriptRunner);
    params.SetInvokeDebugger(kTrue);
    ErrorCode err = scriptRunner->RunFile(outFile, params);
    InterfacePtr<IScriptManager> scriptManager(Utils<IScriptUtils>()->QueryScriptManager(kJavaScriptMgrBoss));
    ASSERT( scriptManager ) ;
    InterfacePtr<IScriptRunner> scriptRunner(scriptManager,UseDefaultIID());
    ASSERT( scriptRunner ) ;
    }while(kFalse);
    This old coding only, So please Modify my coding and send me.... please I need your help!!!
    Thanks & Regards
    T.R.Harihara SudhaN

  • How to call javascript to map to a perticular field in the XSLT

    Hi all,
    Is it possible to map to my target a file with the java script ?
    For eg.I wish to Display the current dat eand time of the system.
    For this I wrote a java script which displays the date and time .
    Please let me know how to use the same to mapp to the target.
    Thanks,
    Srinivasa

    HI
    see this link
    Dynamic folder - in payload Multiple Comm Channels to 1 Receiver, all same interface & mappings
    change accordingly for file name
    Regards
    Chilla

  • How to call javaScript function in the form from Action:Tab buttion in workspace

    Hi,
    I want to trigger JavaScript function that I have written in form from Action: buttons in workspace user's account.
    Is there any way that if i hit a button on action bar, it fire a javascript function.
    Reason is: I dont want to place button on the form to perform any action on the form. I want to take control of the form from these buttons. Like submit, edit a form, etc, etc..
    Please let me know if i couldnt explain it properly.
    regards
    Sunil

    Sunil, you want to look at the "Customizing the LiveCycle® Workspace ES User Interface" document at http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf.  The workspace is a Flash component.  For ES4 there's an option to run the workspace in HTML5 which might be more productive long-term.

Maybe you are looking for

  • PI 711 Installation: Loading of 'SAPNTAB' import package: error but no log

    Hello, I'm perfromong an installation of a SAP PI 7.11 ystem on windoows Server 2003 and Oracle 10.2 . I've perfromed the installation of the DEV system without particular issue. But now when tryning to install the QAS system , I can't finish the ins

  • Customer not extended to sales area

    Hi experts, Even though I have extended a particular customer to the given sales area, division and distribution channel, when I run the program I still get the error saying "Customer not extended to sales area" . What could be the reason for this? I

  • Time stamp a file

    Hi I have a text file that I need to time stamp, however I want to appear in the following format let us say it is 9:28 p.m Aug 10, 2003 So my file name should appear like 20030810_09_28.txt is there a way to accomplish this?? please let me know...ma

  • ITunes Music Progress Bar Fails to Show Time Remaining

    I use iTunes for Windows. Suddenly, in the last two weeks, the progress bar on my iTunes screen has quit showing time remaining on a tune on the right-hand side of the bar. Throughout the tune, it shows only the full time of the tune. How can I chang

  • Quick question about sim transfer

    Hi all, I have a quick question and hopefully one of you guys would be able to help me. My friend purchased his 3g iphone today and hes giving me his old iphone. I currently have a blackjack and I wanted to take the sims card from the blackjack and p