APEX 5 Ajax call via javascript

People,

Using APEX 5 with Firefox ESR 38.2 and Oracle 11 g.

I have a small application in 5 APEX and I try to call a process on demand through apex.server.process within a small JavaScript function in a page.  However, it seems that the code is NOT executed, and I don't see anything on my firebug console...

What I have is a JavaScript function in the global declaration of a page and function section.  This is the actual function:

Function myFunction (p_url, p_review_date, p_bsr_tracking_id) {}

If (! p_review_date)

{

var r = confirm ("when you click on 'Ok', you accept que\nvous have read and reviewed the package BSR the\nselected");

If (r == true) {}

Alert (p_bsr_tracking_id);

First update the revision date for the report, for the follow-up of compliance data

HERE'S THE CALL FOR APPLICATION MODEL

Apex. Server.Process ("DUMMY"

, {x 01: p_bsr_tracking_id}

, {dataType: "text"}

);

Alert ("after the Ajax call!")  ;

Then, open the new window showing the report to display

var a = window.open (p_url)

}

}

else {}

Alert ("BSR package has already been discussed");

}

}

Here is a copy of the MODEL application procedure:

BEGIN

Logger.log (apex_application.g_x01);

UPDATE Bsr_Tracking

SET Date_Reviewed = SYSDATE

WHERE Bsr_Tracking_Id = apex_application.g_x01;

COMMIT;

END;

Do you see something that could be the cause of NOT work?

Thank you

Tony Miller

Los Alamos, NM

Patrick,

Re: Network tab: I see activity on the network or firebug tab...

Re: Application level process: Yes, it is, does a big difference if it is the application-level or page?

Question IS... He had a system of authorisation of ' must not be Public user ", therefore, it would not fire, but also I don't have a reply back...

Thank you for a new set of eyes to see the question, a little...

Will post question followed on how via the same JavaScript function to refresh the report, he called from the end...

Thank you

Tony Miller
Los Alamos, NM

Tags: Database

Similar Questions

  • Alertify Plugin - how to call via Javascript and not by a dynamic Action

    Hello

    Environment: Oracle APEX v4.2.1 | Oracle 11g R2 | IE8 Web browser

    Hoping someone can help, I use the plugin Alertify via a dynamic Action, but my question is, instead of use this via a dynamic Action, I actually want to make the same call I do via a dynamic Action but rather using javascript.

    So, by using a shape any JavaScript API in the Alertify plugin, I want to call an alert notification standard with the message and the delay effect until it disappears once more.

    Is it possible to call this plugin in this nature using javascript?

    Thank you.

    Tony.

    You can always use the plugin and a custom event.

    Create a dynamic action:

    • Event: Custom
    • Custom event: ALERTIFY_DELAY
    • Selection type: jQuery Selector
    • Selector: body
    • 1 real action:

    Add the following code to the section "run when Page Loads:

    window.setTimeout(function(){
      $('body').trigger('ALERTIFY_DELAY');
    }, 3000);
    

    This will cause the "ALERTIFY_DELAY" event fires after three seconds.

  • Hanging in the updating of the IRR via Javascript

    Apex: 4.2.2.00.11

    I have an IRR that has a checkbox column. Checking the box either includes or excludes this specific row when the page is sent.

    I add a 'global' checkbox in the column header of the IRR report for this column. It controls, checks all the boxes in this column to SORT. Unchecking the contrary fact. The "global" checkbox is a toggle power switch of the checkboxes in the SORT.

    So far so good. Works as expected.

    However, during the updating of the IRR (due to changes of order sorting, additional filters added, etc.), it redraws the region of apexir_DATA_PANEL - and with it, he repaints the table headers too. And this removes the "global" checkbox in the column header. (a page refresh is necessary to return to the "global" checkbox)

    I want to do is add a function call to the Manager of refreshment of the IRR - the last call to the handler is the custom function that adds the "global" checkbox in the column header. Something like:

    . Bind $(«#IRR_OBJECT_HERE») ("onchange", function() {}
    AddGlobalToggle(); Added the check box of the column header if there is
    });

    I tried many references to object (unless the IRR) and managers of events, but without success.

    Is it possible to connect refresh report string of the IRR via Javascript?

    Billy

    Requires as not simply a dynamic action after Refresh on the IR region?

  • Error when painting during the AJAX call page fault

    Hi all

    I do a simple AJAX call test with the emp table. In my page, I have a report, a search box and a button. You put in a text and click search and you will get the result that all the works.

    I have a requirement where if you click on the button and there is no search match you will be redirected to another page, just reload the report to display the result as usual.

    So, I took the road to AJAX where I perform a simultaneous when the user enters a text search and click on the button. If the search count (*) > 0 then return return County else returns 0.

    The code for the application process is:
    DECLARE
    begin
    CCOUNT number;
    
    
    
    begin
    Select count(*) into ccount 
    from emp
    WHERE 
    UPPER(:F_SEARCH_RESULT) like '%'||upper(ename)||'%';
    
    exception when no_data_found then
    htp.p(0);
    end;
    
    htp.p(ccount);
    
    
    END;
    My (still working on that) Java script code is:
    <script language="JavaScript" type="text/javascript">
    
    
         function search_count()
    
         var get = new htmldb_Get(null,null,'APPLICATION_PROCESS=SEARCH',0);
         get.add('F_SEARCH_RESULT', $v('P1_ENAME'));
         var gReturn = get.get();     
         console.log(gReturn);
    
         var gReturn_sanitised = praseFloat(gReturn);
              if (gReturn_sanitised == 1)
              doSubmit('SUBMIT');
         
              
    </script>
    I tested this code in Firebug, and when I do a console.log (gReturn) on the release of the AJax call I get this error that prevents me from dealing with the result of gReturn and be done with the code. The error looks like:
    <html><body>
    <h1>Error occurred while painting error page: ORA-01403: no data found</h1>
    </body></html>
    I tried adding exception when no_data_found but without success. Still get the same error. My version of the APEX is 4.2, any suggestion welcome. See you soon.

    Xrc xarg wrote:
    Still no luck, even if I'm doing a simple:

    begin
    htp.p('0');
    end;
    

    in the process of the page, I get the same error as before.

    I've done much AJAX call like this before elsewhere and can't for the life of find me whats wrong here.

    I have reproduced the issue in apex.oracle.com

    WORKSPACE: AIWORSKSPACE
    USER: TEST
    PASSWORD: test
    APP #: 69721
    Page: 1

    The point of application of F_SEARCH_RESULT had the security setting of default Session State Protection of Restricted - can not be set to the browser. Change this Unrestricted.

  • How to use the wait flag integrated at the level of the element during the AJAX call

    Hello
    I would like to use the integrated waiting indicator that appears next to the selection in cascade and textfields autocomplete lists in my own AJAX call. But I don't know how to attach to the question that I'm updating.
    Can someone help me in the right direction?

    In my case, I'm running the database to update the value of an elements to the screen. My Javascript looks like this
    function MY_FUNCTION
     (p_get_item1
     ,p_get_item2
     ,p_get_item3)
    {
      //create the AJAX call refering to the APEX application process
      var ajaxRequest = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=AP_NAME', $v('pFlowStepId'));    
      
      //put values on screen into APEX PL/SQL variables
      ajaxRequest.addParam('x01',$v(p_get_item1));
      ajaxRequest.addParam('x02',$v(p_get_item2));    
      ajaxRequest.addParam('x03',$v(p_get_item3));    
    
      //do the actual AJAX call 
      var ajaxResponse = ajaxRequest.get();   
      //and set the items on screen based on the JSON text returning  
      json_SetItems(ajaxResponse);  
    }
    Thanks in advance

    You must use jquery instead of htmldb_get to make real asynchronous, and then add the rotation like this icon

    I used the jquery post method to call the process of request here

    function MY_FUNCTION
    (p_get_item1, p_get_item2, p_get_item3) {
         //show indicator
         $('#YOUR_ITEM_NAME').after('');
    
         $.post('wwv_flow.show', {
              "p_request" : 'APPLICATION_PROCESS=AP_NAME',
              "p_flow_id" : $v('pFlowId'),
              "p_flow_step_id" : $v('pFlowStepId'),
              "p_instance" : $v('pInstance'),
              "x01" : $v(p_get_item1),
              "x02" : $v(p_get_item2),
              "x03" : $v(p_get_item3)
         },
              function (data) {
              //and set the items on screen based on the JSON text returning
              json_SetItems(ajaxResponse);
              //remove indicator
              $('#YOUR_ITEM_NAME').next(".loading-indicator").remove();
         });
    }
     
    
  • AJAX call does not properly

    Hi all


    I have this very odd behavior when using AJAX calls to update a (name) field based on another field (number)
    When an existing number is given my alert ' Unable to search for a name. "pop-up up windows
    When you then refresh the page (F5), the correct name is displayed.
    I have not the slightest idea why

    also intermittently name gets filled with html code
    apparently if for example the number has been filled in, and you then turn off and leave the field name immediately fills
    with this code (no neede updating)
    I saved this html code and it's a page with following error message:
    Unexpected error, unable to find item name at application or page level.
         Error     ERR-1002 Unable to find item ID for item "STR_NAME" in application "33293".
    AJAX call is set up as follows
    (1) attributes of the HTML form for the P1_number field element:
    onChange="javascript:getName(this)";
    (2) page 1 of HTML header:
    <script language="JavaScript" type="text/javascript">
    function getName(callObj) {
       var get = new htmldb_Get(null, &APP_ID.,    
                        'APPLICATION_PROCESS=getName', 1);
       get.add('P1_NUMBER',callObj.value)
       var gReturn= get.get();
       alert('Before change');
       if (gReturn)
          { 
           $x('P1_NAME').value = gReturn;
           alert('After change'); 
          }
       else
          { alert('Unable to search for name.')
          }; 
      
       get = null;
    }
    </script>
    (3) application to the application named getName process:
    declare
      str_name   names.name%type;
    begin
      begin
        select name
          into str_name
          from names
         where nr = :P1_number;
      exception
        when no_data_found or too_many_rows then
          :str_name := 'Ongeldig klantnummer';
      end;
      --:P1_NAME := str_name;
      APEX_UTIL.SET_SESSION_STATE('P1_NAME', str_name);
    end;
    the name is a table with 2 field, nr (number) and name (varchar2)


    You can check it out here:
    [http://apex.oracle.com/pls/otn/f?p=33293]

    any ideas on what I am doing wrong?


    Martin

    Problem is here

    : str_name: = 'Ongeldig klantnummer ";

    It should be

    STR_NAME: = 'Ongeldig klantnummer ";

    ': ' is considered as a page element.

    Gary

  • How to set null article Page in Session Via JavaScript

    Request Express 4.2.6.00.03

    We set a value in a control SELECTION, 'P5_DATASET_NAME ', in the session with a dynamic Action on the change of this control.

    We do this with the following JavaScript code snippet:

    Apex. Server.Process ("dummy"

    , {pageItems: '#P5_DATASET_NAME'}

    , {dataType: "text"}

    Async: false,

    complete: function (ajaxResponse)

    {

    var ignoredReturn = ajaxResponse.responseText;

    }

    });

    It works perfectly, as long as the user selects a value not zero in the drop-down list SELECT down. In other words, we can make any selection (other than NULL), pop up the session in the developer toolbar and immediately see the new value it. In addition, if we then refresh an interactive report on the page that uses the value of this element in the SELECT source, he correctly extraction based on the new value.

    * HOWEVER * if the user selects the NULL option (only if they choose this option), value in the session remains unchanged and continues to be set to the previous value. The $v function correctly reports the null value. If the is updated interactive report it is based on the previous value.

    So, the question is, what is special about NULL? How can I position "unplugged", the value of a session (or null) article page via JavaScript?

    Thank you

    -Joe

    Joe Upshaw wrote:

    Request Express 4.2.6.00.03

    We set a value in a SELECTION control, "P5_DATASET_NAME", at the session with dynamic Action on the change of this control.

    We do this with the following JavaScript code snippet:

    Apex. Server.Process ("dummy"

    , {pageItems: '#P5_DATASET_NAME'}

    , {dataType: "text"}

    Async: false,

    complete: function (ajaxResponse)

    {

    var ignoredReturn = ajaxResponse.responseText;

    }

    });

    It works perfectly, as long as the user selects a value not zero in the drop-down list SELECT down. In other words, we can make any selection (other than NULL), pop up the session in the developer toolbar and immediately see the new value it. In addition, if we then refresh an interactive report on the page that uses the value of this element in the SELECT source, he correctly extraction based on the new value.

    * HOWEVER * if the user selects the NULL option (only if they choose this option), value in the session remains unchanged and continues to be set to the previous value. The $v function correctly reports the null value. If the interactive report is updated it is based on the previous value.

    So, the question is, what is special about NULL? How can I position "unplugged", the value of a session (or null) article page via JavaScript?

    Another question is: why are you going to this length instead of just using the source attribute Page to go on IR region, which will be automatically put in the session state until the IR is updated?

  • return two values of columns via Javascript

    For the same purpose as:

    OnClick = "$s ('P1_DEPTNO', #DEPTNO #); return false; »

    to return a value from column via javascript, is it possible to return 2 values? Example:

    OnClick = "$s ('P1_DEPTNO', #DEPTNO #); $s ('P1_EMP, #EMPLOYEE #); return false; »

    Thank you all :)

    Max

    Maxime Carrier wrote:
    Sorry for the wrong question form, I'm not an English speaker, so I try my best to make sentences clear.

    My goal is like this in this issue: Insert the value of a column in the report in a page with JavaScript element - 2?

    My Apex version is: 4.0.2.00.06
    My DB is: Oracle 11G
    My browser: IE 7

    I'm trying to save two values when I click on a link in a report. I will use these values in which the declaration of another report. The content of the second report will depend on the link I clicked in the 1st. It will change dynamically without reloading the entire page.

    Standard or interactive report?

    Where is the defined link? Column link IR? The column link? HTML embedded in the report query?

    One of the two values is not a number.

    Use quotes around chains of substitution of the column as shown above.

  • How to call a javascript/jquery on a partial page of the report refresh.

    Hello

    I have a sort of obligation to highlight the search string in a column in report 3. I realized that using a jquery plugin. However, this works only on the loading/reloading page. If the following lines set target (paging), it does not. It seems, pagination makes only a partial page refresh thro an ajax call, and so the process of jquery for the highlight will not take place. How to follow the events of paging (navigation to the next set of lines) and call the same process of jquery?

    An example page is created the apex.oracle.com

    http://Apex.Oracle.com/pls/Apex/f?p=20956:21

    ID: demo
    password: natarajans

    If you enter a job as Manager or clerk and press ENTER, it is highlighted on the job column. However if you click on the next series of lines, the highest point does not take place.

    (apex version is 4.1).

    Thank you for your help in advance.

    Kind regards

    Nicolas.

    Hi Nicolas,.

    your IR region gives a model of region? It is an obligation to use dynamic measures on a region. You can use the DIV 'only' (or something similar) which is not a UI affect but creates a wrapper DIV around the IR.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to change the "TextVariable" via javascript

    Hello

    How can I change the value of a "Custom text Variable" via javascript in indesign CS5?

    I understand that there is a 'content' that is me allotted property, but I can't understand how to set or change.

    Here's the javascript code example for reference.

    var docRef = app.activeDocument;
    
    
    for ( var i = 0; i < docRef.textVariables.length; i++ ) {
    
    
        var textVariableItem = docRef.textVariables[i];
    
    
              // Check for the type
              if (textVariableItem.variableType === VariableTypes.CUSTOM_TEXT_TYPE){
    
    
                        var variableOption = textVariableItem.variableOptions;
      
                        // This will give me the text value of the variable
                        alert("Text Variable " + i + " \n " + textVariableItem.name + "\n" + variableOption.contents);
    
    
                        // But how do I set it? 
                        // The following does not seem to work 
                        variableOption.contents = "New custom text..."; 
              }
    }
    
    // Logic behind this script
    
    // theScript()
    // is a wrapper function to provide functional scope to the entire script
    // This function is invoked at the very bottom of the file
    
    // main();
    // the main function that gathers the initial parameters and launches the dialog box
    
    // function mainDialog(docRef, selectedItems, layers, inputs)
    // A function that creates a dialog box this function is passed as a parameter to a "factory method"
    // called function sfDialogFactory(dialog)
    // which is a general purpose utility for creating dialog boxes.
    
    // The mainDialog function has a callback function that responds to the "comtinue" button and after some validation
    // makes a call to a function called
    
    // function doAction(docRef, inputs, options)
    // This is where the main behvior of the script is suppose to be defined.
    // it is designed to be called AFTER the dialog box return and is the result of the callback inside mainDialog
    // The doAction function receives objects that are parameter holders for various inputs and options that come from the
    // dialog box presented to the user
    
    function theScript() {
    ///////////////////////////////////////////////////
    // BEGIN THE SCRIPT
    //=================================================
    
    ////////////////////////////////////////////////////////////////////////////////
    // SCRIPT MAIN PROCESS
    ////////////////////////////////////////////////////////////////////////////////
    // Main Process
    // The beginning of the script starts here
    // Add main logic routine to this function
    
    // Call Main Function to get the ball rolling
    var elementsData;
    var theDocument = app.activeDocument;
    var inputGroup;
    main();
    
    function main(){
    var theSelectedItems = theDocument.selection;
    var theLayers = theDocument.layers;
    
        var myDialog = sfDialogFactory(mainDialog(theDocument, theSelectedItems), theLayers);
        var result = myDialog.show();
        if (result == 1){
            newAction();
            alert("Done");
            }
        else{
            alert("Not Done");
            }
    }
    
    ////////////////////////////////////////////////////////////////////////////////
    // SCRIPT SUPPORTING FUNCTIONS
    ////////////////////////////////////////////////////////////////////////////////
    // Supporting Functions
    // Include functions that offer partial functionality
    // These functions are called and acted upon within the mainProcess function
    function newAction(){
    
            var formData = getControlValues(inputGroup);
            var inputs = {};
            var options = {};
           // alert("callback get form data");
          // Do something with formData values here
            var cLen = formData.controls.length;
            var formValues = '';
            for (var c = 0; c < cLen; c++ )
            {
                if (formData.controls[c].name === "inputECONumber") {
                    inputs.inputECONumber = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentName") {
                    inputs.inputDocumentName = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentNumber") {
                    inputs.inputDocumentNumber = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentRevision") {
                    inputs.inputDocumentRevision = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
    
                if (formData.controls[c].name === "inputDocumentType") {
                    inputs.inputDocumentType = formData.controls[c].value;
                    // alert(formData.controls[c].name + " | " + formData.controls[c].value);
                }
            }//End FOR
        doAction(theDocument, inputs, options);
        }
    
    function mainDialog(docRef, selectedItems, layers, inputs) {
    
    // Main Dialog
    // alert("Main Dialog: " + docRef.name);
    
    if ( docRef === undefined ) {
      alert("Cannot Execute, please select a document.");
    }
    
      var currentData = getMetaData();
    
      var dialogObj = {};
    
      dialogObj.groups = []; // An array of dialog groups
      dialogObj.title = "Update Meta Data";
    
      var groupLabelInfo = {};
      groupLabelInfo.title = "Edit: " + docRef.name;
    
      // Add Elements using JSON shorthand syntax
      groupLabelInfo.elements = [
        {
            "name":"labelECONumber",
            "type":"statictext",
            "value":"Engineering Change Order (ECO) Number",
            "visible":true
        },
        {
            "name":"inputECONumber",
            "type":"edittext",
            "value": currentData.inputECONumber,
            "visible":true
        },
    
        {
            "name":"documentName",
            "type":"statictext",
            "value":"Document Name",
            "visible":true
        },
        {
            "name":"inputDocumentName",
            "type":"edittext",
            "value": currentData.inputDocumentName,
            "visible":true
        },
    
        {
            "name":"documentNumber",
            "type":"statictext",
            "value":"Document Number",
            "visible":true
        },
        {
            "name":"inputDocumentNumber",
            "type":"edittext",
            "value": currentData.inputDocumentNumber,
            "visible":true
        },
    
        {
            "name":"documentRevision",
            "type":"statictext",
            "value":"Revision",
            "visible":true
        },
        {
            "name":"inputDocumentRevision",
            "type":"dropdownlist",
            "value": currentData.listRevisions,
            "visible":true,
            "selection":currentData.selectionRevision,
        },
    
        {
            "name":"documentType",
            "type":"statictext",
            "value":"Label Type",
            "visible":true
        },
        {
            "name":"inputDocumentType",
            "type":"dropdownlist",
            "value": currentData.listDocumentTypes,
            "visible":true,
            "selection":currentData.selectionDocumentType,
        },
    
      ];
    
      // Add to groups to list
      dialogObj.groups.push(groupLabelInfo);
      return dialogObj;
    }
    
    function doAction(docRef, inputs, options) {
    
    alert("doAction " + docRef.name + " \n INPUTS: \n" + inputs.reflect.properties + "\n\n OPTIONS: \n" + options.reflect.properties);
    
    // Get the current contents
    
    var fooContents = app.activeDocument.textVariables.item ('Foo').variableOptions.contents;
    var barContents = app.activeDocument.textVariables.item ('Bar').variableOptions.contents;
    
    alert("GET textVariable contents \n Foo: \n" + fooContents + "\n\n Bar: \n" + barContents);
    
    // Set/Update the contents
    // Why does this not seem to work?
    
    alert("SET textVariable contents \n Foo: \n" + inputs.inputDocumentName + "\n\n Bar: \n" + inputs.inputDocumentType);
    
    app.activeDocument.textVariables.item ('Foo').variableOptions.contents = inputs.inputDocumentName;
    app.activeDocument.textVariables.item ('Bar').variableOptions.contents = inputs.inputDocumentType;
    
    // Script does not seem to reach this point. Why?
    alert("END of doAction");
    }
    
    // A Factory function for creating dialog boxes
    
    function sfDialogFactory(dialog) {
    
        // A factory method for creating dialog screens
    
        // Dialog Window
        var d = new Window("dialog", dialog.title);
    
        // alert("Number of Inputs" + dialog.inputs.length);
        // alert("Number of Options" + dialog.options.length);
    
        var i; // counter
        var len; // length of array elements
    
        // Generate Groups
        if (dialog.groups.length > 0) {
    
            len = dialog.groups.length;
            for (i = 0; i < len; i++ )
            {
                var currentGroup = dialog.groups[i];
                inputGroup = d.add ("panel", undefined, currentGroup.title);
                    inputGroup.alignChildren = ["fill","fill"];
    
                if (currentGroup.elements.length > 0) {
                    // Add Elements
                    var ii;
                    var elemLen = currentGroup.elements.length;
                    for (ii = 0; ii < elemLen; ii++ )
                    {
                        var currentElement = currentGroup.elements[ii];
    
                        var el = inputGroup.add(currentElement.type, undefined, currentElement.value);
    
                        // Additional properties added for future reflection
                        el.elName = currentElement.name;
                        el.elIndex = ii;
    
                        switch(currentElement.type)
                        {
                            case "statictext":
                                el.visible = currentElement.visible;
                            break;
                            case "edittext":
                                el.visible = currentElement.visible;
                            break;
                            case "dropdownlist":
                                el.visible = currentElement.visible;
                                el.selection = currentElement.selection;
                                el.onChange = currentElement.onChange;
                            break;
                            case "checkbox":
                                el.visible = currentElement.visible;
                                el.value = currentElement.value;
                            break;
                            default:
                            throw new Error('Unknown Dialog Element Type [' + currentElement.type + ']');
                        }
    
                    }
                }
            }
        }
    
      // Buttons Group
      var buttonGroup = d.add("group");
      var bOK = buttonGroup.add("button", undefined, "Continue", {name: "ok"});
      var bCANCEL = buttonGroup.add("button", undefined, "Cancel", {name: "cancel"});
    
      return d;
    }
    function getControlValues(set) {
        elementsData = {};
        elementsData.controls = [];
        // TO DO Add more types
    
        var giLen = set.children.length;
        for (var gi = 0; gi < giLen; gi++ )
        {
            var child = set.children[gi];
            // alert(objReflection(child, "none", false));
            // alert(child.type);
            var control = {};
                control.name = child.elName;
                control.index = child.elIndex;
                control.type = child.type;
                control.visible = child.visible;
            switch(child.type)
            {
                case "statictext":
                    control.value = child.text;
                break;
                case "edittext":
                    control.value = child.text;
                break;
                case "dropdownlist":
                    control.value = child.selection.text;
                break;
                case "checkbox":
                    control.value = child.value;
                break;
                default:
                throw new Error('Unknown Dialog Element Type');
            }
            elementsData.controls.push(control);
            // alert(objReflection(control, "none", false));
        }
        return elementsData;
    }
    function getMetaData() {
    // Return a data structure that contains meta data from the document.
    
        var dataObject = {};
    
         // Default arrays
         dataObject.listRevisions = generateRangeOfNumbers ("r", 1, 100);
         dataObject.listDesignComps = generateRangeOfNumbers ("Comp_", 1, 100);
         dataObject.listDocumentTypes = [
                         "Datasheet",
                         "Manual",
                         "Tech Guide",
                         "Other"
                     ];
    
         // Set Sensible Default Values for the UI Form
         if (!dataObject.inputECONumber) {
             dataObject.inputECONumber = "###ECO###";
         }
    
         if (!dataObject.inputDocumentName) {
             dataObject.inputDocumentName = "Document Name";
         }
    
         if (!dataObject.inputDocumentNumber) {
             dataObject.inputDocumentNumber = "048-xxx-30";
         }
    
         if (!dataObject.inputDocumentRevision) {
             dataObject.inputDocumentRevision = "r01";
         }
    
         if (!dataObject.inputDocumentType) {
             dataObject.inputDocumentType = "Datasheet";
         }
    
         return dataObject;
    
    }
    
    function generateRangeOfNumbers (prefix, start, end) {
        // This function generates an array of sequential numbers within a range
        // prefix = string to append to beginning of each element
        // start = the beginning of the range
        // end = the end of the range
        // length = overall number of cycles to loop through, start and end must fall within this value
    
        var output = [];
    
        for ( var i = start; i <= end; i++ )
        {
            if (i < 10) {
                // Add a leading zero
                output.push(prefix + "0" + i);
            }
            else {
                output.push(prefix + i);
            }
        }
    
        return output;
    }
    
    //=================================================
    // END THE SCRIPT
    ///////////////////////////////////////////////////
    }
    
    theScript();
    

    I modified your code shortly. He works for me here. Check it out...

    Thank you

    Green4ever

  • I have the UI which downloads the file in file multiprt transfer in chuncks. It worked very well in a previous version of firefox, but now ajax calls gets abandoned?

    I have the UI which downloads the file in file multiprt transfer in chuncks (blob file). It worked very well in a previous version of firefox when we send chuncks 10 MB for each ajax calls. But now in the last version of firefox, its get rejected for 10Mo chuncks with every call, but allowing only 4 KB be sent for each call. You guys could help me. I also tried with the Application (/ octectstream). It also works very well in all browsers.

    Hi Sivasathy, support.mozilla.org is intended for management of the end user. If you have questions about web development please refer to the place to go for support the developers instead. Thank you for your understanding!

  • Cannot make calls via laptop

    I can't make a call via Skype on laptop, but works well for the iphone (even Skype account for both devices).

    Every time I tried to make a call (after reinstall many times), it will close by saying "Skype has stopped working".

    And the message in the box said "a problem caused blocking the program works correctly. Windows program and you warn if a solution is not available"(but the solution will never come).

    Note that I use Windows 8.1 and I already set the compatibility mode...

    Update your Intel video display driver compatible Windows 8.1 version. The currently installed version (9.18.10.3234) is designed for Windows 8.

    http://www.Dell.com/support/home/us/en/19/product-support/product/Vostro-5470/drivers

    Be sure to select the option Windows 8.1.

    Also look at the other driver available for your laptop updates.

  • Error when you try to call the Javascript function in the ActiveX Web browser

    I have a requirement to call a Javascript function in a web page that is displayed in the browser's ActiveX control.  I have the control on the front panel, and I use the Navigate method to call to the top of the appropriate page.  Based on an example, I found, I'm trying to get a reference to the HTML Document so that I can then get a reference to the Fenetreparent.  There is a method of the HTML Window object called execScript who I'm calling.  See the attached image of the code (reference close calls do not appear, but when I run it, they are there).

    I can't the node property that returns the parentWindow reference.  The error I get is the following.

    Error-2147467262 LabVIEW: (Hex 0 x 80004002) No. taken such interface supported.

    Any ideas on where to go from here?

    Hello

    I have reproduced the issue and the error you are seen and tried to understand what is the solution.

    It seems that the problem is with getting the pointer to the parentWindow.  From what I read on MSDN, it's maybe a limitation in the use of an ActiveX control in LabVIEW. It seems like Internet Explorer creates the object of the window, and so opening in one ActiveX control you free access to this top-level object.

    Here could be workaround for javascript execution in your program:

    I would like to know if it works for you and if it will work in your program.

  • PC cut his all when I called via Skype or use other programs

    A few months ago I bought a new desktop pc HP Envy and I'm really deal with it, but recently I'm under problems.

    A couple of weeks, my PC started all my audio muting for no reason when I got a call via Skype, at first it wasn't a problem because I could use other programs such as Teamspeak or mumble, but recently these programs get the same problems as well.

    The standard solution to make sure that the checkbox in the communication tab is set to "to do nothing" is checked as seen on this page, http://www.askvg.com/fix-windows-7-automatically-reduces-system-volume-for-games-pc-calls/

    I tried all possible combinations in the tabs in my reading and recording, but it still doesn't work.

    I added some screenshots that show what it looks like.

    Hello @Archangel52210,

    I understand that you are having problems with your new computer running Windows 8.1 where the audio is automatically inhibition. I'm you provide a document from HP support: use of the Recovery Manager to restore the software and drivers (Windows 8), which allows you to restore the original supplied with your computer drivers. As these drivers and their settings are working I think they once again and I hope when they are updated the next time Hey take better.

    Please re-post if you need extra support. Thanks for posting on the HP Forums. Have a great day!

  • Flash cannot call the javascript function in the local html file

    Hello!

    Us is to develop our first application on Playbook. It is an html file including a flash file and javascript code. Everything is packed in. in the file bar, a config.xml file and has been correctly loaded into the Playbook. Everything works locally (no web access)

    Everything works well except when we use an ExternalInterface.call("saveglobalscore",score) in flash that calls a javascript function in the .html file.

    In the actionscript3, we selected the "authorized local file access" and put the 'Security.allowDomain("*) '.

    Any ideas? Thank you!

    External interface tries to access the files packaged locally is currently a known issue.  I have not really of a calendar when or if this can be resolved.  It may be in the code base of flash.

Maybe you are looking for

  • Power supply Delta

    I have food on my Mac Pro Delta; I suspect it is bad. He has four caps, all the black wires. What pins should I check everywhere for voltage? Do whatever it is must be jumped to start it? Are there common fixes? Thank you

  • Download history has been deleted; can I get it back?

    Inadvertently, I hit Remove button in downloads

  • Latest driver Nvidia for G560 does not install!

    Hello I tried to install the latest driver nvidia for my G560. But it seems that the only factor working on this system is the pre-installed driver from Lenovo. I always get the message that the driver cannot find the necessary material. I downloaded

  • Laptop HP 15-r001na: my laptop CPU upgrade?

    Hello I want to make my computer (model = 15-r001na) faster to play games like this is still well below, what I heard was the minimum standard for the game, 30 frames per second, can I change the processor in this laptop model and, if so, which proce

  • My experience and a further debate on "the previous instance is still active.

    Hi, expert, I came across this problem to my application UI last a day and spent some time in this. The reason of the root, I discovered, is that the code does not call a code specific to one of the close method (last screen), so the following will n