Computation/validation processing

I'm working with APEX3.0 - under 'Page Processing' I've created a computation and a validation - both are to initiate after a 'GO' button is pressed. Based upon the doc I've read I assumed the validation would fire first and prevent any subsequent processing if the validation failed. Unfortunately, that's not my case - the computation (seq 30) is executing prior to the validation (seq 20), creating problems with the PL/SQL associated within the computation. I've developed a workaround by duplicating the validation code within a computation condition - this seems redundant and it would appear I don't have the sequence quite right. I just simply need the validation to initiate prior to the computation. Any direction appreciated. Thank you.

Scott,
Thanks for the advice - profile updated. I suppose I don't fully understand your 'process' recommendation - I understand the code you've supplied but not the concept. This is my first APEX application so I apologize for not elaborating. The computation I've created generates the value for an item. This computation requires 2 additional items from the same page (entered by the user) as input. I was hoping to validate the fields prior to the computation firing but as you explained, that is not the order in which APEX processes them. If you could expound a little further on your 'process' advice I'd appreciate it. Thanks again.

Similar Messages

  • My windows software did not pass genuine validation process. how can i validate it?

    am using windows xp and there is an alert that my computer might be at risk because my software did pass genuine validation process. how can i help this?

    hello, this is a support forum for the mozilla firefox web-browser. we cannot help you with any problems regarding the validatiobn of your windows copy. please contact the microsoft support channels mentioned in the alert...
    a not related issue that also needs your attentions: from the system details that you've submitted it appears as you are using a very outdated version of firefox - there are [http://www.mozilla.org/security/known-vulnerabilities/firefox.html dozens of very critical security vulnerabilities] in firefox 5. please update to the latest firefox version 13 as soon as possible & also do a check of your plugins.
    www.getfirefox.com
    https://www.mozilla.org/plugincheck/

  • Best way to create a multi-step validation process

    I am writing a multi step validation process and I was wondering what is the best method to have it operate on the value.  What I have:
    As a custom validation script, in that order:
    1- Calls a function that looks if the value is part of a particular array
    2- Calls a function that regroup some tests
         2a- function test1()
         2b- function test2()
         2c- function test3()
         2d- function test4()
    What I have now is every test ends as 'event.rc = false' when they fail which is what I need but I also need to stop the entire validation process.  As an example, if the value fails test2() and gets a "you have failed test 2" alert, I don't want to call test3() and test4() since it is already decided that it failed one of the tests.  I could return a boolean that triggers (or not) the next test() but isn't there a simple way to just say
    event.rc = false;
    "STOP EVERYTHING";
    I have the assumption that break; will only stop the test() but still move on to the next test().  Maybe I can return break; so it will be called from the 'master function'?   Is that even possible?

    Create another function and call it from the validation script, something like:
    function validate_field() {
        // Call the first validation routine
        test0();
        // Abort if first validation fails
        if (!event.rc) return;
        // Call the second validation routine
        test1();
        // Abort if second validation fails
        if (!event.rc) return;
        // Repeat for any other tests

  • Validation Process

    I have a java code that is calculating the marks of students and giving them there average. I just cant seem to make a validation process run. I need it to allow them to only enter in a number between 1-100, and no letters. this is what i have in the way of code, if you could help me work a validation process to do that into it. thx
    import java.awt.*;
    import hsa.Console;
    public class ASMT11_LemireE
    static Console c; // The output console
    public static void main (String[] args)
    c = new Console (); //'c' is the output console
    // Place your program here:
    // Place your program here:
    //Identifiers
    String name;
    String mark1;
    String mark2;
    String mark3;
    String mark4;
    //Name of student
    c.setTextColor(Color.red);
    c.print("Please Enter Full Name:");
    c.setTextColor(Color.blue);
    name = c.readLine ();
    //First Term Marks
    c.setTextColor(Color.green);
    c.println("First Term Marks:");
    //Mark 1
    c.setTextColor(Color.red);
    c.print("Please enter mark for first course:"); //Question
    c.setTextColor(Color.blue);
    mark1 = c.readLine (); //response
    //Mark 2
    c.setTextColor(Color.red);
    c.print("Please enter mark for second coruse:");
    c.setTextColor(Color.blue);
    mark2 = c.readLine ();
    //Mark 3
    c.setTextColor(Color.red);
    c.print ("Please enter mark for third course:");
    c.setTextColor(Color.blue);
    mark3 = c.readLine ();
    //Mark 4
    c.setTextColor(Color.red);
    c.print ("Please enter mark for fourth course:");
    c.setTextColor(Color.blue);
    mark4 = c.readLine ();
    //Clear the screen
    c.setTextColor(Color.green);
    c.println("Press any key to see the marks you got");
    c.getChar();
    c.clear();
    //System.out.println("This is the second page");
    //Show marks
    c.setTextColor(Color.green);
    c.println("These are your marks:");
    //Print Marks
    c.setColor (Color.blue);
    c.drawString ("First Course:" + mark1, 10, 40);
    c.drawString ("Second Course:" + mark2, 10, 60);
    c.drawString ("Third Course:" + mark3, 10, 80);
    c.drawString ("Fourth Course:" + mark4, 10, 100);

    do{
       //Mark 1
      c.setTextColor(Color.red);
      c.print("Please enter mark for first course:"); //Question
      c.setTextColor(Color.blue);
      mark1 = c.readLine (); //response
    }while(!checkMark(mark1));and
    public static boolean checkMark(String mark) {
              try {
                   int m = Integer.parseInt(mark);
                   if (m < 1 || m > 100) {
                        return false;
              } catch (NumberFormatException e) {
                   return false;
              return true;
    }

  • Disable Html button in validation process using pl/sql

    Hi,
    I need to disable a html page button. It gets re-enabled afer a validation process is run on the page and errors for the form are returned. I need a way of writing a validation process using pl/sql returning boolean, that can disable the button again.
    I've tried:
    IF lname > 0 THEN
    Return TRUE;
    Else
    htp.p('<script type="text/javascript">');
    htp.p('document.getElementById("NEW_ENTRY").disabled=true');
    htp.p('</script>');
    Return FALSE;
    End If;
    The button id is NEW_ENTRY, but this is ignored and the buttons remains enabled.
    Any ideas on how to change the code to work?

    You have to create after region process that will be triggered on some condition.
    htp.p('
    <script type="text/javascript">
       document.getElementById("NEW_ENTRY").disabled="true";
    </script>
    ');

  • Would apple Support send me an email saying: "   We need to ask you to complete a short and brief step to securing and validating your account information.   Click here to complete validation   Failure to complete our validation process will result in a s

    We need to ask you to complete a short and brief step to securing and validating your account information.
    Click here to complete validation
    Failure to complete our validation process will result in a suspension of your Apple ID.

    You are welcome. The emails are difficult to block effectively, because the spammer/phishers continually fake their sending email address. You can, however forward the email to Apple.
    [email protected]

  • Demand Plan Validation Process Error - None of the Internal Organizations attached are included in plan scope

    Hi All,
    Following error on validating Demand Plan.
    Process Name: Demand Plan Validation Process
    None of the Internal Organizations attached are included in plan scope
    Please suggest.
    Thanks
    Abhishek

    It seems that nobody is facing any issues except me.
    If anybody is facing problems and have solved such problem, please respond.

  • Adobe XI processes left open with no threads to a valid process

    Processes are being left open after attempts to generate PDF's.
    The system is using the latest update for Acrobat XI.  This was not an issue with this version before about February, January for sure.
    Windows 7 Professional
    16G memory
    XEON processor
    Domain environment
    The user makes the request to generate the PDF's, which get generated.  But after, a process remains on the system.  It has no attachment to the main process that generated the PDF, as that process is gone.  The processes have no valid window, however, they have a lock on the file.  In order to clear the lock one of two things must happen.  Either the computer that was generating the PDF's needs to be restarted, or the locks need to be deleted from the server.  Neither one is a good option.
    Is it time to look for another PDF product?  What works good with AutoCAD?

    In your post https://forums.adobe.com/thread/1572490 you show message 'Documents is not a valid short file name'.  Now you have the same problem with AI_RecycleBin?

  • Error validating process flow VLD-10010 after upgrade from 9i to 11gR2

    Upgraded OWB from 9i to 11g, and after upgrade all the process flows where throwing the below error while validating
    VLD-10010: DIM_COUNTRY_UI's bound object DIM_COUNTRY_UI of type PLSQL Map has been deleted.
    After synchronizing the mapping to itself, this error goes off, but synchroinzing in GUI for more than 300 mapping is huge task.
    Anyway to sychronizing in bulk in OMBPlus?
    Thank for help
    Regrds
    Samuel.

    Hi
    Plz, check /etc/hosts
    is IP and computer name valid?

  • Difference between Computation and Process

    Any Computation can also be implemented as a Process. Their "firing points" are also the same.
    So, why do Computations exist at all?
    Thanks

    Vikas - I don't know but computations always fire before processes at any given firing point allowing processes to reference session state that may have been set by a computation at the same or earlier firing point. It's true though that a process can set session state as well, so a computation is just a special-purpose process with declarative attributes that allow for application or page items to be named as the object of the computation. But then a validation is merely a special-purpose process that does what it does. And a branch is a special-purpose process that does a URL redirect or something similar, and before there were report regions there were just processes...
    Scott

  • Problem Validating & Processing Transformation file in NW 7.0 version

    I am trying to Validate & Process Transformation File against my Data file I am getting the error message that I have at the below. When I validate the Conversion files, I see the creation of corresponding .CDM files. I even deleted the .CDM files and recreated the files.
    So my question is why it is giving "Sheet does not exist  (CONVERSION)" warning for which it is rejecting the records inside the Data File?
    DATA FILE:
    C_Category,Time,R_ACCT,R_Entity,InputCurrency,Amount
    ACTUAL,2007.DEC,AVG,GLOBAL,USD,1
    ACTUAL,2007.DEC,END,GLOBAL,USD,1
    ACTUAL,2007.DEC,AVG,GLOBAL,JPY,110
    ACTUAL,2007.DEC,END,GLOBAL,JPY,110
    ACTUAL,2007.DEC,HIST,GLOBAL,JPY,110
    ACTUAL,2007.DEC,HIST,GLOBAL,USD,1
    ACTUAL,2008.MAR,AVG,GLOBAL,USD,1
    ACTUAL,2008.MAR,END,GLOBAL,USD,1
    ACTUAL,2008.MAR,AVG,GLOBAL,JPY,107.5
    ACTUAL,2008.MAR,END,GLOBAL,JPY,105
    ACTUAL,2008.MAR,HIST,GLOBAL,JPY,110
    ACTUAL,2008.MAR,HIST,GLOBAL,USD,1
    TRANSFORMATION FILE:
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = ,
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    SPECIFICMAPPING=YES
    *MAPPING
    C_Category=*col(1)
    Time=*col(2)
    R_ACCT =*col(3)
    R_Entity=*col(4)
    InputCurrency=*col(5)
    Amount=*col(6)
    *CONVERSION
    C_Category=[COMPANY]C_Category.xls!CONVERSION
    Time=[COMPANY]Time.xls!CONVERSION
    R_ACCT=[COMPANY]R_ACCT.xls!CONVERSION
    R_Entity=[COMPANY]R_Entity.xls!CONVERSION
    InputCurrency=[COMPANY]InputCurrency.xls!CONVERSION
    ERROR
    [Start validating transformation file]
    Validating transformation file format
    Validating optionsu2026
    Validation on options was successful
    Validating mappingsu2026
    Validation on mappings was successful
    Validating conversionsu2026
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Validation on conversions was successful
    Creating the transformation xml file; wait a moment
    Transformation xml file saved successfully
    Connecting to server...
    Begin validate transformation file with data fileu2026
    [Start test transformation file]
    Validate has successfully completed
    ValidateRecords = YES
    Task name CONVERT:
    No 1 Round:
    Record count: 12
    Accept count: 0
    Reject count: 12
    Skip count: 0
    Error: All records are rejected

    *CONVERSION
    C_Category=C_Category.xls
    Time=Time.xls
    R_ACCT=R_ACCT.xls
    R_Entity=R_Entity.xls
    InputCurrency=InputCurrency.xls
    On validating with the above format, I still getting the same error
    [Start validating transformation file]
    Validating transformation file format
    Validating optionsu2026
    Validation on options was successful
    Validating mappingsu2026
    Validation on mappings was successful
    Validating conversionsu2026
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Sheet does not exist  (CONVERSION)
    Validation on conversions was successful
    Creating the transformation xml file; wait a moment
    Transformation xml file saved successfully
    Connecting to server...
    Begin validate transformation file with data fileu2026
    [Start test transformation file]
    Validate has successfully completed
    ValidateRecords = YES
    Task name CONVERT:
    No 1 Round:
    Record count: 12
    Accept count: 0
    Reject count: 12
    Skip count: 0
    Error: All records are rejected

  • Digital Signature Validation process goes into unending state

    Hi all
    I am working Adobe Digital Signatures in Web Dynpro Java applications. I have been using [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/media/streamingmedia/developer-areas/user-interface-technology/interactive-forms/securing%20online%20interactive%20forms%20by%20adobe%20(Session%208)/index.html?slide=] webinar to follow steps to configure SSL and validation of Digital Signatures.
    After doing all necessary configurations, I am able to run my web dynpro applications containing interactive forms in secure mode.
    But when I sign with digital signature and try to validate the form, the application keeps on processing and shows no result.
    I tried debugging my application but control does not reach my button action code. I am clueless.
    I would be thankful to receive any hints or pointers from you.
    Thanks in advance.
    Kapil

    Following blog discusses solution to this prob
    /people/kapil.kamble/blog/2009/07/08/experimenting-with-digital-signatures-in-sap-interactive-forms-by-adobe
    Kapil

  • DPC spike at Windows automatic maintenance startup. Can not leave the computer alone processing real-time streams.

    This is what happens when I leave the computer idle for a while and the Windows automatic maintenance starts:
    Driver file      Description               ISR count  DPC count  Highest execution (ms)  Total execution (ms)
    ntoskrnl.exe  NT Kernel & System   0              50764        0,235854                    
     332,950426
    A DPC spike is generated by ntoskrnl.exe causing drop outs in real-time streams.
    JTS

    Hi Fjtorsol,
    We hope your issue has been resolved, if you've found solution by yourself. you could share with us and we will mark it as answer.
    This high Deferred Procedure Call (DPC) latencies are usually caused by certain drivers, if it is caused by automatic maintenance, please re-check your task schedule which is marked as “when computer is idle”. As what has been suggested by MVP ZigZag, please
    use the Microsoft Windows Performance Analyzer from the Windows Assessment and Deployment Kit (ADK) to identify the cause of any DPC latency spikes.
    https://www.microsoft.com/en-gb/download/details.aspx?id=39982
    DPC CPU Usage Summary Table will open containing a list of drivers/program. This list is already correctly sorted (by the Actual Duration column). The process on the very top of the list is therefore likely to be the cause of your problem.
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Failed Item Validation = Process Before Headers isn't run? (APEX 2.2.0)

    Hi, all,
    I have an item validation that fails. When the page reloads, I see the following in the debug output:
    Do not run process "P41_BEFORE_HEADER", process point=BEFORE_HEADER, condition type=, when button pressed=If that process doesn't run, a flag I used to decide whether or not to display certain Page 0 regions never gets set properly, resulting in a mess.
    Is there a way around this? The only thing that I can think of is to run the same code in a failed validation that gets run in my process. Is there a more elegant way?
    Thanks!

    I ended up finding Page rendering process doesn't run after validation error which basically says to make a PL/SQL region with an empty template and put any display-related PL/SQL there. I set the PL/SQL region's display point to "After Header", which is before any of my other regions.
    I have a bunch of P0 regions that get conditionally displayed based on session state items set in the "Before Headers" process. All of the items are cleared by an application After Footer process. I don't want to rely on the session state, however, as the user might navigate using the browser buttons on a failed submit, and that might produce odd results. Unfortunately, I've realized that the application-wide processes don't get run either.
    It seems that my option is just to create a PL/SQL function
    FUNCTION SHOW_REGIONS
    THIS_REGION BOOLEAN := FALSE
    , THAT_REGION BOOLEAN := FALSE
    , THE_OTHER_REGION BOOLEAN := FALSE
    and call that function from my empty PL/SQL region, passing in true values for the regions that I want to show. Either this function would set application-level items, or other functions to get the individual flags could be called from each of the Page 0 region conditional display code. I think I will do the latter, unless there is some better way.
    Thanks!
    Message was edited by:
    Don_84
    CREATE OR REPLACE PACKAGE BODY
        TEST_PAGE_0_CONDITIONS
    AS
        my_flag_one BOOLEAN := FALSE;
        my_flag_two BOOLEAN := FALSE;
        PROCEDURE SET_DISPLAY_FLAGS
                FLAG_ONE BOOLEAN := FALSE,
              , FLAG_TWO BOOLEAN := FALSE
        IS
        BEGIN
            my_flag_one := FLAG_ONE;
            my_flag_two := FLAG_TWO;
        END;
        FUNCTION GET_ONE
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN my_flag_one;
        END;
        FUNCTION GET_TWO
            RETURN BOOLEAN
        IS
        BEGIN
            RETURN my_flag_two;
        END;
    END;

  • Computation or Process ?

    Hi there,
    I have the following values in my variable :P4_Linie
    -9:TEST1:TEST2:TEST3
    Now I know how to convert the ":" into "," and how to replace the -9. The -9 is the "all selector" of a checkbox pluging meaning if all checkboxes are checked the value -9 is given before the checkboxes data so sometimes it is there and sometimes not.
    I know how to do this in a select statement:
    SELECT *  FROM mv_auswertung WHERE INSTR (
              REPLACE (:P4_LINIE, '-9', '')
              ':'||Linie||':') > 0Now I get TEST1,TEST2,TEST3 and now I can use this in a select into query.
    But I need apex to do this via PL/SQL process or computation so the item is given to the next page in my items to submit.
    I need to submit TEST1,TEST2,TEST3 for my IR. Hoping you can help.
    Thx in advance
    Thorsten

    Thorsten,
    Hmm. I have a few ideas, as well.
    Do you want the value of :P4_LINIE actually changed to the new value without the "-9:" on page 4 or do you just want the new/changed value available to the new page?
    (Related question) Do you want the computation to happen before page 4 is displayed or just before transferring to the new page?
    Do you have a Submit button to get to the next page; what's the mechanism for transferring to the new page?
    There are two (or more) ways to do this.
    -- 1) Merely reference/use :P4_LINIE on the new page? But I think we have to ensure :P4_LINIE is saved in the session state for this to work.
    -- 2) Pass :P4_LINIE to :Px_LINIE on the transfer to page x.
    But I need to know how you (want to) transfer to the new page.
    Howard

Maybe you are looking for

  • Acrobat 9 Pro & Word 2008 doc with sections problem

    I have recently switched from Windows to a MacBook Pro and am just now using Word 2008 & Acrobat 9 Pro for the Mac. I have an 11-page Word doc (created with Word XP before the change) that has several sections in it (to change page orientation). When

  • T61 hangs after power outage

    Anyone every hear of this I have several T61's that when the power drops the pcs hang up and need to be powered down and restarted to get everything back up and running They are in docking stations when this happens and vary between xp sp3 and vista

  • Web Dynpro Java - Messages

    Hi, In my application, I want to delete all error messages when user licks on back button, because those messages are still displayed in the previous view. How can I do? which method has to be called? Many thanks Karim

  • How to/Is it Possible to Disaggregate System Prefs with Parental Contol

    Thanks in advance. It appears that within Parental Controls it is only possible to allow access to all of the System Preferences or none. I would like to allow the kids to change their background, colors, screen savers, etc. but not be able to get to

  • How to view lifecycle for component usage

    Greetings- I have declared use of one component to another in the diagram view.  I initially set the lifecycle to "CreateOnDemand" using the "New Component Usage" wizard but now I'd like to change this to "Manual".  However, I don't see the lifecycle