Returning error to Javascript from Webkit plugin

Hi all,
I want to return an error and possibly error string using exception or any other means from a web kit plug-in to Java script. In the success case these functions returns NSString, NSNumber,... etc. Can some one pls. provide a sample code to return error code and/or error string, so that Java script can detect the error condition.
Thanks
Akhilesh

Found it,
[WebScriptObject throwException: @"There is an error"];

Similar Messages

  • Returning Error Status back from Form to external program

    Question,
    I am trying to run a form essentially from the command line. I need to programatically catch any error codes that might have occured in the form by an external program. I can find nothing about returning errors back from the form or how to display it.
    Any assistance is appreciated.
    Andy Hendrickson
    null

    Hello Andreas,
    Ah, sorry, there was so much talk about user decisions that I assumed you were using a standard decision task.
    Still, I would be extra careful of changing the way workflow usually works because you have an unknown target audience that are based on the standard.
    The standard SAP philosophy is quite simple: cancel/F3 or do nothing and it stays reserved. If you do not want it reserved, you need to perform an action. This is based on a majority of processes: in most cases when you execute a work item you will also be the one who is going to completed it. Replacing it is the lesser used of the two alternatives, therefore it is the only one that requires an action on the part of the user.
    Again, this is intended as constructive input. Strange quirks and unusual behaviour tend to add a black mark to software if they do not make things easier to use. In many environments users are not even aware of the reserve/replace business, so there you would be adding an additional layer of complexity.
    Personally I would find an exit popup annoying as a regular workflow user - regular decisions can be approved with one click, or I can back out with a single click if I need to make a phone call or look up some info before approving - but with this new-fangled thing I've got an extra button to click and an extra thing to think about. This is especially the case in a payment approval scenario where you may have users in some departments who may approve hundreds of payments each week.
    My suggestion would be to leave it like that. By all means put an option into the user decision to put it back or to 'un-reserve' it (and loop round if the user chooses it). That way you are adding value and not clicks.
    Cheers,
    Mike

  • To more specific class: all return error after upgrade from LV2011 to 2012

    I have working projects/executables built in labview 2011. When loading the exact same project in 2012 EVERY 'to more specific class' returns an error.
    For example, making a generic control reference into a 'numeric'.
    Redoing the exact same action makes no difference. What has changed in LV2012?

    Can you post an example VI containing such code? Please post the original 2011 code.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to execute acrobat javascript thorugh acrobat plugin???

    I need to perform a task using javascipt...but i am not able to run javascript from my plugin...I tried it using AFExecuteThisScript method given in  API but it asks for " _gAcroFormHFT"..How can i import HFT into my plugin???
    Is there any other method to execute a javascript from acrobat plugin??

    You need to declare a (global) variable something like:
    HFT gAcroFormHFT;
    Then initialise it in your plugin's PluginImportReplaceAndRegister method, something like:
    ACCB1 ASBool ACCB2 PluginImportReplaceAndRegister(void)
    gAcroFormHFT = Init_AcroFormHFT;
    return true;

  • "Error 75 received from the Package Index Server. Please contact the Support Center"

    I have a T-61P running Windows XP SP2.  Within the past month, my System Updater started returning
    "Error 75 received from the Package Index Server.  Please contact the Support Center"
    I uninstalled System Update and downloaded and installed again from the Lenovo site.  Still displays same error message.  I get 20% into the update when the error message pops up.
    Any suggestions.
    Thank You!
    Solved!
    Go to Solution.

    Try this link:
    http://forum.notebookreview.com/showthread.php?t=157733
    Check the following registry keys (or similar)
    HKLM\HARDWARE\ACPI\DSDT\LENOVO\
    HKLM\HARDWARE\ACPI\FADT\LENOVO\
    HKLM\HARDWARE\ACPI\RSDT\LENOVO\
    They should be in the form of your model number without the hyphen and not TP-xx___
    In my case I had to change the TP-71___ that was showing in my registry to 87445BU.  Once I did this the software worked without a hitch.

  • Webkit. How to connect external javascript from dir C:

    I can't execute javascript from dir C:
    I have some html, that I load in Webkit with loadContent(). In that html invoked function test(). Function contains in a separate javascript file.
    <head>     
    <script language='javascript' type='text/javascript' src="file:///C:/temp/test.js"></script>
    <script>
         function getText() { var val = document.getElementById('text_area').value;
              prompt('getText', "val");
    </script>          
    </head>
    <body>
           <textarea id='text_area' name='text_area' style="width:100%; height:100%"></textarea>     
           <script> test(); </script>
    </body>External javascript (test.js)
    function test() {
            alert('It works!');
         getText();           
    }External js doesn't work. PromptHandler (AlertHandler) doesn't catch anything. If I use wEngine.executeScript('test'), appear error: netscape.javascript.JSException: ReferenceError: Can't find variable: getText.
    But that code works on any other browsers.

    Thank you for the problem report!
    This looks like a bug in WebView. A Jira issue has been filed to track this: http://javafx-jira.kenai.com/browse/RT-17330. Note that the issue may end up classified as not-a-bug because the ability to run local scripts from dynamic contents may be considered a security hole.
    As a workaround, try saving your HTML into a temporary file and load it using WebEngine.load(). It should work as in any other browser. Another option is to include all necessary code in the HTML document loaded with WebEngine.loadContent(), but I gather that is undesirable in your case.
    Edited by: 890759 on Oct 11, 2011 5:19 AM
    Edited by: 890759 on Oct 11, 2011 5:21 AM

  • Returning Errors from a webservice using XMLBeans

    I have a webservice that accepts XML as input and output parameters, and I'm using XMLBeans to handle this. I'm trying to work out how I can return error information from the webservice, so I created an Exception.xsd schema and 'include' it in the output XML Schema, so an exception xml element is valid in the output schema. The problem is, the XMLBean class generated from the output XML schema has no methods that allow me to create an Exception element. Is there some other way of handling the return of exceptions from webservices using XML?

    The answer is just throw a SoapFaultException and put the exception.xsd XMLBean in the FaultDetail section of the SoapFaultException.

  • Pacman : returning error 16 from alpm_db_update

    Recently, yaourt behave oddly on my homeserver, outputting some truncated errors messages as if they were answers from a regex search. Long story short, I tried to fix the problem but did not yet succeeded, so maybe someone here will help me.
    What I tried :
    Use pacman instead of yaourt -> gave me a full error message "opening /var/lib/pacman/sync/core/dhcpcd-5.1.3-1/depends failed : No file or directory" . I am not sure the problem is package-related since I uninstalled and reinstalled it.
    Moreover when I tried pacman with -Scc and -Syy I had an error message about the core database. Then, with -Syu and --debug option, I had this:
    :: Synchronizing packages data...
    debug: failed to get lastupdate time for core
    debug: using 'core.db.tar.gz' for download progress
    debug: HTTP_PROXY: (null)
    debug: http_proxy: (null)
    debug: FTP_PROXY:  (null)
    debug: ftp_proxy:  (null)
    debug: connected to distrib-coffee.ipsl.jussieu.fr successfully
    downloading de core.db.tar.gz...
    Error: deleting core database failed
    debug: returning error 16 from alpm_db_update : removing entry from database failed
    Error: updating core failed (removing entry from database failed)
    Any idea ? Thanx in advance

    Have you already tried a different mirror?

  • Need help in returning error condition from web service

    Hi,
    I need one help regarding webservice. Currently my web service is returning "true" value when it works fine without any issues but it returns "false" when any any error is encountered. So my question is, can we return error instead of string "false". I dont know how to return exact error from webservice. If you any idea then please mail me.
    Below is a small code snippet:
    System.out.println("User "+ userFullName + usrKey + " end date has been updated to "+usrEndDate +" in IDM DB");
    result = true;
    catch (tcAPIException e) {
    log.error("Error in finding the user" + e.getMessage());
    result = false;
    } catch (tcUserNotFoundException e) {
    log.error("Error in getting user status" + e.getMessage());
    result = false;
    } catch (tcStaleDataUpdateException e) {
    log.error("Error in updating end date of user" + e.getMessage());
    result = false;
    }catch (Exception e1) {
    e1.printStackTrace();
    result =false;
    return result;
    Here i want to return error instead of false. Can we do that?
    Thanks,
    Kalpana.

    instead of storing false store below
    use result=e1.getMessage();
    Edited by: Nishith Nayan on Feb 23, 2012 8:07 PM

  • Transporting OSS Notes from Dev to QA returns error

    Hi,
    I have implemented all these notes in Dev:
    1448397
    1453128
    1462423
    1465685
    1472991
    1478699
    1486208
    1490183
    1495277
    1512748
    1540869
    1550964
    1558355
    1564254
    1568563
    1575454
    I don't get any error during implementation in Dev.
    When transport to QA, it returns error like:
    Authorization check CP_USER_INCL:
    Navigation path 48469D158E5D0117E10000000A421694 does not exist
    Authorization check O_INCL_1:
    Navigation path 488D143E21166CB2E10000000A421693 does not exist
    Authorization check S_ALL_1:
    Errors occurred during post-handling ESH_OM_TRANSPORT_IMPORT for SEST L
    ESH_OM_TRANSPORT_IMPORT belongs to package S_ESH_ENG_OBJ_MOD_REP
    The errors affect the following components:
       BC-EIM-ESH (NetWeaver Enterprise Search)
    After the transport failed, I couldn't access ESH_COCKPIT anymore.
    It will return a dump saying:
    System with connection GUID xxx has no connection data.
    I tried to delete search connector via SE38 ESH_ADM_INDEX_ALL_SC also return the same error.
    Anyone experienced this before?
    I have already raised an OSS message to SAP waiting for their reply.
    Thanks
    Jack

    Quote from the OSS message:
    1457940 Transporting software components: Error in after-import
    1476894 Transporting software components: Paths are lost
    The reason for the error messages was a problem with the sequence
    of the handling of the involved entities like templates, authorization
    checks etc.
    I see no harm in implementing the following additionally
    1465481 Transporting software components: Dump in after import
    1441080 Termination when importing Enterprise Search models
    Regards
    Jack

  • B2B-51507 An Error was reported from a Javascript rule

    Hi All,
    I am not able to process EDI dat file with validate option enabled at the agreement level. Please see the below error message, please suggest!
    <?xml version="1.0" encoding="UTF-8" ?><ns1:Exception xmlns:ns1="http://integration.oracle.com/B2B/Exception" xmlns="http://integration.oracle.com/B2B/Exception">
       <ns1:correlationId>null</ns1:correlationId>
       <ns1:b2bMessageId>0A523743140086685E200000497F6962-1</ns1:b2bMessageId>
       <ns1:errorCode>B2B-51507</ns1:errorCode>
       <ns1:errorText>
      An error was reported from a JavaScript rule.
      </ns1:errorText>
       <ns1:errorDescription>
      Machine Info: (XXXXXXXXXXXX)
    The external code list 881 effective on date 07/18/2013 was not found.{br}{br}This error was detected at:{br}{tab}Element Count: 8{br}{tab}Characters: 159 through 171
      </ns1:errorDescription>
       <ns1:errorSeverity>2</ns1:errorSeverity>
       <ns1:errorDetails>
          <ns1:parameter name="AckParentReject" value="T"/>
          <ns1:parameter name="GroupReceiverID" value="XXXXXXXXXXXX"/>
          <ns1:parameter name="TransactionImplementationReference" value="005010X220A1"/>
          <ns1:parameter name="TransactionChildCount" value="296"/>
          <ns1:parameter name="InterchangeReceiverQual" value="ZZ"/>
          <ns1:parameter name="InterchangeChildCount" value="1"/>
          <ns1:parameter name="InterchangeControlVersion" value="00501"/>
          <ns1:parameter name="ActionCode" value="2"/>
          <ns1:parameter name="GroupID" value="BE"/>
          <ns1:parameter name="SubelementDelimiter" value="\"/>
          <ns1:parameter name="InterchangeSenderQual" value="ZZ"/>
          <ns1:parameter name="InterchangeUsageIndicator" value="P"/>
          <ns1:parameter name="GroupChildCount" value="1"/>
          <ns1:parameter name="InterchangeSenderID" value="888888888888888"/>
          <ns1:parameter name="InterchangeControlNumber" value="000000001"/>
          <ns1:parameter name="Standard" value="X12"/>
          <ns1:parameter name="InterchangeTime" value="1127"/>
          <ns1:parameter name="RepeatingSeparator" value="^"/>
          <ns1:parameter name="GroupVersionNumber" value="005010X220A1"/>
          <ns1:parameter name="InterchangeDate" value="130718"/>
          <ns1:parameter name="TransactionTrailerControlNumber" value="0001"/>
          <ns1:parameter name="InterchangeAuthorizationInfoQual" value="00"/>
          <ns1:parameter name="GroupSenderID" value="888888888888888"/>
          <ns1:parameter name="InterchangeAuthorizationInfo" value="          "/>
          <ns1:parameter name="GroupTrailerControlNumber" value="1"/>
          <ns1:parameter name="InterchangeTrailerControlNumber" value="000000001"/>
          <ns1:parameter name="TPName" value="888888888888888"/>
          <ns1:parameter name="SegmentDelimiter" value="~"/>
          <ns1:parameter name="InterchangeControlStandard_RepeatingSeparator" value="^"/>
          <ns1:parameter name="TransactionID" value="834"/>
          <ns1:parameter name="GroupControlNumber" value="1"/>
          <ns1:parameter name="InterchangeComponentElementSep" value="\"/>
          <ns1:parameter name="AckChildInvalid" value="None"/>
          <ns1:parameter name="InterchangeSecurityInfo" value="          "/>
          <ns1:parameter name="DecimalSeparator" value=""/>
          <ns1:parameter name="GroupAgencyCode" value="X"/>
          <ns1:parameter name="InterchangeSecurityInfoQual" value="00"/>
          <ns1:parameter name="InterchangeReceiverID" value="XXXXXXXXXXXX     "/>
          <ns1:parameter name="ReleaseCharacter" value=""/>
          <ns1:parameter name="TransactionControlNumber" value="0001"/>
          <ns1:parameter name="GroupTime" value="112755"/>
          <ns1:parameter name="InterchangeAckRequested" value="0"/>
          <ns1:parameter name="GroupDate" value="20130718"/>
          <ns1:parameter name="ElementDelimiter" value="*"/>
          <ns1:parameter name="b2b.messageId" value="0A523743140086685E200000497F6962-1"/>
          <ns1:parameter name="b2b.documentTypeName" value="834"/>
          <ns1:parameter name="b2b.documentProtocolVersion" value="5010X220A1"/>
          <ns1:parameter name="b2b.documentDefinitionName" value="834_def"/>
          <ns1:parameter name="b2b.documentProtocolName" value="EDI_X12"/>
          <ns1:parameter name="b2b.messageType" value="1"/>
          <ns1:parameter name="b2b.fromTradingPartnerId" value="888888888888888"/>
          <ns1:parameter name="b2b.fromTradingPartnerIdType" value="Name"/>
          <ns1:parameter name="b2b.toTradingPartnerId" value="XXXXXXXXXXXX"/>
          <ns1:parameter name="b2b.toTradingPartnerIdType" value="Name"/>
       </ns1:errorDetails>
    </ns1:Exception>

    Hi -
    From the error "The external code list ", it looks like ECL is not installed or not available with ecs.
    1. Have you installed ExternalCodeList when you installed your Document Editor?
    2. If not, install it, recreate ecs, xsd files. And rerun the transactions. That should fix your issue.
    Thanks,
    Kathar

  • "Network transition in LDAPv3 plugin returned error -14279"

    Came in this morning an booted up, and it took forever, and hung like it dows 25% of the time, and dows not show network home user login accounts.
    Rebooted, same thing, usually this solves it.
    Looked at DirectoryServices.error.log on my machine (client) and this morning there was the flowing, multiple times
    "2007-07-17 08:23:23 PDT - Attempt #1 to initialize plug-in LDAPv3 failed.
    Will retry initialization at most 100 times every 1 second.
    2007-07-17 08:23:23 PDT - Network transition in LDAPv3 plugin returned error -14279
    2007-07-17 08:25:03 PDT - 100 attempts to initialize plug-in LDAPv3 failed.
    Setting plug-in state to inactive."
    Any thoughts what I am looking at?
    Opening Directory Access.app, LDAPv3 was unchecked, when it usually is. I checked it and hit configure and I get an error:
    Directory Services API
    Fialed to opne LDAPv3 node. <OK>
    I hit OK a few times, it ione the configuration window, with nothing in it, I click on NEW and ger the same above error message, and it bings me back to the configuration window. I cannot add back the binding to the server.
    Thoughts?
    Mac Pro 10.4.7, bound to Server 10.4.7
    Repaired permsissions on the client.
    Any help on a place to start would be great.
    Thanks
    Spinner
    Mac Pro 2.66 Ghz   Mac OS X (10.4.7)  

    So I dumped the DSLDAPv3PlugInConfig.plist, rebooted, and all worked as normal.
    Must have been a corrupt plist file.
    Spinner

  • Call JavaScript function from Acrobat Plugin

    Hi All,
    I want to call JavaScript function from Acrobat Plugin? Where is to write JavaScript function in Acrobat SDK? Please reply..
    Thanks in advance..

    Hi Malkyt,
    Thanks.. where is to write JavaScript code in the application..
    function GetWelcome()
    alert("Welcome");
    this above code. how to use this javascript code to plugin application.
    static ACCB1 ASBool ACCB2 AVPageViewMouseClick (AVPageView pageView, AVDevCoord xhit, AVDevCoord yhit, AVFlagBits16 flags, AVTCount clickNo, void *data)
    char jsscript[200];
    AFExecuteThisScript (pddoc, jsscript, NULL);
    i want to display welcome message of JS file.. give me step to perform above task.. Please reply...

  • SP which returns error cannot access rows from a non-nested table item.

    Dear Experts
    I have an SP which gives error " cannot access rows from a non-nested table item ". But here the strange thing is, it works fine with one query. But I write union query with another table, only then it gives error.
    CREATE OR REPLACE PROCEDURE SP_MONTHLYSALESUMMARY (
    P_TRANSACTIONMONTH VARCHAR2,
    P_LEDGERID VARCHAR2,
    O_RESULTSET OUT TYPES.CURSORTYPE)
    AS
    BEGIN
    OPEN O_RESULTSET FOR
    -- POINT OF SALE
    SELECT
    L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NOT NULL
    AND T.ISCREDITTRANSACTIONMODE = 2
    THEN
    PB.TAXAMOUNT
    ELSE
    0
    END)
    EMPLOYEEDEBITCARDTAXAMOUNT,
    L.PRINTNO
    FROM POINTOFSALEBILL PB
    INNER JOIN POINTOFSALEBILLDETAIL PD
    ON PB.POINTOFSALEBILL_ID = PD.POINTOFSALEBILL_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO;
    END SP_MONTHLYSALESUMMARY;
    GET_ROWS_FROM_LIST1 is a function, which i am using to pass " IN " to oracle. There is no problem with this, since it works fine with one query
    REATE OR REPLACE FUNCTION BCLUB1868.GET_ROWS_FROM_LIST1
    (L IN LONG DEFAULT NULL, SEP IN VARCHAR2 DEFAULT ',')
    RETURN MYVARCHARTABLE1 PIPELINED
    AS
    L_POS INT := 1;
    L_NEXT INT;
    L_PART VARCHAR(500);
    BEGIN
    SELECT INSTR( L, SEP, L_POS) INTO L_NEXT FROM DUAL;
    WHILE (L_NEXT>0)
    LOOP
    SELECT SUBSTR(L, L_POS, L_NEXT - L_POS) INTO L_PART FROM DUAL;
    PIPE ROW(L_PART);
    SELECT L_NEXT + 1, INSTR( L, SEP, L_POS)
    INTO L_POS, L_NEXT FROM DUAL;
    END LOOP;
    SELECT SUBSTR(L, L_POS) INTO L_PART FROM DUAL;
    PIPE ROW(L_PART);
    RETURN;
    END;
    Request help from you all experts in the forum

    Here it is
    CREATE OR REPLACE PROCEDURE SP_GRCS (
    P_TRANSACTIONMONTH VARCHAR2,
    P_LEDGERID VARCHAR2,
    O_RESULTSET OUT TYPES.CURSORTYPE)
    AS
    BEGIN
    OPEN O_RESULTSET FOR
    -- Point of sale
    SELECT *
    FROM ( SELECT L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NULL
    AND T.ISCREDITTRANSACTIONMODE = 1
    THEN
    PB.BILLAMOUNT
    ELSE
    0
    END)
    MEMBERDEBITAMOUNT,
    L.PRINTNO
    FROM POINTOFSALEBILL PB
    INNER JOIN POINTOFSALEBILLDETAIL PD
    ON PB.POINTOFSALEBILL_ID = PD.POINTOFSALEBILL_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO
    UNION ALL
    -- Guest Registration
    SELECT L.DESCRIPTION LEDGERNAME,
    LS.DESCRIPTION LEDGERSUBGROUPNAME,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO
    AS ID,
    C.NAME || E.NAME || AF.NAME || M.NAME AS NAME,
    SUM(CASE
    WHEN PB.EMPLOYEE_ID IS NULL
    AND T.ISCREDITTRANSACTIONMODE = 1
    THEN
    PB.BILLAMOUNT
    ELSE
    0
    END)
    MEMBERDEBITAMOUNT,
    L.PRINTNO
    FROM GUESTREGISTRATION PB
    INNER JOIN GUESTREGISTRATIONDETAIL PD
    ON PB.GUESTREGISTRATION_ID = PD.GUESTREGISTRATION_ID
    INNER JOIN TRANSACTIONTYPE TY
    ON TY.TRANSACTIONTYPE_ID = PB.TRANSACTIONTYPE_ID
    INNER JOIN TRANSACTIONMODE T
    ON T.TRANSACTIONMODE_ID = PB.TRANSACTIONMODE_ID
    INNER JOIN LEDGER L
    ON L.LEDGER_ID = PD.LEDGER_ID
    INNER JOIN LEDGERSUBGROUP LS
    ON LS.LEDGERSUBGROUP_ID = L.LEDGERSUBGROUP_ID
    LEFT JOIN CORPORATE C
    ON C.CORPORATE_ID = PB.CORPORATE_ID
    LEFT JOIN EMPLOYEE E
    ON E.EMPLOYEE_ID = PB.EMPLOYEE_ID
    LEFT JOIN AFFILIATEMEMBER AF
    ON AF.AFFILIATEMEMBER_ID = PB.AFFILIATEMEMBER_ID
    LEFT JOIN MEMBER M
    ON M.MEMBER_ID = PB.MEMBER_ID
    WHERE TY.ISDEBIT = 1 AND PB.FLAG = 0 AND T.ISROOMNO = 2
    AND (P_TRANSACTIONMONTH IS NULL
    OR P_TRANSACTIONMONTH =
    TO_CHAR (PB.BILLDATE, 'fmMONTH-YYYY'))
    AND (P_LEDGERID IS NULL
    OR L.LEDGER_ID IN
    ( (SELECT COLUMN_VALUE
    FROM TABLE(GET_ROWS_FROM_LIST1 (
    P_LEDGERID,
    GROUP BY L.DESCRIPTION,
    LS.DESCRIPTION,
    C.CORPORATENO
    || E.EMPLOYEENO
    || AF.AFFILIATEMEMBERNO
    || M.MEMBERNO,
    C.NAME || E.NAME || AF.NAME || M.NAME,
    L.PRINTNO)
    ORDER BY PRINTNO;
    END SP_GRCS;
    I have even tried adding L.Ledger_ID in select statement.

  • How to return error from subscription function of an event

    I am creating a subscription function for an oracle shipped event, oracle.apps.eng.cm.changeObject.submit. The event fires fine, i can do my custom validations in this function. In case the validations fail, I need to return an error message.
    As per the guides and metalink documents, the way to do this is by returning 'ERROR' . But even though I return an ERROR, it does not error out. Whether I return SUCCESS or ERROR , the behaviour is the same.
    While creating the subscription function, for On Error , I selected, "Stop And Rollback ".
    Is it possible to return errors from the subscription functions.
    thanks
    Satya

    You shouldn't be passing ResultSet objects across the EJB layer.
    Instead you should be passing data back and forth.
    All of the data access code should be in one place in one class.
    That class should open the connection, run the query, process/store the results of the query and then close the connection.
    In this case you probably want to return a list of something to your jsp.
    So your EJB call should be more like
    public List<resultBean> check(String id){
      ResultSet rs = Statement.("select * from table1 where id=123");
      List resultList = new ArrayList();
      while (rs.next()){
        Bean myBean = new Bean();
        myBean.setProperty1(rs.getString("field1"));
        myBean.setProperty2(rs.getString("field2"));
        resultList.add(myBean);
      return resultList;
    }

Maybe you are looking for