Calling PageProcess in Javascript

how do i call a page process in a javscript function .. like in javascript i need to do the validations& in the process i need to write a select query there .. how do i do it .. inafct i have no i dea of writing a process too ..can i get any help
Regards
Tejasvi
Message was edited by:
user579296

Sorry, no sollution there. I had the same problem and thought that the calls to
the applet did not work at all. Found out it is just verry slow on the first call (mozilla)
It seems to be a bug:
http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4968638

Similar Messages

  • How can I call a custom javascript function when clicking on cfgrid cell.

    I would like to call a custom javascript function when
    clicking on a cell in an cfgrid (of html format). The closest thing
    I can find is to use the HREF="" attribute, but it doesn't seem to
    work with javascript inside it.
    Simple example:
    <cfgridcolumn name="Foo" header="Foo"
    href="javascript:customFunction(#ID#);">
    Do I need to tap into the underlying Ext JS funtionality? If
    so, where can I start?
    Thanks!

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Applet with JFilechooser called from a Javascript blocks paint messages

    Hi,
    I am trying to create an applet that can:
    1) be called from a Javascript
    2) displays a file selection dialog for multi-selecting files
    3) returns the selected filenames in a string to the JavaScript
    I am able to use doPrivileged to apply the necessary security context to launch a JFilechooser and return the filenames selected. However, When the JFilechooser dialog is visible and the user moves the dialog window around the HTML pages dose not receive any repaint messages. They seem to be blocked by the thread that launched the JFilechooser dialog and is probably blocking update events as the dialog is still visible.
    I know I need some type of a message pump so the child thread can inform the parent thread and the browser to repaint. However, I don't know how to do this.
    Please help.
    ------Applet Code Begin:-----
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.AWTEvent;
    import java.awt.event.AWTEventListener.*;
    import java.awt.event.MouseMotionListener;
    import java.awt.event.MouseEvent;
    import java.io.File;
    import java.util.Locale;
    import java.util.MissingResourceException;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import java.util.Vector;
    import javax.swing.JApplet;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class SampleApplet extends JApplet
       boolean allowDirs=false;
       boolean allowFiles=true;
       boolean hidden=false;
       File lastUserDir=null;
       public void init()
        public void start()
        public void stop()
        public String selectFiles()
           String choosenFiles = null;
           choosenFiles = new String((String)java.security.AccessController.doPrivileged(
           new java.security.PrivilegedAction()
         public Object run()
            String choosenFiles=new String();
                 JFilechooser fc = new JFilechooser();
         fc.setFileSelectionMode(allowDirs ? (allowFiles ? JFileChooser.FILES_AND_DIRECTORIES
            : JFileChooser.DIRECTORIES_ONLY)
            : JFileChooser.FILES_ONLY);
         fc.setMultiSelectionEnabled(true);
                 int returnVal = fc.showOpenDialog(null);
                 if (returnVal == JFileChooser.APPROVE_OPTION)
                    choosenFiles = "The selected filesnames will be stuffed here";
              return choosenFiles; //return whatever you want
           return choosenFiles;   
    ------Applet Code End:-----
    ------Html Code Begin:-----
    <html>
    <applet id="SampleApplet" archive="SampleApplet.jar"; code="SampleApplet.class"; width="2" height="2" codebase=".">
    </applet>
    <head>
        <title>Untitled Page</title>
    <script language="javascript" type="text/javascript">
    function SelectFiles_onclick()
      var s = (document.applets[0].selectFiles());
      alert(s);
    </script>
    </head>
    <body>
        Click Test button to select files
        <input id="SelectFiles" type="button" value="Select Files" onclick="return SelectFiles_onclick()" />
    </body>
    </html>
    ------Html Code End:-----

    try this:
    first don't open the file dialog in the SelectFiles call. Start a new thread that does that. Then return from the SelectFiles call immediately. Now after the user selectes the files call back into the javascript by doing something like this:
    pass the list of files into this function, each on being a String in the params array
        public synchronized void sendDataToUI(Object[] params) {
            if (FuserState.hasQuit()) {
                return;
            String function = "getUpdates";
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "Calling Javascript function " + function);
            if (getJavaScriptWindow() == null) {
                logger.log(Level.SEVERE, "Member javascriptWindow is NULL, no call was made!");
                return;
            try {
                getJavaScriptWindow().call(function, params);
            catch (netscape.javascript.JSException x) {
                if (params == null) {
                    logger.log(Level.SEVERE, "p=NULL PARAM");
                } else {
                    logger.log(Level.SEVERE, "p=" + params[0]);
        protected JSObject getJavaScriptWindow() {
            javascriptWindow = JSObject.getWindow(this);
        }

  • Can we call webserrvice from javascript code?

    Hi Gurus,
    Can we call webservice in "Javascript" code?
    Any pointers, samples?
    Appreciate your time.
    Thanks

    Hello,
    Yes you can, and we have in OracleAS 10gR3 create javascript for you.
    Take a look to the following:
    1- deploy a Web Services in OracleAS 10g R3 (10.1.3)
    2- go to the test page
    3- Click on the Javascript Stub page
    This utility creates a javascript linbray allowing Ajax calls to SOAP based Web Services:
    - create SOAP request from simple Javascript objects
    - create an XMLHttpRequest object to call synchronously or asynchronously
    - get back the response from and deserialize the SOAP object to Javascript
    Regards
    Tugdual Grall

  • Calling Taskflow from javascript

    Hi,
    Can any one help me on calling taskflow from javascript.
    Thanks in advance,
    Regards,
    Lavanya.

    hi Lavanya,
    All I did was a simple search and found this
    Javascripts and ADF Taskflows
    See if this is helpful to you too :)
    Regards,
    Neha..

  • Error while calling applet from Javascript via LiveConnect and WebDriver

    Hi all,
    I am trying to call applet Java code from Javascript via WebDriver.
    Given the following two cases:
    - calling a static method: Integer.parseInt("42")- constructing a new object: new String("Hello world")My Javascript code looks like this:
    document.appletId.Packages.java.lang.Integer.parseInt("42");
    new document.appletId.Packages.java.lang.String("Hello world");When executing this code in Firefox via the Firebug Javascript console everything works fine and I get the expected results. However, when executing this code via the JavascriptExecutor from WebDriver only the call to the static method succeeds, the construction of the new object leads to the following error: "Attempt to call a default method on object with no invokeDefault method."
    I don't have any idea what is going wrong here, so any help would be greatly appreciated.
    Thanks!

    Hello Gerard, Hello Krishna,
    -> The liveCache application failed with COM error::
                                   40028 Illegal timestamp in rough timegrid
    More details about COM error 40028 you will see in TA /n/sapapo/om10
         -> Return code: 40028 -> execute ::
    Invalid time stamp in the time buckets profile relation     
    ( om_ts_tgrelinvalidstamp )     
       < click on '?' mark >
    -> Open an OSS message in accordance with SAP note 167280 if further help
         needed to solve the issue on your system.
    Thank you and best regards, Natalia Khlopina

  • Use APEX_APPLICATION in an application process called by a javascript

    I have a page that is split into two; Top portion is a form, and the bottom part is a tabular form of a collection. Currently, if I enter information into the form and the collection and then submit the collection (to save the data to the collection) it erases the information in the form (since submitting for the form is separate). The same thing happens when I attempt to delete certain rows from the collection.
    My solution to this problem was to use javascript to call an application process (that way the page isn't completely refreshed, only the collection portion). However, I can't seem to get the apex package APEX_APPLICATION to work correctly as an application process (works fine as a process on submit as a page process).
    Below is the way I use apex_application for saving:
    begin
    for x in 1..apex_application.g_f03.COUNT
    loop
    apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
    p_seq => apex_application.g_f03(x),
    p_attr_number => 8,
    p_attr_value => apex_application.g_f08(x));
    apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
    p_seq => apex_application.g_f03(x),
    p_attr_number => 9,
    p_attr_value => apex_application.g_f09(x));
    apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
    p_seq => apex_application.g_f03(x),
    p_attr_number => 10,
    p_attr_value => apex_application.g_f10(x));
    apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
    p_seq => apex_application.g_f03(x),
    p_attr_number => 11,
    p_attr_value => apex_application.g_f11(x));
    apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
    p_seq => apex_application.g_f03(x),
    p_attr_number => 12,
    p_attr_value => apex_application.g_f12(x));
    end loop;
    end;
    Below is the code I use for deleting certain elements from the collection:
    BEGIN
    FOR ii IN 1 .. apex_application.g_f01.COUNT -- checkbox
    LOOP
    apex_collection.delete_member (p_collection_name => 'SPECIES_COLLECTION',
    p_seq => apex_application.g_f01(ii)
    END LOOP;
    APEX_COLLECTION.RESEQUENCE_COLLECTION('SPECIES_COLLECTION');
    END;
    Below is the javascript I attempted to use for application process for submitting:
    function addToCollection()
    var get =
    new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=submitLandings',0);
    gReturn = get.get();
    get = null;
    }

    Your requirement is quite similar to what I have here:
    http://apex.oracle.com/pls/otn/f?p=31517:159
    Using apex_application.g_fxx will not work in the way you originaly planed to do that since an application process can't see it.
    What you can do is to use an application process to update the collection at the moment you enter your data. Apply for an account (see login page of my demo application) and you may see how I solved it in my example.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How do i call servlet from javascript after validation the javascript

    Hi ,
    Can anyone tell me how to call a servlet after the javascript is being validated. Here is my code to validate javascript i need to call a servlet inorder to save the data into the same form. I tried calling through the action method in the form but its directly taking me to the servlet but not validating the form. Is there any way that i can validate the form first then call the servlet.
    Thanks in advance.
    <html>
    <head>
    <title>Online Blog</title>
    <script language ="javascript" type ="text/javascript">
    function myfunction()
    var mesg = "";
    var dmesg = "";
    var dnumber = 0;
    var number = 0
    var Blogstr = document.onlineblog.BlogName;
    var Fnamestr = document.onlineblog.FirstName;
    var Lnamestr = document.onlineblog.LastName;
    var Datestr = document.onlineblog.Dateformat;
    var Imagestr = document.onlineblog.uploadimage;
    var Imageval = Imagestr.value;
    var flength = parseInt(Imageval.length) - 3;
    var fext = Imageval.substring(flength,flength + 3);
    var Dateval = Datestr.value;
    var Dformat = /^\d{2}\/\d{2}\/\d{4}/; //checks the date format.
    //splits date into mm, dd , yyyy format.
    var m = Dateval.split("/")[0];
    var d = Dateval.split("/")[1];
    var y = Dateval.split("/")[2];
    //Get today's date (removes time).
    var today = new Date();
    var dd = today.getDate();
    var mm = today.getMonth()+1;
    var yyyy = today.getFullYear();
    //checks if month and date are displayed in mm, dd format and if not sets to mm,dd.
    if (mm <10)
    mm = '0'+mm;
    if (dd <10)
    dd = '0'+dd;
    //checks if name of the blog is empty
    if(Blogstr.value == "")
    number = number+1;
    mesg += "\n" + number + "Name of the blog";
    //checks if value of Frist Name is empty;
    if(Fnamestr.value == "")
    number = number+1;
    mesg += "\n" + number + "First Name";
    //checks if value of Last Name is empty;
    if(Lnamestr.value == "")
    number = number+1;
    mesg += "\n" + number + "Last Name";
    //checks if value of date is empty;
    if(Datestr.value == "")
    number = number+1;
    mesg += "\n" + number + "Date of mm/dd/yyyy format";
    //checks if value of image field is empty;
    if(Imagestr.value == "")
    number = number+1;
    mesg += "\n" + number + "select an image";
    //displays all the error messages.
    if (number > 0)
    alert ("Please enter the following" + mesg);
    return false;
    //checks if entered date format is mm/dd/yyyy
    if(!Dformat.test(Dateval))
    dnumber = dnumber +1;
    dmesg += "\n" + dnumber + "please enter a valid date(mm/dd/yyyy)";
    //checks if date is greater than 12 and is 2 digits.
    if ((m>12 && m<100) || (m> = 100 && m<1000) || (m==0))
    dnumber = dnumber+1;
    dmesg += "\n" + dnumber + "Enter valid month(mm)";
    //checks if month has 31 or 30 days and is in dd format.
    if (((d>30) && (d<100) && (m == 04 || m == 06 || m == 9 || m == 11)) || ((m == 01 || m == 03 || m == 05 || m == 07 || m == 08 || m == 10 || m==12) && (d >31) && (d<100)) || d == 0)
    dnumber = dnumber+1;
    dmesg += "\n" + dnumber + "Enter valid date(dd)";
    //checks if month has 28 or 29 days and wheather is a leap year or not.
    if((m == 02 && d>29 && y%4 == 0) || (m == 02 && d>28 && y%4 != 0))
    dnumber = dnumber+1;
    dmesg += "\n" + dnumber + "Enter valid date(dd)";
    //checks if entered date is prior to the current date.
    if((m == mm && d == dd && y == yyyy) || (y > yyyy)|| (d>=dd && m>=mm && m<=12 && y==yyyy) || (d<=dd && m>mm && y == yyyy && m<=12))
    dnumber = dnumber + 1;
    dmesg += "\n" + dnumber + "Please enter a date prior to the current date";
    if (y == 0 || y < 1000 || y>9999) //checks if year is zero and is a 4 digit number.
    dnumber = dnumber + 1;
    dmesg += "\n" + dnumber + "Enter a valid year(yyyy)";
    //checks if image format is jpg or gif.
    if(fext != "jpg" && fext != "gif")
    dnumber = dnumber + 1
    dmesg += "\n" + dnumber + "You can only upload gif or jpg images.";
    if(dnumber>0)
    alert("please check the followin error messages"+dmesg);
    return false;
    </script>
    <style type="text/css">
    .style1 {color: #FF0000}
    body {
         background-color: #FFCCFF;
    h2 {
         color: #CC3399;
    h1 {
         color: cc3399;
    .style2 {
         font-family: Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style5 {color: #000000; font-family: "Times New Roman", Times, serif;}
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><body>
    <h1 align="center">Webloggers space</h1>
    <p align="center">Home
    <p>
    <h4> Please enter the following details to register.</h4>
    <p> <b>Note:</b> All fields marked with <span class="style1">*</span>(astrick)
    are compulsory.</p>
    <form action="servlet/BlogServlet" name="onlineblog" onsubmit = "return myfunction()" method="post">
    <table width="60%" border="0" cellspacing="5" cellpadding="2">
    <tr>
    <td><span class="style1">*</span>Name of the Blog</td>
    <td><input type="text" name="BlogName"/></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>First Name</td>
    <td><input type="text" name="FirstName"/></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>Last Name</td>
    <td><input type="text" name="LastName"/></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>Date(mm/dd/yyyy)</td>
    <td><input type="text" name="Dateformat"/></td>
    </tr>
    <tr>
    <td>Category</td>
    <td><select name="catagory" size="1">
    <option></option>
    <option>Business</option>
    <option>Education</option>
    <option>Entertainment</option>
    <option>Food</option>
    <option>Hobbies</option>
    <option>Personal</option>
    <option>Politics</option>
    <option>Sports</option>
    </select></td>
    </tr>
    <tr>
    <td>Enter your text here:</td>
    <td><textarea name="textarea" cols="45" rows="5"></textarea></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>Upload Image <span class="style5">(.jpg
              or .gif)</span></td>
    <td><input type="file" name="uploadimage" /></td>
    </tr>
    <tr>
    <td></td>
    <td><input type="submit" value="save">
    <input type="reset" name="reset" value="Reset" /></td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    Your javascript code contains a syntax error. That's why the function isn't being called. Take a look at this line in your code.
    if ((m>12 && m<100) || (m> = 100 && m<1000) || (m==0))Notice the space between > and =. Remove that space.
    m >= 100

  • Call controller with javascript

    Hi,
    I have a short question:
    If I called this function several times in my program, will always the same controller be called or will for each call an instance of the controller be created? :
    child = window.open("controller_data.do","Test","width=183px height=216px left=" + x + " top=" + y + " status=no")
    Best regards
    Alberto

    Hi Alberto,
    that depends mainly on the settings of your application and of the controller.
    stateless:
    Each call creates a new instance which only lives for the lifetime of the request processing (i.e. until the response is sent back to the browser).
    statefull:
    dependent on the setting of the lifetime attribute in the status section:
    "request": new instance for each request as in case of stateless (while the application object remains existing)
    "session": until you end the session
    "until page change": until you use a method of the navigation interface to perform a redirect to a different controller/page. Navigation triggered by links or javascript on the frontend will not kill the instance.
    The "Test" in your javascript just has the effect that for each call the same window is reused meaning that in case you have already opened the popup executing the script just will reload the controller into the already opened window. This has no influence onto the lifetime of the controller object in the backend.
    In case you want to check which objects are loaded switch to the memory use in the debugger an check the list of objects there. Here you can see whether multiple instances of your controller class available.
    Hope that helps.
    Best Regards
    Michael

  • Call dll from javascript

    hai,
    i have a dll(VB) in client m/c. i need to call a method in a dll from javascript.
    if possible please give some sample code.

    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=calling+a+dll+from+javascript

  • Call servlet from javascript

    Hi,
    In my web application , i must call a servlet from javascript.
    At present i am calling the servlet by using the following syntax:
    document.location.href ="sample?startTime="startTime+"&endTime="+Time;+*
    The above syntax is working fine, but the problem is ,a new page is created whenever a request is made.
    Is there any way to call the servlet without creating any new page.
    kindly provide me an alternative, it will be of great help for me.

    Is there any way to call the servlet without creating any new page.Ajax. Or load it in a hidden (not visible) iFrame.

  • How to call jsp in javascript

    i am trying to show a confirm dialog and when the user click on the ok button, i want it to call a method inside my .java file. what i want to do is something like this:
    <script>
    var ans = confirm("Are u sure you want to over write file);
    if(ans)
    //call the method doUpload
    else
    //do nothing
    </script>
    /////////////.java///////////////
    public class FileUploadBean{
    public void doUpload(HttpServletRequest req, HttpServletResponse res){

    Something along these lines ought to do what you want:
    <html>
    <body>
    <form name='foobar' action='foobar.jsp'>
    <script language='Javascript'>
    function askim() {
      if (confirm('Is you sure?')) {
        document.foobar.submit();
      } else return false;
    </script>
    <input type='button' value='Submit' onClick='askim()'>
    </form>
    </body>
    </html>
    Your mileage may vary.
    But the idea here is that the Javascript merely submits the form if the user clicks "OK" on the confirmation pop-up. Otherwise, nothing happens. The form is submitted to a JSP file which accepts the request, does something (such as call your Java class), then prints out some HTML in response.

  • Call Process within javascript

    NEWBIE QUESTION:: If possible, how can you call a page process from within a javascript code segment.
    I have a for loop that needs to call a process.

    AJAX is part of your browser.. APEX supports it.. Maybe you should do some reading on the subject...
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • [MVC] Call controller with Javascript - How to pass model?

    Hi,
    In one of my requirement, I have to pass the main model to a controller that I simply create through Javascript (let's say I call it with : window.open( 'http://.../popup.do '); )
    How sould I proceed to set an existing model to this controller?
    Many thanks in advance.
    Best regards,
    Guillaume

    Hi
    u might be having  a model class for your model,
    just insert that model class in the attributes and then u can use that model class for your controller.
    a easy example of creating it is as in this link...
    [creating controllers with model|http://wiki.sdn.sap.com/wiki/x/-YL8B ]
    Give the page attributes of the view. in the page attribute define the model class there that u have created.
    in the view u can use the model class as...
    SELECT_model is the name of the object refering to the model class.
    i_vbak have been defined in the attributes of the model class.
    we are accessing it here in teh view calling it as below.
    and in the model we had fetched the data for the below fields .
      <htmlb:tableView id="TV_VBAK" table="//SELECT_model/I_VBAK">
    <htmlb:tableViewColumn columnName="vbeln"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERDAT"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERZET"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERNAM"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ANGDT"></htmlb:tableViewColumn>  
      </htmlb:tableView>
    i hope it is clear.
    Thanks
    kalyan

  • How to add your method in photoshop plugin & call it from javascript?

    pls help me i have to add a method in photoshop sample plugin & call it through any script like javascript?don't have to use any listener like script listener?

    You create the plugin, so you defined the terminology for the plugin.
    So there should be no reason to use the listener because you already know the terminology needed.

Maybe you are looking for

  • Use of PropertyChangeListeners in realtime scenario apps

    Dear experts, I always reach at this topic and i feel to ignore this topic.I have used ResourceBundle class also for getting and retreving properties and i feel Bean is useful in JSP as well.But how this code can help me in my applications that are s

  • Report to apple on WiFi problems!

    Hello to all the fellows!! I just wanted to ask from you to report to the apple developer team about the many WiFi troubles we see here at the last time in order that apple will take this thing to their attention and will fix this issue as soon as po

  • *CALC_DUMMY_ORG in sap nw

    Hello BPC lovers, I know that *CALC_DUMMY_ORG can't be used in BPC NW version. Could someone please help me in alternate solution for below script code in sap nw as this is in microsoft version. *CALC_DUMMY_ORG COSTCENTER=PARENTH1 *CALC_DUMMY_ORG PAR

  • Why can't I open iTunes?

    iTunes will not open on my Mac. I did an update last week and now I cannot open it.

  • Purchase order increase limitation for user

    Hi Experts How can increase the purchase order limitation for the perticular user which transaction code have to be run to change the purchase limitation Regards Piroz