Update the State of the work using APEX_PLSQL_JOB. UPDATE_JOB_STATUS in the procedure

Hello

I have trouble getting my head around the status of the work in APEX_PLSQL_JOB.

I have a button on a page that presents a work using:
          l_sql := 'BEGIN validation_pkg.run_validations_job(NULL,:P7_APP_ID); END;';  
          l_job := APEX_PLSQL_JOB.SUBMIT_PROCESS(p_sql => l_sql,p_status => 'Validation Submitted');
This creates a job runs my packaged procedure and returns the JOB_ID argument which I store in a table, so I can query its status thereafter.

The job runs then but I want to update the status of the job as it progresses through the stages of the treatment, it runs. So, I want to call APEX_PLSQL_JOB. UPDATE_JOB_STATUS. This call requires two parameters, the JOB_ID argument and the new STATUS. The manual contains the code example:
APEX_PLSQL_JOB.UPDATE_JOB_STATUS( P_JOB => :APP_JOB, P_STATUS => 'New Status');
and says: APP_JOB is a "reserved" component that will automatically "replaced for you at runtime with the number of actual jobs.

However, when I want to talk: APP_JOB in my code 'create a package body... '. ', as
apex_plsql_job.update_job_status (P_JOB =>:APP_JOB, P_STATUS => 'Stage 1 Complete'); 
It returns a "bad bind variable. compilation error 'APP_JOB'

How can I make to APP_JOB in my procedure packed?

Thank you very much
Martin

Hello

You must add the p_app_job parameter for example to your validation_pkg.run_validations_job procedure.
Then present you the work as

l_sql := 'BEGIN validation_pkg.run_validations_job(NULL, :P7_APP_ID, :APP_JOB); END;';
l_job := APEX_PLSQL_JOB.SUBMIT_PROCESS(p_sql => l_sql, p_status => 'Validation Submitted');

In the procedure, then use you value of parameter in APEX_PLSQL_JOB. UPDATE_JOB_STATUS call

APEX_PLSQL_JOB.UPDATE_JOB_STATUS( P_JOB => p_app_job, P_STATUS => 'New Status');

Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • UPDATE the procedure

    I don't know why this procedure does not work. I gave the update on the table. Updates are possible but this code does not work.

    create or replace procedure raise_salary is

    Start

    UPDATE hr.employees SET salary = salary + 1

    WHERE employe_id IN (SELECT distinct hr.employees manager_id);

    end raise_salary;

    It can be functional... i.e. all employees are Manager!

    Or hit you below... Not to and NULL

    This departure!

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:no:P11_QUESTION_ID:442029737684

    Change the query:

    UPDATE hr.employees SET salary = 1000

    WHERE employee_id NOT IN (SELECT distinct manager_id of hr.employees where manager_id is not null);

    Please check now!

  • Updates for photoshop will not work / used to open raw images

    I tried to update my photoshop and several times to open images raw in photoshop and it won't work, every time I try to do the installation fails and does not explain why and example is:

    Adobe Bridge CS5 4.0.4 update

    Failed installation

    Adobe Device Central CS5.0.1

    Failed installation

    Photoshop to Photoshop CS5 12.0.2 update

    Failed installation

    Photoshop Camera Raw 6.3 update

    Failed installation

    can anyone help?

    Can be useful if there is no more specific message being shown to list them.

    Just to pass on what I've read: some people using PCs reported that deleting Photoshop, relocation of their original medium, then upgrade to the latest works where they have not been able to get the updated software via the integrated process.  I don't know if this is true for the Mac, but it could be something to try if you exhaust your options.

    Have but before trying this, you tried to do a manual installation of the latest updates?  You can download the appropriate directly from the following:

    http://www.Adobe.com/support/downloads/product.jsp?product=39&platform=Macintosh

    http://www.Adobe.com/support/downloads/product.jsp?product=39&platform=Windows

    -Christmas

  • what I am doing wrong? update the procedure

    cannot understand it. get errors trying to compile. Perhaps an error of syntax with the single quotes / double for NEWSTATUS and 12345?

    create or replace

    PROCEDURE TEST_UPDATE

    as

    BEGIN

    SQLU: = "UPDATE TABLE1@DBLINK SET STATUS = 'NEWSTATUS' where the project of '12345' = '; "

    run immedate sqlu;

    commit;

    end;

    I get:

    PLS-00103

    ORA-00904

    ORA-00933

    PLS-00103

    708631 wrote:

    No, it did not work. Even if I do not run always immediate problems and may not compile.

    It should work, but it doesn't.

    create or replace PROCEDURE TEST_UPDATE

    is

    BEGIN

    UPDATE TABLE1@DBLINK SET STATUS = 'NEWSTATUS' where of the PROJECT = "12345";

    commit;

    end;

    That's because you wrap your values with 2 quotes try only with single quotes.

    for example

    Update table1@dblink set status is 'NEWSTATUS' where of the project = '12345'.;

  • Update the BIOS has no - no display on my Satellite A200

    Hello

    When I tried to do an update of the windows BIOS, windows stuck and need to restart, but when I restart I no the any all screen.
    I guess that my BIOS is damaged.

    I would try an update of the traditional BIOS, but there is no traditional update of Satellite A200.

    Any ideas?

    Thank you

    Orhan

    Hello

    Unfortunately, it seems that the windows version of the BIOS is available for this model of laptop.

    In any case, I wonder why you have updated the BIOS of your laptop. Many users of the forum mentioned that the update of the BIOS is risky!
    The bad BIOS or bad BIOS update procedure can damage the motherboard specifications ROM!

    Did you follow the directions of update of the BIOS that is available on the Toshiba page?
    Generally everyone should plant after that law updated the procedure

    You said stuck and need to restart windows
    Well I think that something was wrong during the update process and so the phone doesn't display anything!

    This doesn't sound good! In my opinion, you must contact the ASP in your country because after the wrong BIOS only laptop technician could save the unit!

    Good luck

  • How to update the switchable graphics drivers and Dungeon 'switching' work?

    Hi guys,.

    I recently installed the new drivers by AMD (v.13.1) on my laptop HP Pavilion dv6-3060ej (Windows 7 64-bit), which uses the Intel HD Graphics and AMD Radeon HD5650 switchable graphics.

    The fact is that I met a few rendering problems on the latest 12.6 which supported my graphics and allowed soft switching between them. Version 13.1 solved my problems of rendering, but another question - it simply does not recognize my graphics card so that it installs only some of its features and leave the Catalyst Control Center features so I can't pass my graphics cards. I even tried to leave the latest CCC, but it comes with an error message.

    To summarize, my strongest Radeon HD5650 graphics card works well but I cannot switch to the Intel's HD to save the life of the battery.

    Any thoughts? Thanks a lot for your help

    Hello IBINATOR.  I appreciate that you try to upgrade your Radeon (with drivers AMD) graphics while keeping the switchable graphics in a working state.  Is this correct?

    This is workaround only to your question and you must have the game, Steam client, installed.  The HP driver for your graphics card contains a driver for the card from AMD, the Intel card and switchable graphics framework.  You can then use the game client, steam (through a partnership with AMD), to update the part switchable graphics system AMD while keeping graphics intact.

    1. Remove your current AMD drivers using this utility and restart your laptop.
    2. Download the latest version of the drivers from HP.  Here is a link.
    3. Install the driver and reboot again.
    4. Follow the steps in this thread to use steam to update the graphics driver.
    5. Restart one last time and check if the problem is resolved.

    Let me know the result.  In addition, have a wonderful day!

  • problem updating the contract line using OKC_CONTRACT_PVT.update_contract_line

    Hi all

    I am facing a problem trying to update the end of contract line dateusing the api OKC_CONTRACT_PVT.update_contract_line. When executing the procedure that calls the api it returns the State S without error and also update the table of base that is OKC_K_LINE_B with new end date successfully.

    The problem is that whenever I'm if commit the changes to the front end, application - contract line record gets endangered. What is happening to all instances of the element. Here are the settings I am passing through the api,

    p_chrv_rec.ID: = < id for row in the okc_k_lines_b table >;
    p_chrv_rec.end_date: = < new_end_date >;
    p_chrv_rec. VALIDATE_YN: = 'N'; -I don't want the api to validate attributes

    Please note that the api is correctly updating the record base table but not able to display in the application. I tried to compare the same record before and after the update to confirm if no value of the indicator is is changed due to the record does not appear in applications. but there is no such changes except the new date and the annualiazed_factor. Can is it you pls let me know no work around as if any option profile must be changed to achieve the same.

    Navigation to the im application to check the update new end date of contract line is:

    Oracle Install Based Agent user-> Instance element-> contracts

    Thanks in advance.

    Kind regards
    Hespel.

    Published by: user10545574 on July 8, 2010 06:56

    Hello

    Shouldn't you be using the public api (OKC_CONTRACT_PUB) rather than the private sector? By directly using the package private, you are probably bypassing some features that could cause problems like the one you are talking about.

    Kind regards.

  • I tried to update, but sites still say I use an older version. I downloaded the latest version and run the program to "downloads".

    Sites like Pandora and gmail keep telling me that I use an older version of Firefox. So I followed their links to update, download the latest version and run it from my downloaded programs. But it doesn't seem to work as the sites always give me the same message.

    Something that you have changed your User Agent or prevents your User Agent to update with the new installation/update of Firefox. I suspect it's Fast Browser Search, which is shown as part of the User Agent. To get rid of Fast Browser Search do the following:

    1. Closing of Firefox (Firefox button > exit OR File > Exit)
    2. Open the Windows XP Control Panel and remove/uninstall "Fast Browser search protection" and "Fast Browser Search" (MyWebTatoo)
    3. Launch Firefox

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • ProBook G3 450: I've updated the bios on my g3 Probook 450 and now potrs usb do not work

    I've updated the bios and after restarting the pc no usb port work and the usb serial bus is not listed in Device Manager. I have not received any error.

    Hi Richrob,

    Usually after the BIOS updates I recommend restoring the default BIOS because some parameters may change or managed power States must be refreshed. If you start at the F10 menu there will be a restoration of the default BIOS on the home page.

    If the USB bus does not return to the top after restoring default values, try to reinstall the USB driver. You can find the latest version for Windows 7 here.

  • White screen to update the Portege M400 firmware after waking from sleep state

    Why this topic has been closed? http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=19803&MessageID=74193

    I just wanted to add that this update does NOT resolve the problem in vista and it is NOT a driver problem. The update will not install in vista and vista is already provided with videoprt.sys 5.1.2600.2911.

    When it occurs, the laptop again indeed. You can manipulate and even hear the sounds, but the backlight does not come on or there is no output from the video card. I'm fairly certain that it is a signal of hardware problem.

    No matter what laptop I, euro or us, could someone please tell me the file so that I can look at what changes actually code?

    Hello

    > Why this thread has been closed?
    I think that the admin closed this thread because, as indicated by the user lumix2day the MS update has solved this problem.

    The M400 was delivered with Win XP it's why the update should work with Windows XP!

    Regarding your question.
    Looks like you are using your own copy of Vista on the M400.
    You should check if Vista is already up to date. Each week the new MS updates are published.

    Additinally, I recommend updating the BIOS and check for a driver update more recent display!

    Best regards

  • I updated the firmware of my as30v and now it does not work

    It's my problem.
    In my computer, the update was completed suceffully, but then my actioncam it does not work.
    I removed the battery and nothing to do.
    The screen is off and the rec light still works.
    No information on the screen, no response. I tried to remove the time of one and an another battery. The red light is still in mode on. If I connect with the computer, nothing happened.

    Died?, but why!

    Your device is in integrated security mode / download.

    Go through the process of updating the firmware again. What operating system do you use?

    Repeat and follow this guide:

    http://eSupport.Sony.com/us/p/SWU-download.pl?MDL=HDRAS30V&upd_id=9893&os_group_id=23

  • L855-135 satellite display brightness does not work using the new ATI driver

    Hello

    I just bought the L855-135 with a Radeon HD 7670 M and wanted to update the graphic with map
    the last driver AMD. After that, I realized that the brightness setting didn t work anmore. So I uninstalled
    the new driver and installed again the old driver from this site. Now, the brightness setting works fine again but I Don t really want to get stuck on this older version of the driver. Its around the age of 8 months. Before I bought my laptop I've never heard their update policity. Can someone tell me when they intend to update their-own-amd-drivers toshiba? I really want some new drivers but I Don t want to lose the ability to adjust the brightness. For me, it's a reason to give the laptop back, but I like really this laptop with the exception of its own pilots.

    Can someone tell me how long it will take to get a few new drivers? And I mean not more recent that the 'old' but still 6 months of NEW drivers.

    Thank you.

    > After I realized that the didn t of brightness adjustment works more. So I uninstalled the new driver and installed the old driver from this site again. Now, the brightness setting works fine again but I Don t really want to get stuck on this older version of the driver.

    I found another thread on the same topic.
    It seems that the command buttons FN brightness don t work using the NON-Toshiba graphics card driver.

    You know this Toshiba page graphics card driver is a driver updated, created and configured especially for models of Toshiba laptops.
    This driver supports protection against overheating. Other drivers don t

    However, it seems that there is no other solution than to use the Toshiba configured and modified drivers.

  • Despite indicating to the path, still have manually pointing DLL every time LV works using the library function node call

    I use the node of the library function call in LV 8.6. I checked the path to specify the box diagram and made directly in the DLL file that I use. Whenever I have started with Labview, I have to go to the diagram and physically find the DLL in one of my calls to make it work properly. Once I have do this everything seems to work as expected. Anyone else see this issue? Any suggestion would be appreciated.

    Thank you

    Steckman wrote:

    I use the node of the library function call in LV 8.6. I checked the path to specify the box diagram and made directly in the DLL file that I use. Whenever I have started with Labview, I have to go to the diagram and physically find the DLL in one of my calls to make it work properly. Once I have do this everything seems to work as expected. Anyone else see this issue? Any suggestion would be appreciated.

    Thank you

    Probably that DLL does not depend on other DLLs that reside in the same directory you point to in the configuration node dialog box call library. What is happening is this:

    Without going into this directory:

    LabVIEW applications Windows to load the DLL, Windows detects that it needs to load other DLLs and can not find in its standard search sites:

    (1) already loaded into memory

    (2) in the application directory (where the exe that began the current process resides in the LabVIEW IDE would be where is LabVIEW.exe)

    (3) in the system directory

    (4) in the Windows directory

    (5) any directory in the PATH environment variable contains

    (6) in the directory 'active '.

    Because Windows cannot find a person to load DLL he abandoned the main DLL loading and returns an error to LabVIEW.

    Now, you go to the configuration dialog box and point to the DLL. The dialog box browse file in LabVIEW uses the standard OS dialog box and this dialog box has the behavior obnoxious always update the "current" directory in the directory where a file got selected in. LabVIEW sees now that the path has "changed" and asks again to load the DLL. Yet once, Windows detects that it needs to load other DLLs too for this DLL but this time going over the search order, it will actually hit the DLL in the same directory and that's all fine.

    It is certainly NOT a problem of LabVIEW. LabVIEW does not and should not really need to know that a DLL needs other DLL loaded and more importantly should never try to think he can do better than Windows, it probably could, but is simply not his task of dependency DLL loading.

    It is your responsibility as a programmer and user of this DLL to know its dependencie, and if you did not write the DLL, to hit the original on his head programmer, if it has not documented these dependencies and make sure that these dependencies are actually properly resolved for Windows placing them in one of the places mentioned above

    ((2) is generally the best location for applications applications because it will not pollute the Windows directory or the user of the application system and 5) is the best for the development machine as you can add a directory to your PATH environment variable where you put the dll you need to develop a specific application.

    Rolf Kalbermatter

  • How can I update the BIOS without using a CD?

    Hello!

    I recently decided to update my RAM from 2 GB to 4 GB. After installation, I started my computer to find that it would not recognize the new memory. After doing some troubleshooting, I decided to try to update the BIOS, like the 2010 version. I have downloaded the update to the BIOS boot CD implementation of lenovo, burned a disk and restarts, I found that the boot order has no CD contained thereon. Here's the catch: I do not have the supervisor password. It is a mobile phone in hand, and I tried to find the password nothing is done. It's the current boot order: USB key, hard drive.

    My question is, can I create a BIOS update disk using a USB key, or update the BIOS of another way?

    I understand that it is impossible to recover the supervisor password without having served (that I prefer to not do, even if I have to return my Crucial RAM)

    My system features:

    ThinkPad L512

    BIOS version: 1.04

    BIOS date: 2010-3-26

    Controller of Embeded Version: 1.01

    Windows 7 32 bit

    Thanks for your help.

    Welcome to the forum!

    Two things here:

    (a) If you run the system update, it should offer the latest BIOS for your machine as well. I never did on a protected device, so it may or may not work, but perhaps worth it.

    (b) I doubt the ability of the system to recognize the new RAM has something to do with the BIOS. Much older than your ThinkPads will take place 4-8 GB of RAM with an old BIOS, older than your machine initially.

    Good luck.

  • Using sharepoint to update the Web page, whenever I make a change multiple widgets.

    Original title: sharepoint widget multiplies

    Beginner with very little computer training.

    using sharepoint to update the company's Web site.
    I inserted a youtube widget and a twitter widget in Web content parts respective (using the html editor) and everything looked and worked well.
    the next time that I edited the page (I've changed the dimensions of one of the widgets), I saved and discovered that, instead of a twitter monitor, I've now had 2... and vice versa with the yourtube. whenever I make a change, the monitors are multiplying.

    Hello

    (1) operating system do you work?

    (2) do you use Microsoft Sharepoint?

    If you use Microsoft Sharepoint then I would suggest that post you the question in the Microsoft Technet for Sharepoint forum. Consult the following link:

    http://social.technet.Microsoft.com/forums/en-us/category/SharePoint2010, sharepoint

Maybe you are looking for

  • DB level monitor

    Hello.  I am an audiobook Narrator.  I had been recording in ProTools.  The recruiting company tells me that my "levels were very low" (see picture in first attachment) and they had "to amplify the volume 20 d" and that "BPEAK dB between - 6 dB and -

  • How can I add a device to my appleid?

    My wife bought a used iphone 4 and none of us is familiar with the iphones.  I managed to activate the phone on the sprint network, but in the day somehow the phone became disabled.  I tried following the instructions for recovery, but the phone is s

  • Use home sharing on iPad if iPad library is empty?

    Hello! I would like to use home sharing to listen to music from my iTunes to my iPad (MacBook Pro 2013) library. I have no music, videos or whatever on my iPad. Unfortunately, it seems that the button to access the sharing home from the music applica

  • DC 5800 no sound. XP Pro

    I have now two dc 5800. More recent came with 4 GB of RAM, videocard ATI Radeon 4770, 2.93 GHz double heart and no operating system. I installed my XP Pro, including all updates and SP3. Also driver audio HP site. No sound. Took a look in the BIOS an

  • Keyboard PIN/release

    The release of a PIN / pad are the same size on all sides. Is it possible to make a customs clearance without using the option "allowed/prohibited" (because it gives me a lot more warnings). Another problem, the game will not change if I replace the