Use APEX_APPLICATION in an application process called by a javascript

I have a page that is split into two; Top portion is a form, and the bottom part is a tabular form of a collection. Currently, if I enter information into the form and the collection and then submit the collection (to save the data to the collection) it erases the information in the form (since submitting for the form is separate). The same thing happens when I attempt to delete certain rows from the collection.
My solution to this problem was to use javascript to call an application process (that way the page isn't completely refreshed, only the collection portion). However, I can't seem to get the apex package APEX_APPLICATION to work correctly as an application process (works fine as a process on submit as a page process).
Below is the way I use apex_application for saving:
begin
for x in 1..apex_application.g_f03.COUNT
loop
apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
p_seq => apex_application.g_f03(x),
p_attr_number => 8,
p_attr_value => apex_application.g_f08(x));
apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
p_seq => apex_application.g_f03(x),
p_attr_number => 9,
p_attr_value => apex_application.g_f09(x));
apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
p_seq => apex_application.g_f03(x),
p_attr_number => 10,
p_attr_value => apex_application.g_f10(x));
apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
p_seq => apex_application.g_f03(x),
p_attr_number => 11,
p_attr_value => apex_application.g_f11(x));
apex_collection.update_member_attribute (p_collection_name=> 'SPECIES_COLLECTION',
p_seq => apex_application.g_f03(x),
p_attr_number => 12,
p_attr_value => apex_application.g_f12(x));
end loop;
end;
Below is the code I use for deleting certain elements from the collection:
BEGIN
FOR ii IN 1 .. apex_application.g_f01.COUNT -- checkbox
LOOP
apex_collection.delete_member (p_collection_name => 'SPECIES_COLLECTION',
p_seq => apex_application.g_f01(ii)
END LOOP;
APEX_COLLECTION.RESEQUENCE_COLLECTION('SPECIES_COLLECTION');
END;
Below is the javascript I attempted to use for application process for submitting:
function addToCollection()
var get =
new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=submitLandings',0);
gReturn = get.get();
get = null;
}

Your requirement is quite similar to what I have here:
http://apex.oracle.com/pls/otn/f?p=31517:159
Using apex_application.g_fxx will not work in the way you originaly planed to do that since an application process can't see it.
What you can do is to use an application process to update the collection at the moment you enter your data. Apply for an account (see login page of my demo application) and you may see how I solved it in my example.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • How to set the value of application item using pl/sql in application process

    Hi guys,
    I want a global variable (application item) whose value will be set at the start when a user logs in to the application. The value will be retrieved from database using a sql query. I do not know the exact syntax to set the value of application item in application process. Also i want to know in which type of application process should i use to set the value of application item when a user starts a session. The value of application item varies from user to user.
    Please help.
    I am using apex 4.2
    Regards,
    Waqas

    You can use the application item as bind-variable with its name. ie. your application item is named G_MY_APPLICATION_ITEM, then you can access/set it using :G_MY_APPLICATION_ITEM.
    For example
    BEGIN
        -- assign like a variable
        :G_MY_APPLICATION_ITEM := 'LARRY';
        -- use in a SQL statement
        SELECT WHATEVER_COLUMN
          INTO :G_MY_APPLICATION_ITEM
          FROM MY_TABLE
         WHERE USERNAME = :APP_USER
    END;
    Peter

  • Application process code is not getting the value

    Hi
    I have implemented search functionality on page 0 (One Textbox and one ImageButton).
    on clicking on image button
    I am calling a application process to redirect a page on the basis of entered value.
    I am using following code in application process:
    DECLARE
    l_number NUMBER;
    rec_count NUMBER;
    BEGIN
    l_number := TO_NUMBER(:P0_SEARCH);
    SELECT COUNT(*) INTO rec_count FROM CASE_DATA WHERE CASE_NUMBER = l_number;
    if rec_count >= 1 then
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:l_number');
    End if;
    exception
    when others then
    NULL;
    END;
    :P0_SEARCH is the name of search textbox that is on page 0.
    when i clicking on image button then this value of l_number is not passed to the
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:l_number');
    its giving an error
    ORA-01722: invalid number
    and in url its showing
    http://apex.oracle.com/pls/otn/f?p=31774:42:16398188927210884::NO::P42_CASE_NUMBER:l_number
    but its working if i am putting the static value as
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:22');
    its redirecting the right page as
    http://apex.oracle.com/pls/otn/f?p=31774:42:16398188927210884::NO::P42_CASE_NUMBER:l4
    So, please help me how to pass the value to redirect.
    Thanks
    -PM

    Hi,
    Try
    OWA_UTIL.REDIRECT_URL('f?p=&APP_ID.:42:&SESSION.::&DEBUG.::P42_CASE_NUMBER:' || l_number);Br,Jari

  • How to call an On Demand Application Process on PL/SQL

    Hello
    I need your urgent help. I developed an On Demad Application Process that inserts a new record in a table. Then I need to call that Process from another page after while the user is pressing a button on that page. Do you know the code that does that?
    Thank you very much for your help

    Hi,
    APEX processes are written as anonymous blocks i.e. have no names. Procedures and functions stored in the database must have names. Packages are simply a way of grouping procedures and functions into manageable units. There are also security reasons which are not important for this explanation but use packages instead of stand-alone procedures and functions from the beginning. It is not difficult and it will save you some headaches in the future. Packages have a specification and a body. The specification is basically the interface to the package and the body contains the code. Just basically, no flames please from the PL/SQL gurus out there. The name of a procedure or function and their parameters must be published in the spec for the procedure or function to be called from outside the package.
    Creating a packaged procedure is as simple as this:
    Using SQL Workshop/SQL Scripts, create a script giving it a name like CREATE_MY_PACKAGE
    <pre>
    CREATE OR REPLACE PACKAGE my_package IS
    PROCEDURE helloworld;
    PROCEDURE log_user(p_app_user IN VARCHAR2);
    END my_package;
    CREATE OR REPLACE PACKAGE BODY my_package IS
    PROCEDURE helloworld IS
    BEGIN
    HTP.PRINT('Helloworld');
    END helloworld;
    PROCEDURE log_user(p_app_user IN VARCHAR2) IS
    BEGIN
    INSERT INTO my_table(app_user) VALUES (p_app_user);
    END log_user;
    END my_package;
    </pre>
    You can then, for instance, call procedure helloworld from a PL/SQL region in APEX by simply including
    <pre>
    my_package.helloworld;
    </pre>
    in the region source.
    or you can call procedure log_user from an APEX process by simply including
    <pre>
    my_package.log_user(:APP_USER);
    </pre>
    Important: This explanation is only a brief intro to whet your appetite. It is no substitute for good books including the Oracle PL/SQL Reference.
    Hope this helps;
    Regards Garry
    p.s.
    There are several options available to edit the package or work with DB objects generally. Each with different degrees of comfort.
    1. If you DO NOT have SQL*Net access as with oracle.apex.com then use the Apex/SQL Workshop/Object Browser.
    2. If you DO have SQL*Net access you can use Oracle SQL Developer which is the best free option.
    3. If you DO have SQL*Net access and are not short of cash then use either Toad or SQL Navigator from Quest
    Needless to say, option 3 is the only professional choice. They are amazing tools. No, I did not and do not work for Quest - lol.
    Garry
    Edited by: GarryLawton on Jul 19, 2011 2:08 PM

  • How to call an "ON DEMAND" application process

    Dear HTML DB Team,
    With HTML DB you can define "on demand" application processes. ("On Demand: Run this application process when requested by a page process.") These should be callable from page processes.
    How should a call in a page process to such an "on demand process" be written?
    Tried several options, no success. Please help.
    Could not find any information in this forum or html.pdf and help.
    Regards, Erik

    when you create an application-level process in htmldb, you have the option of creating it with a "Point" of "On Demand: Run this application process when requested by a page process". after doing that, you can then add processes to your htmldb application pages with a "Type" of "On Demand - Run an 'on-demand' application process". the next screen after indicating that Type lets you choose the On Demand process you'd like to use.
    hope this helps,
    raj

  • Calling RfcClose() while handle in use causes my C++ application to crash

    Hi!
    I was hoping someone here could help me with this. I am using librfc32u.dll in my application. My application invokes RFCs on SAP, using the SDK function RfcCallReceiveEx(). At times, this call takes too long, so, from another thread, I do a RfcClose() on the connection handle.
    Nearly all the time this seems to work (i.e., it successfully cancels the execution). But a couple of times I have seen that it causes my application to crash.
    I wanted to know whether such a programming approach is allowed or not.
    Thanks,
    Mustansir
    P.S. If this is not the appropriate forum for this question, please help me out and let me know where i should redirect this question to. Thanks.

    Hi,
    The reason to crash may be because of time out happens due to more processing time. This may be because of resource consumption or process load etc.
    For this you can try out with increasing relavent SAP system parameters with the help of SAP BASIS.
    Now, btw, are u connecting a C++ application into SAP ?? ,
    Even you can post this in this thread: may be useful: Java
    SAP NetWeaver Application Server
    Hope this helps,
    Rgds,
    Moorthy

  • Can you call a plsql application process from a validation?

    Can you call an on-demand plsql application process from a page validation?
    Thank you,
    Gayle

    Gayle:
    I don't think you can do that. You could consider moving the ODP into the database as a stored procedure . The stored procedure can then be referenced in the ODP and in your validation code as well.
    varad

  • I am using the NI application note "Calling IVI-COM drivers from LabVIEW" I created an Automation Open and an Invoke Node, after wiring

    the 2, the AN asked to right click the Invoke Node(this is step9) and choose initialize. However there is no intialize option on the pop up menu. Anything am I doing wrong? I am using Labview6 and I did add the "enableCustomInterface=True" in the INI-fileThank you for your help.
    T Tall

    the 2, the AN asked to right click the Invoke Node(this is step9) and choose initialize. However there is no intialize option on the pop up menu. Anything am I doing wrong? I am using Labview6 and I did add the "enableCustomInterface=True" in the INI-fileT Tall,
    What's the number of the application note "Calling IVI-COM drivers from LabVIEW"? I'm unable to find what you're looking at.
    Thanks,
    --Bankim

  • Invoking a webservice as an "application process"

    Hello there,
    I have setup a web service successfully and I can invoke it as a "Page Process", get the response in a collection , and do a few validation based on it.
    However, I will need this validation for most of my pages in the application, so I thought, I would rather run it against the application as a whole.
    The issue came when I try to invoke the web service as an "Application Process" rather than a page process. Unfortunately APEX does not seems to give an option to invoke a web service on application level as it does for page level.
    For Application Process, apparently I can only run a PL/SQL block, which is fine; if I know how to make a call to the web service and fill the collection from a PL/SQL Block.
    My application does not have a particular page as "home entry"; users basically will be accessing different pages as entry points. I really don't like to invoke WS calls on each of the page to get the collection filled, so my validation could run - I mean I will have only this option unless this tread yield me with an alternative :)-
    I am sure someone must have gone through similar situation, and hopefully could provide a solution or workaround for me.
    Thanks a lot in advance
    Regards
    Ligon Gopinathan

    Ligon:
    Yes, using NTLM authentication does complicate things a bit. However, I think it may be possible to to achieve the goal of pushing all users to a fixed landing page upon successful session establishment by the NTLM page-sentry function and from thereon to the page the user requested. This landing page will have 2 'before header' processes , one that will call the Web Service and the another that will simply re-direct the user to the page that was initially requested.
    In the page-sentry function you can modify the call to 'wwv_flow_custom_auth_std.post_login' such that the parameter
    p_flow_page is set to 'apex_application.g_flow_id ||':'<landing-page-id>'
    You will also need to save off the actual page requested( the value of apex_application.g_flow_step_id) into an application_item which you can then reference in the pre-header process of the landing-page.
    I must caution you that I have not tested whether this approach will work but decided to throw this out here anyhow :)
    Check http://www.oracle-base.com/articles/10g/utl_dbws10g.php out for a how-to for calling out to Web Services using PL/SQL .
    Varad

  • Applescript and application process name on osx 10.10

    I have an application that I'm running on OSX, and I have this AppleScript that was working on 10.9, but it seems that it does not work on 10.10
    try tell application \"System Events\" to set processPath to application file of application process "My Application" return POSIX path of processPath on error errMsg return "" end try
    When I run this in the AppleScript editor, it gives me the error that "System events got an error: Can't get application process "My Application".
    I checked the Activity Monitor, and indeed, there is no process called "My Application" in there. The associated process with my application is now registered by the name "SWT". I confirmed this by killing the "SWT" process, and it killed my app.
    I tried setting the Application name to "My Application", (using Display.setAppName("My Application");) inside my code, which worked, and now I am able to see a process called "My Application" in the Activity Monitor, but the AppleScript is still not working. The new error that I'm getting now is:
    Can’t make alias \"Macintosh HD:Library:Java:JavaVirtualMachines:jdk1.7.0_71.jdk:Contents:Home:bin:java\" of application \"System Events\" into the expected type
    My question is, what has changed from 10.9 to 10.10, and why is my application registered as "SWT" process, instead of "My Application", as it was in 10.9?

    I have an iMac 2.16GHz and a MacBook 2.4GHz. Both were running 10.5.2; I have since updated the iMac to 10.5.3. I also have an old machine running OS X 10.2.8 server. (OK, laugh. But it works!) Before upgrading my iMac to 10.5, I could copy files to and from that server pretty quickly.
    Now, anything of size takes forever. I am connecting over wired ethernet (but wireless, having tried, is no better). I have a Airport Extreme router with Gigabit, and a separate Asante 8-port 10/100 switch. No matter how anything connects, a transfer of 200mb or so takes almost 30 minutes.
    I brought a friend's machine over running 10.4.11, and it transfered to the old Mac server the same 200mb file in less than 3 minutes or so. What I would expect.
    Thinking maybe the old 10.2.8 server was too old for 10.5, I subbed in another machine running 10.4.11 server. The times to it were terrible, too, from any of the 10.5 machines.
    I tried turning off IPV6, then the times went to hours to copy, so I turned it back to Auto. I have read that maybe there are other network settings (such as those changeable with a tool such as Cocktail) that could be the culprit. I have not explored that.
    This post is definitely not closed or solved!
    Pete

  • Error while using DB Adapter in BPEL process

    Hi All,
    I am getting error while using DB Adapter in BPEL process
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DevDBAdapter' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. DBAdapterDemo:DevDBAdapter [ DevDBAdapter_ptt::DevDBAdapter(InputParameters,OutputParameters) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/Dev'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/Dev. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DevDBAdapter' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. DBAdapterDemo:DevDBAdapter [ DevDBAdapter_ptt::DevDBAdapter(InputParameters,OutputParameters) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/Dev'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/Dev. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:985) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 69 more Caused by: javax.xml.ws.soap.SOAPFaultException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DevDBAdapter' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. DBAdapterDemo:DevDBAdapter [ DevDBAdapter_ptt::DevDBAdapter(InputParameters,OutputParameters) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/Dev'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/Dev. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:955) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:750) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:234) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:105) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 72 more
    I have created jndi from console which I have mentioned in DBAdapter and I have provided details of JNDI to DbAdapter in deployment.
    I am not able to solve this.
    Can you please let me know solution for this or provide me link for tutorial of DBAdapter for stored procdure call?

    did u deploy your dbadapter through console to the plan mentioned for deployment?

  • Web application processing terminated

    Hi Fellow SDNers,
    My user is trying to execute a report from a portal. He is getting the below error while executing the report:
    Web application processing terminated
    Diagnosis
    The system had to terminate processing of the Web application.
    The reason could be that the system was no longer able to find the Web application server session.
    System Response
    Processing the navigation step is not possible.
    Procedure
    Call up the Web Application again.
    Note: Use the start URL and not the URL that is currently displayed in the Web Browser.
    Procedure for System Administration
    Notification Number BRAIN 278
    However, when I tried running the same report from the portal with same user credentials, I'm not getting any error.
    I suspect, its due to the IE setting. I got the cookies and offline IE files deleted from the user, but all in vain. User still faces the same issue. I'm still wondering, its not a issue with the BI system. This might be due to some network settings or IE settings.
    But the issue is only for one report, rest of the reports are running fine for the user.
    Kindly help me, if anyone has faced this issue earlier.
    System Details:
    Patch: SAPKW70015
    release: 7.0
    Regards,
    Satyam

    Hi,
    Check if the entry exists in table RSZWVIEW for your report.
    Regards,
    Durgesh.

  • Display A Success Message From An Application Process

    Apex 3.2
    I have an on demand application process, which is resetting my application, except application items
    BEGIN
       FOR c IN (SELECT page_id
                   FROM apex_application_pages
                  WHERE application_id = :app_id)
       LOOP
          apex_util.clear_page_cache (c.page_id);
       END LOOP;
    :F270_REFRESH_INTERVAL := null;
    END;
    I have a list item that calls some javascript on page zero
    <script type="text/javascript">
    function resetapp(){
    var answer=confirm("Do you really want to reset the application ?");
    if(answer==true) {
    var get = new htmldb_Get(null, null, 'APPLICATION_PROCESS=RESET_APPLICATION');
    var gReturn = get.get();
    redirect('f?p=&APP_ID.:1:&APP_SESSION.');
    </script>
    The user clicks on the item in the list. A confirmation appear and when they click ok,
    then the on demand process runs and they are directed to page 1.
    This is all working ok.
    My problem is that I would like to display a message (a sucesss message) on page 1.
    I have an unconditional branch on page 1 with the tick box checked for include process message.
    I have tried the following in my application process, but none seem to work.
    apex_application.g_print_success_message := 'Application Has Been Reset';
    htp.prn('Application Has Been Reset');
    HTP.P('Application Has Been Reset');
    How can I do this ?
    Gus

    Can anyone help ?
    Gus

  • Use apex_application.g_unrecoverable_error := TRUE; and apex_collection.truncate_collection doesn't work

    I'm trying to print pdf using JasperReports Integration. I need to do an INSERT then clean all the page items(including the apex_collection.truncate_collection for truncate the collection)  and print with the Jasper call(all in one button).
    The Insert works, and i can perfectlly print too, but the clean page items and the truncate collection doesn't.
    Please HELP! its really urgent!!
    Thnx.
    Ricardo Capuz

    Hi Nicolette, i'm really new on Apex, sorry for the bad explanation.
    First, thank for your answer, my apex version is 4.2.2.
    I'm sure that the insert works perfect, cause i checked with the database.
    i used apex_application.g_unrecoverable_error := true; because is the code that bring the people of JasperReportsIntegration and I tried to comment it but without it, the print doesn't work.
    My problem is when I use the g_unrecoverable_error the printPDF works perfect but apex does not truncate the collection or clean the fields neither.
    I have an invoicing application, i want to click on "generate invoice" and do the insert, print pdf and refresh the page, so that when the user finish to print the invoice, the invoicing application is clean for make another invoice.
    Here's the code of the print pdf....
    DECLARE
               l_blob        BLOB;
               l_mime_type   VARCHAR2 (100 char);
               l_proc varchar2(100) := 'get report as blob, then show';
               l_additional_parameters varchar2(32767);
    BEGIN
          l_additional_parameters := 'USUARIO_CODIGO=' || apex_util.url_encode(:APP_USER);
          l_additional_parameters := l_additional_parameters||'&PRESUPUESTO_NUMERO='||apex_util.url_encode(:PRESUPUESTO_ID);
          xlog (l_proc, 'url (orig):' || 'http://Servidor-New:8181/JasperReportsIntegration/report');
       -- generate the report and return in BLOB
      xlib_jasperreports.set_report_url ('http://Servidor-New:8181/JasperReportsIntegration/report');
      xlib_jasperreports.get_report(
                                       p_rep_name => '&JASPER_HOME./PRESUPUESTO_CNO',
                                       p_rep_format => 'pdf',
                                       p_data_source => '&JASPER_HOME.',
                                       p_rep_locale => 'es_ES',
                                       p_additional_params => l_additional_parameters,
                                       p_out_blob            => l_blob,
                                       p_out_mime_type       => l_mime_type
       -- set mime header and filename
       OWA_UTIL.mime_header (ccontent_type      => l_mime_type,
                             bclose_header      => TRUE);
       -- send Content-Disposition and suggest a file name for saving
       htp.p('Content-Disposition: attachment; filename="'|| 'Presupuesto.pdf' ||'"');
       -- set content length
       HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
       OWA_UTIL.http_header_close;
       -- download the file and display in browser
       WPG_DOCLOAD.download_file (l_blob);
       -- release resources
       DBMS_LOB.freetemporary (l_blob);
       -- stop rendering of APEX page
      apex_application.g_unrecoverable_error := TRUE;
    /* apex_application.stop_apex_engine;                               -------I PROVE WITH THIS ONE AND IT DOESN'T WORK
       apex_util.redirect_url (                                      --------IF I SET THE BUFFER RESET TO TRUE, IT CLEAN THE FIELDS BUT DON'T PRINT AND IF I SET TO FALSE IT PRINT BUT DON'T CLEAN THE FIELDS.
    p_url => 'f?p=&APP_ID.:30:' || :SESSION,
                              p_reset_htp_buffer => true ); */
        -- Limpieza de ITEMS collection
    apex_collection.truncate_collection(p_collection_name => 'ITEMS');  -----I TRIED TO PUT THIS PART UPPER THAN THE g_unrecoverable_erro BUT IS THE SAME THING.
    :P30_CI:='';
    :P30_NOMB_AP_PACIENTE:=' ';
    :P30_HISTORIA_PACIENTE:= NULL;
    :P30_RIF_RESP_PAGO:=' ';
    :P30_NOMBRE_RESP_PAGO:=' ';
    EXCEPTION
       WHEN OTHERS
       THEN
          xlog (l_proc, SQLERRM, 'ERROR');
          RAISE;
    END;
    I really aprecciate your help. Thank you Nicolette!!!
    Ricardo Capuz

  • Using application_process with packaged application SAVE_LARGE_VALUE ?

    I'm currently try to add the workaround "save large value" in my application. This is using 2 pages. Can I replace the POST page by an Application Process ?
    When I'm trying, it's doesn't work. The Application Process doesn't like : get.addParam. Do you know why ?
    Step :
    1 - Call clob_submit
    2 - $a_PostClob('P35_DESCRIPTION','SAVE','71',clob_SubmitReturn);
    <h3> 1- Html Header</h3>
    <script src="/i/javascript/apex_save_large.js" type="text/javascript"></script>
    <script type="text/javascript">
    function clob_Submit(){
              $a_PostClob('P35_DESCRIPTION','SAVE','71',clob_SubmitReturn);
    <h4>function clob_SubmitReturn(){</h4>
              if(p.readyState == 1){
                             $x_Show('AjaxLoading');
              }else if(p.readyState == 2){
              }else if(p.readyState == 3){
              }else if(p.readyState == 4){
    $x('P35_DESCRIPTION').value = '';                         
    $x_Hide('AjaxLoading');
    doSubmit(/*document.wwv_flow.p_request.value*/'SAVE');
              }else{return false;}
    <h4>function clob_Get(){</h4>
    $a_GetClob('GET','71',clob_GetReturn);
    <h4>function clob_GetReturn(){</h4>
              if(p.readyState == 1){
                             $x_Show('AjaxLoading');
              }else if(p.readyState == 2){
              }else if(p.readyState == 3){
              }else if(p.readyState == 4){
                             $x_Hide('AjaxLoading');
    oEdit1.loadHTML(p.responseText);
              }else{return false;}
    <h4>function doSubmit(r){</h4>
    $x('P35_DESCRIPTION').value = ''
         flowSelectAll();
         document.wwv_flow.p_request.value = r;
         document.wwv_flow.submit();
    <h3>2 - APEX_SAVE_LARGE.js</h3>
    /* Extended Javscript Objects */
    this adds better aysnc functionality
    to the htmldb_Get object
    pVar is the function that you want to call when the xmlhttp state changes
    in the function specified by pVar the xmlhttp object can be referenced by the variable p
    htmldb_Get.prototype.GetAsync = function(pVar){
    try{
    p = new XMLHttpRequest();
    }catch(e){
    p = new ActiveXObject("Msxml2.XMLHTTP");
    try {
         var startTime = new Date();
                   p.open("POST", this.base, true);
                   if(p){
                             p.onreadystatechange = pVar;
                             p.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                             p.send(this.queryString == null ? this.params : this.queryString );
                             return p;
              }catch(e){
    return false;
    /* Begin Post and Retrieve Large Strings */
    <h4>function $a_PostClob(pThis,pRequest,pPage,pReturnFunction){</h4>
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,pRequest,pPage, null, 'wwv_flow.accept');
    var lSplitter = html_GetElement(pThis);
    var lSplitterValue = lSplitter.value;
    var i=0;
    if (lSplitterValue.length<=4000) {
    get.addParam('f01',lSplitterValue);
    } else {
    while (lSplitterValue.length>4000) {
    get.addParam('f01',lSplitterValue.substr(0,4000));
    lSplitterValue = lSplitterValue.substr(4000,lSplitterValue.length-4000);
    i++;
    get.addParam('f01',lSplitterValue);
    get.GetAsync(pReturnFunction);
    get=null;
    <h4>function $a_GetClob(pRequest,pPage,pReturnFunction){</h4>
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,pRequest,pPage, null,'wwv_flow.accept');
    get.GetAsync(pReturnFunction);
    get = null;
    x = null;
    /* End Post and Retrieve Large Strings */
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

    My example is finish.
    Workspace : listecd
    Login : GUEST
    Password : GU4EST
    Application : http://apex.oracle.com/pls/otn/f?p=29216
    Page # 2 Html Header :
    You have two choice
    <h3>1 - This is to call the page 3</h3>
    /*$a_PostClob('P2_COL1','SAVE','3',clob_SubmitReturn);*/
    <h3>2 - This is to call the application process.</h3>
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=saveclob',0);
    var lSplitter = html_GetElement('P2_COL1');
    var lSplitterValue = lSplitter.value;
    var i=0;
    if (lSplitterValue.length<=4000) {
    get.addParam('f01',lSplitterValue);
    } else {
    while (lSplitterValue.length>4000) {
    get.addParam('f01',lSplitterValue.substr(0,4000));
    lSplitterValue = lSplitterValue.substr(4000,lSplitterValue.length-4000);
    i++;
    get.addParam('f01',lSplitterValue);
    get.GetAsync('clob_SubmitReturn');
    get=null;
    Add or remove comment to use it. The first method work fine but the other doesn't work.
    I want to know what's the best way to integrate this method with create record and update record. In this example, you can update record but you can't insert new record.
    Thanks. I'm waiting your comments.
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com
    Message was edited by:
    smichaud

Maybe you are looking for

  • Crystal Reports VS 2008 "The request could not be submitted for background processing"

    Hi, I am going to try to explain this issue the best I can. Please let me know if you need any other information or have any ideas as I have exhausted my resources. We have an ASP.NET application that has highly formatted crystal reports in them that

  • Purchase Order Delivery Cost

    Hi all, when i created PO and enter  freight value,at the point of entering migo an error message "Balance not zero: 99,749.85- debit: 34,197,149.85 credit: 34,296,899.70" was displayed ,Please how can i resolve this issue.

  • 2nd ipod question

    hi. i recently purchased a 2nd ipod from a friend which is loaded with films and music. is their anyway to combine the library on this new ipod with my old itunes which i have on my computer?? i only want the films from this new ipod but want to put

  • ADF BC LOV: creating a new LOV entry in-the-fly

    Hi all I have LOV enabled ViewObject attribute, which is actually a foreign key to the another, master table, as usual. Now, user searches LOV values, and decides that he need a new entry in the master table, which should to be assigned to the LOV en

  • I KNOW THE BEST SETTING FOR "HANDBRAKE" !!!!!!!!!!

    Hi all Brendan here! I have to say this handbrake thing was very frustrating at the start, but with alot of trial and error, I have all the settings fine tuned!!! From DVD movie to iPod! You can trust these settings! File format: Mp4 file. Codecs: MP