Forms/DB event custom / running

Hello!

I have a slow process running on the database server.

This process is called by oracle forms.

I want to make the user aware of the progress of the execution.

There is a way to a database server procedure "trigger event" in forms?

I tried to use a session variable with the % of status and read it with a timer in forms, but

looks like timer forms to run in the same thread of execution, so it s processed only after the end of the batch.

I have a solution in mind using work and a table to make progress, but I Don t like this solution.

Is there another way?

Thank you.

11 GR 2 forms

Oracle DB 10.2

If your slow process is a stored procedure, then the easiest way would be to submit a job using dbms_scheduler:

http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14258/d_sched.htm

within your procedure, you can use dbms_application_info.set_session_longops

DBMS_APPLICATION_INFO

and then query v$ session_longops in your form for more information on the process.

However, we must be aware that by submitting a job than your procedure runs in a different session, so he will not see all the data your session validated in the database but has not committed for example.

see you soon

Tags: Oracle Development

Similar Questions

  • How to run a code in the form postSubmit event

    Hi all

    I have a simple code that runs perfectly when I put it in form : preSubmit: event, but when I moved to the : postSubmit: event it does not .

    Please let me know where to put my code if I need just to be executed once the form is submitted?

    Thanks in advance,

    Mohammed Al-Christiane

    Try using this code:

    vMsg var = ""; message to display to the missing mandatory fields

    var successflag = 1; indicator to determine if a required field is null

    validate all required text fields

    for (var nPageCount = 0; nPageCount

    var oFields = xfa.layout.pageContent (nPageCount, "field");

    var nNodesLength = oFields.length;

    for (var nNodeCount = 0; nNodeCount

    If (oFields.item (nNodeCount) Contracting == "error") {}

    If (oFields.item (nNodeCount) .rawValue == "" | ") oFields.item (nNodeCount) .rawValue == null) {}

    vMsg += oFields.item (nNodeCount) .name + ",";

    successflag = 0;

    }

    }

    -type in your code

    If (successflag == 1)

    {

    run the insertion in the database code

    }

    on the other

    {

    XFA. Host.MessageBox (vmsg); Displays the names of missing fields

    }

    Kind regards

    Chaitanya

  • LiveCycle form - disable functionality when running record

    Hello

    is it possible to restrict dynamic user not be able to save changes to a form?

    We want to allow the user to choose some specific application of custom security choices. Certain level of security, we want to disable the ability to save filled data (the data may still be post to a server).

    Thank you.

    Hello

    As a general rule, you cannot disable save. The user can access any stage save or save as on the file menu. They can also press CTRL + S.

    If you include the following in the event layout javascript code: ready for the root node, the user can not prompted to save the form:

    event.target.dirty = false;
    

    Overall, the user can always save the form.

    Hope that helps,

    Niall

    Ensure the dynamics

  • Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    3177349 wrote:

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    It depends only on the BONE of the application server.

    If your OS development and OS is different, you have to compile the fmb in the server again.

    Hamid

  • Display the places available in the form of events

    By default, the allocated seats is 1 in the form results, but what do you do if a user wants to book 2 or more seats in the user form. Understand you can add a field, but how it would be recognized as an allocation of seats in form results? Thank you

    On a form of event there is no field that you add to seats, unless you want that filled a reason any.

    When a form is on reservation, this creates a booking rather than the norm of the case that made a web form. There he seat assignment. This is based on the seat assignment field that you add to the web when form on a booking page layout.

    Doc for this is here:
    http://docs.BusinessCatalyst.com/user-manual/modules/Events/Booking-multiple-seats-for-an-event

  • Hello, how can the form in Adobe Muse run on a third-party hosting site?  MANDIC use the server to host the site. More the form of error. I couldn't find the solution to this problem.

    Hello, how can the form in Adobe Muse run on a third-party hosting site? MANDIC use the server to host the site. More the form of error. I couldn't find the solution to this problem.

    Please see this document for troubleshooting:

    https://forums.Adobe.com/docs/doc-3581

    Thank you

    Sanjit

  • Add a field to a form of event booking and amending the module results.

    I'm trying to use the events/booking system to book occasional days at a daycare for a customer. I can customize the events detail form layout but I need a few extra fields and make changes to the auto responses.

    The form/page is visible in a secure area, so that the user gets the submitted form against their name. It is very good. However, I must also capture the name of the child who is being reserved for the adult. Can I add a field to this form and taped in the event reservations. I tried to add a field, but the data is not captured in the form results.

    I also need to change a few other things on the module:

    -the form workflow. Where and how can I configure the workflow used for the presentation of the event/reservation? He seems to have chosen a random.

    -J' need to change text field names / on the module results from the form on the confirmation page and confirmation email.

    -It shows "Reserved seats" is in this case an inappropriate description of the measures taken. I need to change this to 'Requested places', or remove it completely.

    -It also shows "confirmed Reservation". I need to change this "booking request received.

    -l' displays confirmation email a booking link check at the top of the email. It is not in the model of Notification email about the event. How can I remove it?

    Can I use javascript to hide or search and replace some of the incriminated tags, but I was hoping there's a cleaner way.

    For any help or suggestion would be greatly appreciated.

    Hey there,

    The booking form is just a web form, the Treaty differently BC when, on the events page. So, in web forms, you will find the booking form. You can add not just fields for the html code of the form. You must add them here so they can go in the database.

    -The workflow of the Web form can be changed on the settings for web form, the workflow is under site settings and you can create/modify them there.

    -You can have the name of the fields coming out, you don't have a lot of customization on the email confirmation or the layout. You cannot limit or modify the fields.

    -You cannot use javascript in emails, this isn't a thing of BC, this is something Telec.

  • Update scheduled task orchestration event custom password manager problem

    Hello experts,

    I'm trying to run a custom on-demand updating the user password in IOM 11.1.1.5

    Taken into account in the file input stream, there are 5 users
    TSTUSR1
    TSTUSR2
    TSTUSR3
    TSTUSR4
    TSTUSR5

    Problem that I face is when the update of password change fails for a user and for future users also obtain failed. Say to TSTUSR3 change the password has failed for some reason any (take the example user does not exist) then TSTUSR4 and TSTUSR5 also it is failed.

    Note: here the changepassword to TSTUSR4 and TSTUSR5 is get called but I get an orchestration event manager exception like below.

    < 9 March 2012 06:26:12 THIS > < WARNING > < oracle.iam.platform.kernel.impl > < IAM-00 80002 > < Orchestration validation failed on the event handler - the password change operation failed >.
    Exception occurred during password change
    oracle.iam.identity.exception.UserManagerException: the password change operatio n failed.
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword (user ManagerImpl.java:3024)
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.changePassword (user ManagerImpl.java:2959)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.changePasswordx (exercise wn Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJo inpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisit orImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.c allback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentIntercepto r.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocat ionInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntrodu ctionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMetho dInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopPr oxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy331.changePasswordx (Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.__WL_invoke (unknown Source)
    to weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke (its sionRemoteMethodInvoker.java:40)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemote Impl.changePasswordx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke (distance BusinessIntfProxy.java:85)
    to $Proxy195.changePasswordx (Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke (JdkDynami cAopProxy.java:198)
    to $Proxy328.changePasswordx (Unknown Source)
    oracle.iam.identity.usermgmt.api.UserManagerDelegate.changePassword (U're Source)


    And here is the code snippet I use
    ####################

    Try
    {
    CsvReader fileName = new CsvReader (actualPath);
    fileName.readHeaders ();

    While (fileName.readRecord ()) {}

    Try
    {

    String username = fileName.get("USR_LOGIN").toUpperCase ();
    Password String = fileName.get ("USR_PASSWORD");

    If (! isNullOrEmpty (username) & &! isNullOrEmpty (password))
    {
    userAPI.changePassword (username, password.toCharArray (), true);
    }
    on the other
    {
    System.out.println ("file is empty");
    Err.Add (FileName.getRawRecord ());
    }
    } catch (Exception e) {}
    Err.Add (FileName.getRawRecord ());
    System.out.println ("Exception occurred during password change");
    e.printStackTrace ();
    System.out.println ("continues with the next record");
    }
    }

    catch (Exception e) {}
    e.printStackTrace ();
    }

    ####################

    Your entry to most early would be useful.

    Thank you
    DK

    Published by: 875142 on March 8, 2012 22:56
  • Why Event.ADDED run HGroup when you change the size of the element?

    Hello

    I was wondering why my listeners Event.ADDED/REMOVED run when I change the size of an element in a HGroup... I can't understand. Both are running.

    I am writing a card game and I want to increase the size of a card in the HGroup on mouseOver. If I comment on changes in the width and height, the listener of Event.ADDED/REMOVED is not called. It runs only when I change the size of the map. The card is a custom BorderContainer component.

    Thank you

    Gabor

    The event.target must indicate what is to be added and removed.

    Depending on the content, I suppose it is possible that the graphics have to be recalculated to display new objects and that they be deleted and added.

  • Script of the form docReady event!

    Hello

    I have a simple form with 1 box (off by default) and Textfield 1. The two are distinct forms. I'm trying to make the visible presence of TextField when the box is checked. Script works great for the event box change but not for the Docready event.

    Can see the form in pdf here: http://DL.dropbox.com/u/5141935/ErrorInVisibility.PDF

    In summary:

    ErrorInVisibility.jpg

    I also checked the same on the shape ready, ready layout event... (just for the hit & trial) but no work with either.

    There is a big version of form, this is just a version boiled down the problem.

    Pls tell what I'm doing wrong!

    Thank you.

    -

    Afonso

    Hello

    Here's the back of the form: https://acrobat.com/#d=lVnQIhP4B4t0A-N9prn4hQ

    I would use the click event of the checkbox to change the visibility of the subform. Then in the box docReady event, you can run the script in the click event.

    At the time of the design, you can also set the presence of the subform to hidden or invisible. In this way, that you would not need the docReady event script.

    Hope that helps,

    Niall

    Ensure the dynamics

  • Subvi inside the structure of event wont run a second time.

    I have a Subvi within a structure of the event, and it runs when I press a button, inside the Subvi is code in a while loop, and when the last piece of code is executed, the while loop stops.  I have a bad event triggerring once I have already run once.  Which means that I pressed the button and the code in the event structure was executed and while the main VI works always, I press the same button again and everything works but the Subvi.  How I would do this job?


  • Message in the event viewer running XP Pro with SP3 get following: 7026 ID: start system or boot start drivers following could not load: nvatabus nvraid. How can I fix it?

    Get the following in the Event Viewer error message have had this message for quite some time

    ID 7026: boot start or system start following

    driver (s) failed to load: nvatabus nvraid. How do I

    This difficulty?  I am running XP Pro SP3. Would appreciate any help in this matter.

    Hello

    · What is the number and the model of the computer?

    · Remember the recent changes on the previous computer o the question?

    The problem is related to the display driver installed on the computer.

    Check the status of the card/video display adapter installed on your computer.

    a. click on start

    b. click Run, in the Run dialog box type devmgmt.msc

    (c) in the Device Manager window, look for the screen reader and expand the drive, double-click the sub element to check if an error message or error code is listed.

    See the links below: http://www.microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows+Operating+System&ProdVer=5.2&EvtID=7026&EvtSrc=Service+Control+Manager&LCID=1033

    How to manage devices in Windows XP: http://support.microsoft.com/kb/283658

  • Defining a button to a function not defined onclick event / custom

    I'm not a developer of captivate, but I develop a page that is embedded in an iframe (webobject) within a page of captivate. Page that I have developed a chart, the data for which depend on which button is clicked in the Captivate parent page.

    Ideally, I wish I could have my captivate developer simply set the onclick event for each button to call a function (by name) I'll set my page in the iframe. To do this, I was hoping there was an option to simply give the name of the function to an event onclick in captivate, so that my iframe can 'reach' in the parent company and equal to a function in my graphic page, I set the value of this function.

    I would like most, the outcome to be (basically) something like this:

    Captivate page:

    < someButton onclick = "CaptivateTest1" >

    < someButton2 onclick = "CaptivateTest2" >

    < iframe src = "myGraph.html > < / iframe >"

    myGraph.html:

    < html >

    <!--... Graph of stuff here->

    < script >

    function myDefinedFunction() {}

    Change a chart of the data

    }

    function myOtherDefinedFunction() {}

    Change a chart of the data

    }

    window.parent.CaptivateTest1 = myDefinedFunction;

    window.parent.CaptivateTest2 = myOtherDefinedFunction;

    < /script >

    < / html >

    Describe your functions in the html document in the iFrame:

    window.parent.CaptivateTest1 = function()

    {

    do stuff

    }

    Then you have Developer run JavaScript in JS linked to the button window:

    CaptivateTest1();

  • Contact form of the custom in the response e-mail fields

    I have a question about contact forms - I have a client who needs a form which is huge and requires 25 + custom fields (rental request form). The problem is when the customer receives the e-mail message all custom fields are labeled "Custom" - it is not useful to the customer due to the multiplicity of fields returning similar data. Does anyone know if you can fix it for the shape reflects the answer by e-mail?

    Name labels for custom field in your form. This name is used as the field name in the corresponding enail.

    If you do not see the labels, turn them on in the panels of configuratuon forms.

  • I have an interactive PDF form with buttons that run the Script - Action - Up mouse - file &gt; save as.

    Works fine on the desktop. Customer now has this on their website and the buttons save as now do not work in different browsers... IE 8, Chrome, etc. Any suggestions?

    Hello Cara,

    Please refer to this link Why doesn't the submit button work on my PDF form?.

    Kind regards

    Nicos

Maybe you are looking for

  • Replace the string on a specific line

    Hi everyone thanks in advance for your time. I have almost finished a project, (a software to manage the booking of hotel rooms and a database of passengers). I made a function that writes a .txt file a cluster with some personal information string t

  • Receive the error code 80040006 try to update Windows Live

    When I test update of windows live, I get this error code.  Get the message "could not access file %APPDATA%\.  It downloads all the options I select but settled nothing.

  • Request alimentatore Dell T20 [CF]

    Buongiorno, avrei need di comprare UN alimentatore per server Dell T20. Service etiquette: 12985Y1 Express service code: 2313212185 Allégo foto alimentatore e server.

  • Driver TS-H552L in my HP Compaq SR1720NX has stopped working

    I bought a new or renovated possible Office count HP Compaq Presario SR1720NX to MICRO CENTER and all of a sudden the DVD and USB ports do not work?  I checked the problem and this is the driver. It's a TS-H552L and listed in my currency manager as T

  • WPA - 2 Enterprise multiple SSID / multiple groups

    Hi all I don't know if it is in the right section so forgive me if it's not good. I am currently trying to setup WPA-2 Enterprise using a 5.x ACS server. The bases have already been completed. I have everything set up such that if the users are in a