The process in javascript checkbox array

Hello
I am new to Apex and Javascript. I use Apex 3.2.0

Here's my question: I have a tabular report with a selector box. When the user clicks on the button Delete, I want to display an alert if the user selects all records.
The array containing the boxes checked in the tabular report is Apex_Application.G_F30

I know that I can verify the account in a process of pl/sql with "If apex_application. G_F30. Count = 0 then... "

However, I want to do this in javascript. The script called for the delete key. If the count is zero, the alert would be "no files not selected" or something like that. If the number is greater than zero, then I submit the process to delete the records.

Your help is greately appreciated.

Kind regards

Al

Tags: Database

Similar Questions

  • JavaScript is not called by the process of PL/SQL

    Hello Experts

    I try to call a javascript function from pl/sql using htp.p process, but javascript does not get mentioned. In fact, my requirement is as follows:-

    I have a report with check boxes. I use apex_application.g_X01.count to loop through the boxes and check the values of the report. If all of the checkboxes are selected, then I want to show a confirmation box so that the user can confirm that they want to go ahead and do the follow-up actions.

    My Javascript function that I placed it in the HTML header and the Body attribute is:-

    function confirm_response()
    {
    var answer = confirm ("test", "Confirm");
    If (response)
    {
    $x('P1_FLAG').value = 'Y ';
    }

    }

    Looks like my pl/sql process, which currently is trying to evoke the javascript: -.

    Start
    IF apex_application.g_f01.count = < < a number > > THEN
    HTP. P ("< script type =" text/javascript"> ');
    HTP. P ('confirm_response()');
    HTP. P ("< /script >" ");
    IF: P1_FLAG = 'Y' THEN
    -Continue with follow-up actions
    ON THE OTHER
    -To get out the process of
    END IF;
    END IF;

    end;

    But when I run the present that it does not work. The confirmation box never appears.

    It does not even if I change the PL/SQL process as below: -.


    Start
    HTP. P ("< script type =" text/javascript"> ');
    HTP. P ('confirm_response()');
    HTP. P ("< /script >" ");
    end;

    Can someone please advice.

    Thank you

    Hello
    >
    It does not meet my needs because I want first of all check if all the boxes are ticked, then only run javascript.
    >

    So how count the boxes checked in JS is the question.

    Continuing to your operation code snippet, you have box f01.

    Modify the script in the HTML header to this

    
    

    See you soon,.

  • 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

  • difference of initial value of string between the steps in the process and an external instance of LabWindows/CVI

    Hello

    I'm curious to know what I see using TestStand, LabWindows/2013 2013 with regard to initial in TestStand string values when you perform the steps in the process or an external instance of LabWindows/CVI.

    I have a step (CVI) string value that is used to check an array of characters stored in an EEPROM to test.  I pass on the Step.Result.String in the CVI by reference.  I then read the table charater of the EEPROM in the chain (Step.Result.String).  The string is then compared against the limit as specified in the test step breast.

    When I run this test step to perform the steps in the process selected in the popup Configuration of the adapter of LabWindows/CVI, it seems that the memory allocated for the string is filled with null characters.  Which is what I expected.

    When I run this test step to execute the steps in an external instance of LabWindows/CVI iselected of the Configuration of the adapter of LabWindows/CVI popup, it seems that the memory allocated for the string is filled with something else.  That is not what I expected.  For example what I see in the memory, it's the first characher is one byte NULL but the remaining bytes are some other values, as shown below:

    F0 00 AD BA 0D F0 AD BA 0D F0 AD BA 0D AD BA 0D AD BA 0D BA 0D AD F0 F0 F0
    F0 AD BA 0D F0 AD BA 0D F0 AD BA 0D F0 AD 0D AD BA 0D AD BA 0D F0 F0 F0 BA...

    In my code I make sure to write a null character in the following location table charater I just write in the chain so I have no problem with the test is working properly.  I have remove the writing from my code null character and was able to verity that the test passes when executing the steps in the process and fails during execution of the steps in an external instance of LabWindows/CVI.

    The returned string contains what I wrote for her, and then the rest of the string is filled with the values that are in the memory allocated for the string.

    Here's my Question: is this the expected behavior for the original string values in TestStand between both types of stage performances?

    Thank you

    Chris Young

    In general teststand not Initializes the unused portion of the string buffer, so it is expected that the values of the memory after character no endpoint will be different, or even to each call. If you happen to be get zeros after the null terminator which was probably due to random character (i.e. the memory allocated just arrived already having zeros in there) or perhaps a debug setting you use perhaps in the Visual C runtime (if you are debugging the process in visual studio or modify visual C runtime heap parameter). TestStand is not initializaing memory after the null terminator character in both cases (I checked the code).

    -Doug

  • How to recharge areas after the end of the loading of Javascript?

    Hello community,

    I got JavaScript in the "run when the Page loads" - Section, which basically load content of the database in hidden Page items (with a conversion of XML).

    These hidden Page items are part of the Source of my graphics in the Apex.

    This works fine until now, my problem is now:

    Given that my hidden Page items are filled on the loading of the page, I need to submit (or update) my page again so that the changes in these elements will appear in my paintings.

    How to avoid that?

    thought of a few possible solutions:

    1 Refresh (dynamic action) my chart regions automatically once the page has been loaded. Could not get this to work, try loading the page events, before sending the page, after discounting, unloading of the page with the 'Refresh' True Action and selection-Type 'Region '.

    2. let graphic-region-charge wait Javascript code at the end. If possible, can you tell me how?

    Sorry if this is already answered in another topic, could not find an answer. (Was not yet sure how to search this topic)

    Thanks in advance for any advice,

    Thomas

    -APEX version: 4.2.5.00.08

    -DB version and edition: 11g

    -Browsers used: Firefox (sometimes Chrome)

    -Theme used: 2 - blue Builder (and 1 - red single)

    -Models - of the region a report model

    WOD wrote:

    Why you use this approach? Why not produce all the necessary contents to see the processing page?

    Well, I use because it's pretty complex (generate data dynamically) and from what I've read there is no more easy/other approach. Unfortunately, I do not know what you mean by 'page display treatment '. Could you please explain that?

    Generate values for page elements hidden using calculations or processes at the points of execution before Header/After Header/Before regions.

    You specify the items hidden in the properties of Elements of Page to submit of the graphic regions?

    I don't have the "Page elements must send" - field in one of my areas. Are you sure that there must be a?

    Yes. This property has been moved from the report attributes page as it is now supported by other types of region (e.g. graphics and plug-ins). For the parts of the diagram, the property is located in the section series of each series definition query.

    If you use this approach, complete all of the necessary content generation and region is updated on a single charge of dynamic Page action is likely to be easier than trying to synchronize JavaScript running in two different places...

    I will try the solution of dynamic load page all-in-One action. If I get this right, I should create a D.A. with the "Page Load" event and several real actions. First being "run the Code Javascript' with the JS Code, I am currently under"Run when the Page loads", followed by a simple"Refresh"Action-true, no?

    Yes.

    Edit: with the D.A. all-in-One I have the same problem as before. (JS code 1, 2) 'Refresh', type 'Region', the selection on the "mychartregion" region). Issue being, what I have to do an another refresh (update of manual button) so that the changes become visible.

    This is because the elements with generated content are not specified in the elements of the Page Properties to submit for the series in the chart.

  • 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?

  • How to set the values box forwards the process of Headr

    In my process before header, I read a database table that contains a code field that I would use to make my values of checkbox checked if the field contains one of the values.

    Example of database file my have "REO".

    On the form, the check box is

    L - for loading

    W - waiting

    R - relase

    P posted

    J Job

    .. .etc

    So when I read the instructions for my example above, I would L, W and R checked.

    What is the best way to do it?

    Thank you.

    Before the process header edit session state. You want to use the default value attribute?

    Memory, you assign to the item

    L:W:R

  • Start the program from javascript in adobe reader

    Hello

    I'm developing a JavaScript that adds a button.

    When the user clicks the button, the javascriopt must run an executable file, wait until the end of the process, and then open a text file and save the pdf file as the content of this text file.

    I found how to open the text file in the api reference, but I can't run the exe.

    Someone has already done it before?

    thx a lot

    Benjamin

    You have to ask Adobe. My guess is that it is irrelevant, because it would be difficult to ensure that it will remain within your company.

  • With the help of javascript onclick

    I have a select box when the user selects a value in a drop-down list. According to this value, I want to automatically fill the 5 elements (text boxes). I would use the javascript onclick option to execute a PL/SQL procedure or anonymous PL/SQL block to fill the 5 elements. I am completely ignorant on the use of javascript. Worse, I use APEX 3.1.

    Hello

    Step 1: create a javascript function

    Change your page rendering page attribute

    In the html header to create a javascript function

    Step 2: call this function javascript by clicking on a button
    go to your button
    Select the type of action = url redirection
    in this javascript:abc() put;

    step 3:
    go to your process plsql
    In condition type slelect
    Ask = Expression1

    In Expression1 = XYZ

    Note: Inner process make sure that when you press the button no = no button condtion.

    Hope this helps you.

    Thank you
    Jitu

  • Change the color of the file with Javascript tag

    I need to be able to run a script JS from Photoshop and when it is complete, change the color of the file in the Finder to indicate that he has been treated.  I want to talk about the red, orange, yellow, highlights etc., you can give the files in the Finder.

    I know how to change these file color in Applescript.  But I can't understand how to start the process of JS by operating inside Photoshop.

    So I was curious to know if there was:

    A. a way to run an AppleScript, JavaScript

    or

    B. a way to set a property of a JS such as the Finder file it would interpret in a colour highlight?

    Any ideas?

    Thank you

    "osascript... whatever" = osascript-e ' Tell application "Finder" SETTING ((fichier POSIX "' + filePath +" ") as alias label index) at 4' If you use objects fsName (POSIX path) files

  • Assing tabular_form add the process to a link of day calendar?

    Hi all

    I have a following requirement. Can you please help me to get there (hopefully it should be possible!)

    I have 2 regions: region A Calendar & tabular region (region Assistant; not manual)

    I've included a link column for the calendar day, which captures date (#DD ##MM ##YYYY) and stores it in a local variable. When you click any date on the calendar, I would like to add a new line in the form of table and assign the date to one of the columns in the new row. At the same time, I need more details to be entered by the user.

    So, is it possible
    > Add a new line (affect the process of page AddRows link calendar day)?
    > How to reference the new line that is added, inorder to fill some values?

    Grateful if you could help me with this!

    Thank you!

    That's what I put in the "day title Format: calendar model

    <a href="javascript:f_setNewRow('&DATE_FORMAT_MASK_ITEM.')" onmouseover="this.style.cursor='pointer'"><div class="t1000DayTitle">#DD#</div></a>
    

    The DATE_FORMAT_MASK_ITEM is a populated point application based on the language of the browser using this calculation:

    DECLARE
       v_lang   VARCHAR2 (200);
    BEGIN
       v_lang := OWA_UTIL.get_cgi_env ('HTTP_ACCEPT_LANGUAGE');
       v_lang := SUBSTR (v_lang, 1, INSTR (v_lang, ',') + 1);
    
       IF v_lang LIKE 'en%'
       THEN
          RETURN '#IMM#/#DD#/#YYYY# 12:00:00 AM';
       ELSIF v_lang LIKE 'de%'
       THEN
          RETURN '#DD#.#MM#.#YYYY# 00:00:00';
       ELSE
          RETURN '#DD#.#MM#.#YYYY# 00:00:00';
       END IF;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN '#DD#.#MM#.#YY#';
    END;
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Appeal process in Javascript page

    Hey guys! Just shortly after work on my conditional Javascript dialog function, I came across another small problem which is as follows:

    I need to call a process page of the "dialogwarning" Javascript function when the backup is click on the button of a dialog jquery.

    The update action work already but the pl/sql process is not carried out.

    In fact, it cannot be so difficult...
    Can you please give me a hint how to do it? So far I've only seen son were JavaScript was called in a pl/sql procedure - not vice versa.

    Here is my code for the dialog box:
    $(function(){
      $("#dialogwarning").dialog({
        autoOpen: false,
        bgiframe: true,
         modal: true,
            width: 400,
            minWidth: 400,
            resizable: true,
         buttons:{
           Save: function(){
              doSubmit('UPDATE','APPLICATION_PROCESS=proc_reset_mx_results');
          },
          Exit: function(){
             $(this).dialog('close');
           }
         }
      });
    });
    </script>
    Any help is appreciated!

    Kind regards

    Sebastian

    If the update action works, it is possible that your application process, without that it runs values in the settings.

    Try to put the process on the page, with the condition back when you press the update button.

  • Direct access to the form fields in the process?

    HI -.

    I am building an Apex application that has a section of form, I need to generate manually - I need a lot of Javascript custom treatment within this block of fields (generating an arbitrary number of fields based on other user input, update totals the user to change values, etc.). I have no problem to build that portion of the application.

    However, I am now not sure how to access the fields I create in a post submit processes (so I can process/save the data entered). Y at - it has a syntax that I use in the process through a list/collection of all submitted fields, or (b) directly access the value of the field named "xyz"?

    Thank you

    If you mean spit your own tags to entry with htp.p, you can do that in the APEX. You must use the APEX_ITEM package. When you submit the form, you will get an error because the procedure of wwv_flow.accept is not the settings that correspond to the fields in your form.

    Tyler Muth
    http://tylermuth.WordPress.com
    [Oracle security application: development of secure database and Middleware environments | http://sn.im/aos.book]

  • Invoke the process of implementation of the method of automatic activity

    Hello

    I want to call a business process of the automatic activity of another process craft deployed on the same engine and same project as well. Please provide steps, if possible for the same thing.
    Thanks in advance.

    Hello Ketan,

    Here's how you can create an instance in a process using the logic in the activity of the automatic method. This example uses the "Fuego.Lib.ProcessInstance.create ()" method below within a process:

    // "args" is an associative string array (Any[String])
    argsIn as Any[String]
    // this assumes that the Begin activity has two argument variables
    //   named "nameArg" and "amountArg" and you're setting them
    //   to the variables "name" and "amount" respectively
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    
    // logic here to determine the name of the process to create an instance in
    idOfProcess as String
    idOfProcess = 
    ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn") 
    

    ProcessInstance is in the catalog inside Fuego.Lib.

    The processId parameter (the variable "idOfProcess" in the logic above) is the thing that I most often live with that. This is the text that you see when you process in the project right-click browser tab-> "Properties". Look at the value in the field 'Id' and not the field 'Name' (the name without a space). Prefix with "/" as presented here and if you have deployed this using a unit of Organization (UO) then prefix this chain also.

    The third parameter is almost always "BeginIn". Start of activities in a process can have several incoming argument mappings, the default value is "BeginIn". See your, double-click the process Begin activity and seek on behalf of mapping in the upper left corner of the dialog box.

    "argsIn" is the set of variables of incoming arguments you want to spent in the process. A common error is to type the names of the variables argument entering without the double quotes, as follows:

    . . .
    // this will *NOT* work
    argsIn[someArgVarName] = "Hello"
    argsIn[someBpmObject] = myBpmObject
    . . .
    

    Here is the correct syntax:

    . . .
    // this *WILL* work
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    . . .
    

    In this example, the process has two argument variables. It doesn't matter if the incoming arguments are arguments of primitive type (e.g. String, Integer, Decimal...) or objects of BPM, it is always in the same way. In this example, there is an incoming string argument, called "someArgVarName" and an argument entering BPM object called "someBpmObject".

    Hope this helps,
    Dan

  • Call the process page when clicking on a link to report

    Hi all
    I want to call a process of conditional page when clicking on a link to report;
    That is to say the process runs only if the user clicks on the report link.
    How can I do this?

    Thanks for your help.

    Concerning
    Ozzie

    Hello

    Yes, if you use the column change attributes report, in the section "links" column you can assign values to some articles.

    But if you only need to apply, you should probably use URLS like target and a javascript:doSubmit('REQUEST');.

    Kind regards
    Andrea

Maybe you are looking for