How to detect an error from ajax get

Hi -- This is in a javascript function.
I have an object ajaxRequest defined as:
ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
I call the app process as follows:
ajaxResponse = ajaxRequest.get();
The app process just looks up a value in the DB based on another. It works fine
when there's a match. When there's not a match, I can see that the ajaxResponse
contains "sqlerrm: ORA- ... ". And of course a json.parse fails.
How can I detect that the get returned an error? I can't just search
ajaxResponse for an string, right? (It doesn't appear that that object is
simply treated as a string... )
Thanks,
Carol

hi John -- Sounds good, but I guess I'm not sure how to go about it.
LOOKUP_VALUE is:
DECLARE
-- Set wwv_flow.g_x01, g_x02, g_x03, g_x04 and g_x05 in the
-- javascript part
p_source_item_value varchar2(1000) := wwv_flow.g_x01;
d_source_column_name varchar2(32) := wwv_flow.g_x02;
d_dest_column_name varchar2(32) := wwv_flow.g_x04;
d_lookup_table_name varchar2(32) := wwv_flow.g_x05;
BEGIN
--Use this to get a JSON string back in the javascript,
-- based on the SQL query
APEX_UTIL.JSON_FROM_SQL('SELECT '||d_dest_column_name||' RETURN_VAL FROM '||d_lookup_table_name||'@'||:DB_NAME||' WHERE '||d_source_column_name||' = '''|| p_source_item_value||'''');
END;
So, it's returning this JSON object to the javascript. As I said, it works fine when there's a match.
I'm not sure how to catch an error in the LOOKUP_VALUE process and get it back to the javascript. Ideas?
Also, even if I do get that going, I'm not sure how to check the returned object for some sort of problem.
The javascript function code is below. Look for #### for my comments. Essentially, right now, if
there is an error in the json object (it's showing up as a numeric or value error), the parse fails. So I
need to detect the problem before the parse. OR, if I can just modify LOOKUP_VALUE to plug in
something like 'NO MATCH' when there's a problem or no value is found, then I think json.parse will work
and my page item can just be set to NO MATCH. Does this make sense?
Here's the function.
Thanks for your help!
Carol
function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
// Continue only if there are valid values
if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
//Check to see if the source_item_value is null (either all spaces or empty
//If it is, set the dest item to null, but only if it's not already --
//otherwise we get into a loop.
source_item_value = trim(source_item_value);
dest_item_value = trim($v(dest_item_name));
if (source_item_value.length==0) {
if (dest_item_value.length != 0) {
$s(dest_item_name, null);
}else{
//This is the AJAX call to the Application Process from step 1
ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
//Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
ajaxRequest.addParam('x01', source_item_value);
ajaxRequest.addParam('x02', source_column_name);
ajaxRequest.addParam('x03', dest_item_name);
ajaxRequest.addParam('x04', dest_column_name);
ajaxRequest.addParam('x05', lookup_table_name);
//Now do the actual AJAX call and put the result in ajaxResponse
ajaxResponse = ajaxRequest.get();
//Check if there is a response
if (ajaxResponse) {
// ######### When there's no row matching the query, this alert shows
// "sqlerrm: ORA-06502 PL/SQL: numeric or value error"
// Can I somehow check ajaxResponse for that string?
alert("Response from APP process: " + ajaxResponse);
//We need to format the JSON return string and put it in a JSON object
// the formatting is done by a function in the external JSON library
// the jsonobj can be used to retrieve the data returned by the App process
// ######### If there was an error, the parse fails
var jsonobj= ajaxResponse.parseJSON();
alert('Filtered returned value from APP process: ' + jsonobj.row[0].RETURN_VAL);
// And finally, we set the DNAME item with the value of the jsonobj.DNAME
// an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
// ########## I'd like to just set the destination item w/ something like "NO MATCH"
// probably regardless of the error...
$s(dest_item_name, jsonobj.row[0].RETURN_VAL);
}else{
//alert ('NOT setting dest item');
} //not setting
}else{
alert('No response from app process');
} //no response
} //no source item value
} //no bad nulls
} //function

Similar Messages

  • How to solve this error from window phone 80073cf9 lumia 630.

    any one know how to solve this error from window phone 80073cf9  lumia 630.

    Hello Muhammad,
    We appreciate the post, but this forum is for Windows Store and Phone Developer related questions. Your question can best be answered through the
    Windows Phone support page.
    Thanks!
    -Jonathan
    Windows Store Developer Support
    Office Store Developer Support

  • ANSWER: HOW TO DETECT Java Plugin from JavaScript

    I created a new topic because the questions about
    how to detect Java Plugin in browsers are scattered
    thoughout this forum.
    Basically you need to employ two approaches for IE and NS.
    In IE you need to try to instantiate a small applet
    (not your production applet) in order to see if browser
    can do it. if the browser can do it, you can make a
    call applet from JavaScript in order to find version of
    JRE (as well as a host of other things).
    In NS you can write a simple JavaScript which will
    interrogate the browser for all plugins installed. Then
    ypu can make a desicion whether to pass execution to
    the next(or generated) page which hosts your applet,
    or ask the user to download/install a plugin.
    I ecourage everybody to host a plugin on your site
    rather leave default link to it which is generated by
    html converter.
    In order to run sample,
    Prerequisites:
    Java Plugin 1.3.
    If you have a different version of plugin,
    substitute hardcoded plugin version in JavaScript for
    value that you have.
    1. compile java file
    2. put class file in the same directory with html file
    3. load html file into the browser.
    4. press "Check Java Plugin.." button
    5. see it work
    6. examine code
    7. uninstall plugin
    8. repeat steps 1 - 4
    9. see it work
    10. install plugin.
    Sample code follows:
    **********************HTML FILE BEGIN***********
    <HTML>
    <HEAD>
    <!-- Generated by Kawa IDE -->
    <TITLE>Detect Java Runtime</TITLE>
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    var browsername;
    function doNetscape()
    for (i=0; i < navigator.plugins.length; i++)
    for (j = 0; j < navigator.plugins.length; j++)
    if(navigator.plugins[i][j].type == "application/x-java-applet;version=1.3")
    alert("You are running Netscape with Java Plugin 1.3.0 - OK");
    return;
    alert("You are running Netscape\nPlease, install Java Runtime Environment 1.3.0");
    function doMicrosoft()
    var applet = document.myApplet;
    if(applet == null)
    alert("You are running Microsoft Browser.\nPlease, install Java Runtime Environment 1.3.0");
    return;
    var version = applet.getJavaVersion();
    if(version == "1.3.0")
    alert("You are running IE, Java Plugin 1.3.0 installed - OK");
    else
    alert("You are running IE, other plugin installed - mybe OK if later that 1.3.0\nYour version: " + version);
    function getJava()
    var applet = document.myApplet;
    if(applet == null)
    alert("Please, install Java Runtime Environment");
    return;
         alert("JRE Version: " + document.myApplet.getJavaVersion());
    function checkJavaPlugin()
         browsername = navigator.appName;
         if(browsername.indexOf("Netscape")!= -1)
              browsername="NS";
              doNetscape();
         else
              if(browsername.indexOf("Microsoft")!=-1)
                   browsername="MSIE";
                   doMicrosoft();
              else
                   browsername="N/A";
                   alert("Unknown browser: " + browsername);
    </SCRIPT>
    <body>
    <Strong>Check Java Plugin</strong>
    <OBJECT id="myApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         WIDTH = 1
         HEIGHT = 1 >
         <PARAM NAME = CODE VALUE = "DetectPluginApplet.class" >
         <PARAM NAME="scriptable" VALUE="true" >
         <embed type="application/x-java-applet;version=1.3"
              code = DetectPluginApplet width = 2 height = 2 MAYSCRIPT = "true" >
         </embed>
         </EMBED>
    </object>
    <FORM>
         <INPUT TYPE="button" value="Get Plugin Version in IE" onClick="getJava()">
         <INPUT TYPE="button" value="Check Java Plugin in NS and IE" onClick="javascript:checkJavaPlugin()">
    </FORM>
    </BODY>
    </HTML>
    **********************HTML FILE END***********
    ***************APPLET FILE BEGIN***********
    import java.awt.*;
    public class DetectPluginApplet extends java.applet.Applet
         public void init()
              add(new Label("DetectPluginApplet"));
    public String getJavaVersion()
    return System.getProperty("java.version");
    **************APPLLET FILE END************

    Try following java script, it works on new browsers (NS 4+, IE5+). For IE you have to enable 'ActiveX objects creation' in security options.
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
    && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
    && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.0") !=-1));
    var is_ie5up = (is_ie && (is_major == 4)
    && ( (agt.indexOf("msie 5.0")!=-1)
    || (agt.indexOf("msie 5.5")!=-1)
    || (agt.indexOf("msie 6.0")!=-1) ) );
    var pluginDetected = false;
    var activeXDisabled = false;
    // we can check for plugin existence only when browser is 'is_ie5up' or 'is_nav4up'
    if(is_nav4up) {
    // Refresh 'navigator.plugins' to get newly installed plugins.
    // Use 'navigator.plugins.refresh(false)' to refresh plugins
    // without refreshing open documents (browser windows)
    if(navigator.plugins) {
    navigator.plugins.refresh(false);
    // check for Java plugin in installed plugins
    if(navigator.mimeTypes) {
    for (i=0; i < navigator.mimeTypes.length; i++) {
    if( (navigator.mimeTypes[ i].type != null)
    && (navigator.mimeTypes[ i].type.indexOf(
    "application/x-java-applet;jpi-version=1.3") != -1) ) {
    pluginDetected = true;
    break;
    } else if (is_ie5up) {
    var javaVersion;
    var shell;
    try {
    // Create WSH(WindowsScriptHost) shell, available on Windows only
    shell = new ActiveXObject("WScript.Shell");
    if (shell != null) {
    // Read JRE version from Window Registry
    try {
    javaVersion = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion");
    } catch(e) {
    // handle exceptions raised by 'shell.regRead(...)' here
    // so that the outer try-catch block would receive only
    // exceptions raised by 'shell = new ActiveXObject(...)'
    } catch(e) {
    // Creating ActiveX controls thru script is disabled
    // in InternetExplorer security options
    // To enable it:
    // a. Go to the 'Tools --> Internet Options' menu
    // b. Select the 'Security' tab
    // c. Select zone (Internet/Intranet)
    // d. Click the 'Custom Level..' button which will display the
    // 'Security Settings' window.
    // e. Enable the option 'Initialize and script ActiveX controls
    // not marked as safe'
    activeXDisabled = true;
    // Check whether we got required (1.3+) Java Plugin
    if ( (javaVersion != null) && (javaVersion.indexOf("1.3") != -1) ) {
    pluginDetected = true;
    if (pluginDetected) {
    // show applet page
    } else if (confirm("Java Plugin 1.3+ not found, Do you want to download it?")) {
    // show install page
    } else {
    // show error page
    }

  • How do you stop Firefox from suddenly getting an error message saying tabs are still open when opening the browser??

    We have a MAC OS X 10.6.8 and all of the sudden when we close out of Mozilla (both by using the red x and also using "quit") the next time we open Mozilla it has a "well this is embarrassing" Error screen and asks us if we want to re-open our last session. Then it will have whatever email, webpage, fb page, etc that we were on and we can either close it or reopen it.
    This started last week, we have had the computer 2 years and have never had this problem before. I tried re-starting Mozilla and after a few hours it started doing it again.

    hello, this should be addressed in a later version of firefox. as a workaround in the meanwhile you could try this: enter '''about:config''' into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''browser.sessionstore.resume_from_crash'''. double-click it and change its value to '''false'''.

  • How to Detect System Availability from WD Application Integrator iView

    Hey All -
    I've created an WD ABAP iView using the wizard (SAP Web Dynpro iView template) to connect to SAP's SNC bolt-on module (Supplier Network Collaboration).  The application is written in ABAP WD and I can connect to it rendering the application just fine by supplying the correct namespace and application name.
    When I simulate SNC not being available for some reason (down), I do not get any kind of message - Just a blank iView.  My user community would like a custom error message telling them that the "system is unavailable."
    How do I accomplish this ??  In a nutshell - when I cannot access the application, how can I control what the user see's in the iView ?  Do I need to create a custom template or what would be the best way to handle this.  I assume this is a common question, but was unable to locate it.
    Many thanks in Advance !!

    Hi Christopher,
    the WD ABAP iView will only display whatever the underlying system returns. Are you able to send back a message from the SNC system when it's unavailable? If not you would have to create a custom iView that can detect if the system is down and report it to the user. The iView could first check if the system us up and running and if so redirect the user to the application. If not it would display a message. Alternatively, you could have both in a page where the first one raises an event depending on the SNC system status. The WD app would subscribe to that event and react accordingly.
    Hope this is of help.
    Cheers,
    Dion

  • How do I handle errors from a call to an http handler routine on the server?

    I have written an http handler for the server. It is used for file uploads. It works fine.
    However, if the server gets any kind of exception, I don't seem to get anything back in the Silverlight httpWebRequest.  It seems like something in the communications sees the exception as a  "server not found" type error.  And a
    Dialog pops up that appears to NOT be my code that says the message.
    For my WCF calls, I implemented a SilverlightFaultBehavior that switched the status code to OK and I was able to get the server exceptions from my WCF calls into my Silverlight app.
    But how do I do that for an http handler?  What do I have to add, if anything to the server side and what do I need to do on the Silverlight client side?

    How are you calling your service?
    You should be doing asynchronous calls and supplying a callback with silverlight.
    Check for errors in the callback.
    FileListServiceReference.FileListServiceClient proxy = new ITSupport.FileListServiceReference.FileListServiceClient();
    proxy.GetFileListCompleted += new EventHandler<ITSupport.FileListServiceReference.GetFileListCompletedEventArgs>(proxy_FileListCompleted);
    proxy.GetFileListAsync(fileList);
    void proxy_FileListCompleted(object sender, ITSupport.FileListServiceReference.GetFileListCompletedEventArgs e)
    ObservableCollection<ImageVM> ims = new ObservableCollection<ImageVM>();
    if (e.Error == null)
    That does stuff if there's no errors and returns nothing if there are but you might want more sophisticated handling.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • How to detect concurrent updates from MS Access database

    Hi...
    I would like to know how can LV detect the MS Access database if there is any updates data from others application such as VB6 through the same database.. I do not want the LV to check from the database so oftenly. It will only do the checking / refreshing of data when there is a new data updated by other software (like VB) into the same database. THANKS!!......

    222,
    It sounds like you want MS Access to send an event or callback to your Labview program whenever it receives an update.  I'm definitely no Access expert, and I'm not sure if the program can generate events like that (I've done some searches at Microsoft.com, with no luck so far).  I would suggest going to Microsoft's website to either contact technical support with the question, or post to their forums.  The first step would be figuring out if it's possible to generate such an event, and if so, we can go from there.  If not, the polling method might be the only option.  Here are some links that will help get you started:
    Microsoft Access Home
    Microsoft Office Access 2003 Help and Support
    -Justin

  • How to detect data errors?

    In applications such as healthcare, errors in data stored in a database could lead to so called Adverse Events even death of a patient. Clearly, if erroneous data could be detected then the user could be warned not to trust what is displayed.
    So, what happens in practice? If hardware failure or flawed software were to cause occasional data errors in a Oracle Database, would such errors be detected by the database engine or is detection left to the application? For example, a single bit error relating to an index that is supposed to be unique or a field containing a code representing a patient's blood type. When would this violation of integrity be detected and how would such errors become evident? Is it credible that such errors could cause incorrect data to be returned from a query?
    Clearly CRC or hashing functions could be called using appropriate triggers to provide field or record level error detection.
    1. Is anyone doing this?
    2. What is the recomended approach ?
    3. What is the performance penalty likely to be?
    4. Is there any documentation that describes this ?
    Thanks,
    James

    Hi,
    you have two parameters called DB_BLOCK_CHECKSUM and DB_BLOCK_CHECKING, which calculate checksums by reading (DB_BLOCK_CHECKING) and writting (DB_BLOCK_CHECKSUM)
    Some storage vendors like Hitachi work closely with Oracle to provide additional protections against data corruption. Look for the Oracle H.A.R.D. initiative at http://otn.oracle.com/deploy/availability/htdocs/vendors_hard.html
    You will then find documentation on the storage vendor site as well.
    Regards
    Laurent Schneider
    OCM DBA

  • How to raise Workflow error from pl/sql procedure

    Hi,
    I have this OWB mapping that runs a PL/SQL procedure. The mapping is deployed to Workflow and OEM. The workflow is scheduled and run from OEM,
    and I can watch its progress/completion in the Workflow Monitor. Occasionally, the PL/SQL hits a situation I want to flag as an error to OWF so
    that the OWF standard error process can be activated.
    How can I do that? I try to raise an exception from the proc by calling OWF's core API (WF_CORE.RAISE etc.), but nothing happens.
    From Workflow monitor no errors are detected, and the workflow seems to complete normally.
    Any clues?
    Regards
    Rolf

    Rolf,
    I am no workflow expert but it seems to me that you trying to build a workflow exception handler by using the engine APIs (WF_ENGINE). In particular, you could call the WF_ENGINE.ABORT_PROCESS API and set the status to exception. This can be called from an exception handler using the WF_ENGINE.HandleError API.
    As far as I know, the WF_CORE API mentioned by you will simply return an exception to the caller, but this will not affect the process flow.
    For more details, please take a look at the workflow documentation, in particular if you log into the metalink site (metalink.oracle.com), go to the document http://metalink.oracle.com/cgi-bin/cr/getfile_cr.cgi?282250 which is the user's guide and look under chapter 8 which deals with APIs.
    Regards:
    Igor

  • Create Procedure - How to Detect Compilation Errors

    Hi,
    I am working on an application where users will be able to type in their own stored procedures. I perform some basic parsing of the function spec, to make sure it is well-formed, but that's all the parsing I do. I assumed an SQLException would be thrown by the executeUpdate() call which creates the procedure if the procedure is malformed. This is not the case. executeUpdate() returns 0, whether or not the procedure was created with compilation errors.
    After they type it in, I would like to be able to tell the user whether or not their procedure is syntactically correct. Given that writing a complete PL/SQL parser in Java is obviously out of the question, how can I do this? There must be a way.
    Thanks in advance for any and all help,
    James

    Note that there is a USER_ERRORS table.
    You could DELETE FROM USER_ERRORS before issuing the procedure declaration and then SELECT ... FROM USER_ERRORS to see if errors have occured and if so to print them out.

  • How to detect conversion errors due to charset mismatch client/server?

    If a character cannot be converted by OCIStmtExecute (Bind Variable) and/or OCIStmtFetch (Into Variable), either a replacement character (usually question mark) or a similar character (e.g. è -> e) is used instead.
    I am looking for a possibility to get an indicator flag if a column could not be converted between client character encoding (NLS_LANG setting) and database encoding (NLS_CHARACTERSET).
    If I do the conversion in my code, setting OCI_ATTR_CHARSET_ID to OCI_UTF16ID and using OCICharSetToUnicode(), OCIUnicodeToCharSet() and OCICharSetConversionIsReplacementUsed(), this would be quite a bit of work, allocating extra buffers, and it detects only conversion errors during OCIStmtFetch (into variables), not for bind variables during OCIStmtExecute.

    If a character cannot be converted by OCIStmtExecute (Bind Variable) and/or OCIStmtFetch (Into Variable), either a replacement character (usually question mark) or a similar character (e.g. è -> e) is used instead.
    I am looking for a possibility to get an indicator flag if a column could not be converted between client character encoding (NLS_LANG setting) and database encoding (NLS_CHARACTERSET).
    If I do the conversion in my code, setting OCI_ATTR_CHARSET_ID to OCI_UTF16ID and using OCICharSetToUnicode(), OCIUnicodeToCharSet() and OCICharSetConversionIsReplacementUsed(), this would be quite a bit of work, allocating extra buffers, and it detects only conversion errors during OCIStmtFetch (into variables), not for bind variables during OCIStmtExecute.

  • HOW CAN I AN ERROR FROM A REPORT ON A WEB

    I HAVE AN FORM THAT LAUNCH A REPORT BUT WHEN I RUN THE REPORT,THE REPORT END WITH "TERMINATED WITH ERROR", MY QUESTION
    HOW CAN I SEE MORE INFORMATION ABOUT THE REPORT ERROR?
    tHANKS

    Turn on reports server tracing. In the trace file, you will see a lot of information.
    You can also use /reports/rwservlet/showjobs command to see the error message related to the job that was sent from Forms.
    Thanks,
    -Shaun

  • How to reset an error from view or backing bean?

    The JSF view shown below sets attributes 'required' and 'disabled' of an
    h:inputText depending on the input value on a h:selectBooleanCheckbox.
    It mostly works but a serious problem is that when the user enables the
    h:inputText and pushes the submit button with blank input, message
    "Validation Error: Value is required." is displayed. The error message
    is quite natural but the core of the problem is that at this state,
    changing the checkbox value to false(==unchecked) doesn't cause the
    reset of error and disabling/non-requiring of the textfield. Checkbox
    becomes unchecked by user mouse operation but textfield remains enabled.
    How could I have the textfield disabled and non-required when the user
    did some non-standard(?) operation described above?
    [VIEW]
    <f:view>
    <h:form id="mform">
    <h:selectBooleanCheckbox id="mflag" immediate="true"
                             value="#{mailBean.mailFlag}"
                             onchange="this.form.submit();" >
    <h:outputText value="I'll send my mail address" />
    </h:selectBooleanCheckbox>
    <br>
    <h:outputLabel for="mailtext" value="mlabel">
    Enter Your Mail Address:</h:outputLabel>
    <h:inputText id="mailtext"
                 required="#{mailBean.mailFlag}"
                 immediate="#{! mailBean.mailFlag}"
                 disabled="#{! mailBean.mailFlag}"
                 value="#{mailBean.mailText}"/>
    <h:message for="mailtext"/>
    <br>
    <h:commandButton id="msubmit" value="submit" action="success"/>
    </h:form>
    </f:view>
    [BEAN]...scope of the managed bean mailBean is session...
    public class MailBean{
      private boolean mailFlag = false;
      private String mailText;
      public void setMailFlag(boolean flag) {
        mailFlag = flag;
        if (! flag){
          mailText = "";
      public void setMailText(String str) {
        mailText = str;
      public boolean getMailFlag() {
        return mailFlag;
      public String getMailText() {
        if (! mailFlag) {mailText = "";}
        return mailText;
    }

    The JSF view shown below sets attributes 'required'
    and 'disabled' of an
    h:inputText depending on the input value on a
    h:selectBooleanCheckbox.
    It mostly works but a serious problem is that when
    the user enables the
    h:inputText and pushes the submit button with blank
    input, message
    "Validation Error: Value is required." is displayed.
    The error message
    is quite natural but the core of the problem is that
    at this state,
    changing the checkbox value to false(==unchecked)
    doesn't cause the
    reset of error and disabling/non-requiring of the
    textfield. Checkbox
    becomes unchecked by user mouse operation but
    textfield remains enabled.Have you tried setting the immediate property to true for the checkbox, and not using it for the inputText component? It looks to me like that's the one you want to run first, before validation is performed.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Kito D. Mann ([email protected])
    Principal Consultant, Virtua, Inc. (http://www.virtua.com)
    Author, JavaServer Faces in Action
    http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
    Are you using JSF in a project? Send your story to [email protected], and you could get your story published and win a free copy of JavaServer Faces in Action

  • How to report an error from anonymous PL/SQL blocks

    Hello,
    The following SQL*Plus script
    WHENEVER OSERROR EXIT FAILURE
    WHENEVER SQLERROR EXIT FAILURE
    DECLARE
    EXIST_INDEXES BOOLEAN := FALSE;
    BEGIN
    FOR INDEX IN (SELECT * FROM INDEXES)
    LOOP
    EXIST_INDEXES := TRUE;
    DBMS_OUTPUT.PUT_LINE(INDEX.SCHEMA || '.' || INDEX.NAME);
    END LOOP;
    IF EXIST_INDEXES THEN
    RAISE_APPLICATION_ERROR(-20000,'Before proceeding, it is recommended to drop the indexes listed above');
    END IF;
    END;
    -- Here go SQL statements that should be executed if no indexes were found
    produces this output when there is an entry in table/view INDEXES:
    SCHEMA_1.INDEX_1
    DECLARE
    ERROR at line 1:
    ORA-20000: Before proceeding, it is recommended to drop the indexes listed above
    ORA-06512: at line 13
    When there are entries in table/view INDEXES, how to:
    - suppress the 'DECLARE' and '*' lines from appearing in the script output;
    - skip executing the SQL statements after the PL/SQL block;
    - have the script return a non-zero code?
    Regards,
    Angel Tsankov

    1 You want the rest of the code not to execute, SO all code should be in one anonymous block.
    The scope of exceptions is one block.
    2 If you want to suppress
    - suppress the 'DECLARE' and '*' lines from appearing in the script output;you should not use raise_application_error, because this is how raise_application_error works.
    - whenever you raise an exception, the return code will be non-zero.
    The code you posted is really very poor, and inefficient, but as it is unclear what you are up to (you seem to want to skip executing everything when there are any indexes, if so you can just count them), it is not possible to provide working code.
    If you want to skip the rest of the code, you can declare your own exceptions, and you should just raise your own exception and the block will abort.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • 10gAS detecting report errors from forms

    Hi
    We are running 10g reports and forms on Red Hat.
    The forms are run using a run_report_object command to generate pdf output and then displayed using web.show_document. The parameters for the reports are entered into a form and sometimes are validated and sometimes not.
    On the whole it all works well. However, if a bad parameter is passed to a report, the report will not run and an error will be held in the report server for that report. Is there an easy way to programmatically detect in forms, that the report has errored and then to bring that error message back and display it in the form?
    TIA
    Thanks
    Tony

    Hi,
    in the past I did this with the Reports Server tables. If you install the queue table then Reports Server writes all information to the database from where you can read it
    Frank

Maybe you are looking for

  • Ical cannot create event in month view

    iCal cannot create event in month view. Is this a bug? I've tried double clicking in a day as I always did but nothing.

  • How to get rid of annoying tool tips while editing SQL files

    I'm using Visual Studio 2013 to edit an .SQL file and I have attached the editor to a local SQL Server 2008 R2 database. While editing the string that is passed to a sp_executesql procedure it keeps popping up a tool tip saying: "Parameter help is no

  • IWeb '08 + 2.0.2 updated won't finish publish

    I, like many iweb users, have had no luck getting the latest iWeb to publish anything for the last 7 days. We have all tried everything and it seems that the only thing that isn't working is some sort of publishing permission or server error. APPLE;

  • Error in importing objects in STMS_IMPORT

    Hi Experts, Urgent!! I have exported IR & ID objects under one TR (using CTS organizer) from DEV environment. While importing  by using STMS_IMPORT in PI QTY system I got the following error. RFC communications error with system/destination %%ashost=

  • MMS messaging problems after jellybean update.

    I am having issues sending and receiving any MMS messages since the update.  If I send one it appears on the phone that it was sent.  I have questioned several people and they do not receive them.  Also I have had several people send me pictures and