Need to run popup from pl/sql process with a twist

I am trying to do the following:
User comes in and selects a date/time for a process to be started at a certain station. User then goes to click create button. Either on the exiting of the date/time picker or the click of the create button, I would like to run a process to determine if there is already something scheduled for that time/station. If there is already something scheduled, I would like to alert them to the fact and confirm if they want to shift the exiting item around and have the just entered item go in it's place..
Trying to do this in APEX 4.02, Oracle 11g database..
Thank you,
Tony Miller
LuvMuffin Software
(281) 871-0950

Luis,
Thanks for the input.. What I am trying to do is this:
User comes into page and selects a item to process, then a workstation and a start time & end time for the processing
After the start and end times are selected I am developing a dynamic action to alert them if a process is already scheduled
** NOW ** here is where it gets interesting.. If a item is already scheduled, the want to bump that item from that time & workstation and put the just entered item into the schedule.
I am looking at a dynamic action, but do NOT yet have the knowledge to do multiple things in it (Only if this is a NEW item):
I know how to query the table to confirm if there is already and item with the workstation & start-end time period
Need to see how to generate a popup (confirmation) to confirm they want to bump the existing entry
I know how to generate the update statement to update the existing item.
Thank you,
Tony Miller
Webster, TX
If vegetable oil is made of vegetables, what is baby oil made of?

Similar Messages

  • Running sqlplus from an OWB process flow

    I have two SQLplus scripts that I need to run as part of a process flow. The flow calls the scripts at different moments, using Unix commands that look like
    sqlplus userid/passwd@sname @startReadseq.sql
    sqlplus userid/passwd@sname @idenTransac.sql
    Script startReadseq.sql drops and then re-creates a sequence that I need to begin at 1 every time. Script idenTransac.sql runs a PL/SQL program on a table. Both scripts have been tested many times from the SQL prompt and they always run satisfactorily there, under the same userid employed by the process flow at runtime.
    However the two calls to SQLplus are ignored by the flow. The sequence is not reset, and the PL/SQL routine doesn't even write its log file. I looked up our forum but apparently there's no article on this topic yet.
    What am I missing or doing wrong? ... thank you for any help.
    Santiago Gomez

    Santiago, Would you help me?
    I have problems in starting sqlplus activity from a process flow. The process flow is very simple ( START - sqlplus activity - END).
    I wanted to start sqlplus and execute some commands in it.
    I set PARAMETER_LIST as @absolute_path_to_script_that_starts_sqlplus@
    and left the other three parameters(RESULT_CODE, SCRIPT, SUCCESS_THRESHOLD) blank.
    Inside the script that starts sqlplus is:
    sqlplus user/password@sid @absolute_path_to_script_that_contains_commands_to_run_in_sqlplus
    The Validation, generation and deployment passed successfully, but the following message is logged during execution:
    SQL*Plus: Release 10.2.0.1.0 - Production on Thursday Sep.27 17:26:25 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    password: ERROR:
    ORA-12560: TNS: protocol adapter error
    please enter user name:
    I've tried using "sqlplus /nolog" and "sqlplus" to avoid verifying user name and password, but I still got the message above.
    I also specified the absolute path to OWB's sqlplus executable and still failed.
    If I execute "sqlplus user/password@sid @absolute_path_to_script_that_contains_commands_to_run_in_sqlplus" in dos command line, it just works fine.
    I'm used to start just the listener and OracleService<sid>, and I also started OracleDBConsole<sid> to wish it works, but it doesn't help.
    It's really gnawing :-(
    Thanks in advance.
    My environment is Windows XP, Oracle 10.2.0.1.0, workflow server 2.6.4, OWB repository 10.2.0.1.0 design center 10.2.0.1.31

  • Apex: output message from pl/sql process

    Apex 4.2
    THis is kind of an Apex and Pl/Sql question, but more so Apex because I'm using that environment. I have a pl/sql process with an IF - Else statement. It's a real simple process where you check:
    IF P101_Count > 1 Then
       Do stuff;
    Else
       Output an error message.
    The process runs when I click a button.
    I am just not sure how to get an error message to display to the screen. I am not sure of the syntax.
    Any help on this topic would be greatly appreciated. Thanks in advance.

    Well, there a lots of ways to do this but, if you just want to see it on the screen, the easiest way is to add a Page Item (a Text Field for example). Then, in the Else portion just set it equal to the message that you are trying to display.
    If ( :P101_Count > 1 ) Then
    -- Do Stuff
    Else
    :P1_MY_MESSAGE := 'Hello World!';
    End If;
    -Joe

  • Asset Accurie dat 01.04.2010 but i need tu run Depriciation from 31.05.2010

    I Acquired asset on 01.04.2010 but i need to Run Depreciation from 31.05.2010 what steps need to do for blocking of 2 months
    Regards
    Varyb

    Hi,
    check the Capitalization date in Asst Master for perticular month from which you want to run the Deprecation, by this you need not block anything or else run the dep for that perticuar Asst  by changing to unplaaned Posting run in AFAB.
    Thanks
    Goutam

  • Need to run midlet from another midlet

    Need to run midlet from another midlet
    How to do it?
    In my midlet user get link to web-page, and i want to start mobile browser with this page.

    Hi,
    In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
    Sunil
    Software Developer - J2ME

  • Run reports from pl/sql

    Hello, i want to run reports from pl/sql, how can i do it, i suppose i can use
    RWRUN60 with the appropiate parameters, but i don4t know how to execute RWRUN60 from pl/sql.
    Thanks in advance.

    Hi,
    I believe by mistake you posted the same question twice. See my response in the other one.
    Thanks,
    Rohit

  • Packagemaker: need to run applescript from postflight script

    Does anybody makes packages using Packagemaker? I need to run applescript from postflight shell script. Generally, when we need to run applescript or any application from shell script we write:
    #!/bin/sh
    open /Path/to/applscrpt.app
    But what to do if all scripts (shell, app's) placed in MyPackage.pkg/Contents/Resources? What path I need to specify? This way:
    #!/bin/sh
    open ./Contents/Resources/applscrpt.app
    doesn't work...

    The $1 argument that gets passed to your postflight script by the Installer should contain the full path to the package that's currently being installed. So something like this should work...
    #!/bin/sh
    open "$1/Contents/Resources/applscrpt.app"
    Here is some additional info about args and environment variables available to your scripts.
    Steve

  • Run Report from PL/SQL with branch to different page

    I have an application in which, at various points, I run a PL/SQL procedure to perform an action, and then need to run a report while also navigating away from the current page. The actions are executed on a button click.
    I have tried various method, but for the life of me cannot get the system to do both things (ie. run the report and branch to another page). I have tried putting in a branch to page 0 (to execute after processing on the button click), with a request line to print the report, followed by a branch to the other page (also to execute after processing on the button click) - and only the branch to page 0 actually executes. Also tried putting a branch to the other page only, with the print request in the Request parameter - but only runs the report, does not branch to the other page.
    I have also tried to put the call to run the report into the PL/SQL code, using utl_http.start_request(url), but that came up with a "Bad Request" error. Also tried using the owa_util.redirect_url call, but also no luck.
    I am pulling my hair out at the moment, mainly because I am under pressure to deliver the system in very short time.
    Any suggestions would be appreciated.

    You can run Report queries from their URL ( f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=<REPORT NAME>)
    So an approach would be to
    On Button click, call a JS function that
    <li>1. uses Ondemand/Callback process to do the workflow processing(check box selection records)
    <li>2. opens the Report as a popup window(from your IR page)
    <li>3. Redirect away from the IR page to another page?
    Another approach:
    <li>1. IR report submits the page
    <li>2. In the PLSQL block you do the processing
    <li>3. The branch redirects to a URL which would point to the Report URL.
    OR
    <li>3. Have an onload JS which runs only when the request was the BUTTON request and that opens up a page which points to the report.
    Yet another way would be to use htp.p within the PLSQL block that does the workflow processing
    So your PLSQL code would be
    BEGIN
      --Do the workflow processing here
      --End workflow processing
      htp.p('<script>');
      htp.p(' window.open("f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=<REPORT NAME>"'); --opens up the PDF report
      htp.p(' window.location.href= "f?p=&APP_ID.:<page number>:&SESSION."');  --to redirect to new page
      htp.p('</script>');
    END;

  • Calling Javascript function from PL/SQL Process

    I am new to APEX and Javascript so please forgive my question.
    I have a process on page which successfully runs a few procedures etc. but now, as part of this process, I want to call a javascript function I have typed into the HTML Header.
    My question is how can I call the javascript function from my process? Is it possible?
    Many thanks
    Winnie
    ps. as an example my javascript looks like:
    <script language="JavaScript">
    function test(){
    var decision = confirm("Click a button below and watch what pops up next.");
    alert(decision);
    </script>

    See: How to call a javascript function from pl/sql?

  • Confirm Box from PL/SQL process

    Hi all,
    I am using Apex 4.1. I have a page from which on cilck of submit button, a process runs. Now this process checks for certain page item values and based on them, a confirmation box is required. Now based on what the user chooses, either a procedure should be called or no action should be taken. I have written the following code but it does not seem to work.
    declare
    v_count number;
    begin
    v_count:=0;
    FOR i IN 1 .. apex_application.g_f07.COUNT
    LOOP
    if (apex_application.g_f07 (i) is not null) then
    v_count := v_count + 1;
    end if;
    end loop;
    if (v_count > 0)
    then
    htp.p('<script type="text/javascript">');
    htp.p('
    var r=confirm("Data entered for Saturday, do you want to proceed?");
    if (r==true)
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    else
    htp.p('</script>');
    else
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    end if;
    end;
    I dont know much about Javascript, just got this code through google.....
    Any help would be appreciated.
    Thanks in advance.

    rest_in_peace wrote:
    Hi all,
    I am using Apex 4.1. I have a page from which on cilck of submit button, a process runs. Now this process checks for certain page item values and based on them, a confirmation box is required. Now based on what the user chooses, either a procedure should be called or no action should be taken. I have written the following code but it does not seem to work.
    declare
    v_count number;
    begin
    v_count:=0;
    FOR i IN 1 .. apex_application.g_f07.COUNT
    LOOP
    if (apex_application.g_f07 (i) is not null) then
    v_count := v_count + 1;
    end if;
    end loop;
    if (v_count > 0)
    then
    htp.p('<script type="text/javascript">');
    htp.p('
    var r=confirm("Data entered for Saturday, do you want to proceed?");
    if (r==true)
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    else
    htp.p('</script>');
    else
    PR_TIMESHEET(:P11_PROJ_REF,:P11_RELEASE_ID,:P11_EMP,:P11_DATE,:no_of_rows);
    end if;
    end;
    I dont know much about Javascript, just got this code through google.....
    Any help would be appreciated.
    Thanks in advance.Does this help? javascript in pl/sql process block

  • Run report from PL/sql procedure

    Please any one tell how to I run a report from pl/sql procedure.

    I am not sure, but depending on your environment you can create a script to run your PL/SQL code and then generate the report. As is customary in an UNIX environment utilizing shell scripts.

  • Alert/Warning messages from PL/SQL process

    Hi all,
    I have a PL/SQL process that I execute from javascript : doSubmit(MY_PROCESS). I want to output an alert box if some errors occurs in the process, for instance : alert('message'). Does anyone know how to do that ?
    Best regards,
    Othman.

    Thanks Andy for the reply.
    My process executes "after submit", so I cannot call directly the javascript as one mentioned. The call to "html_Get" seems to be quite complicated for a simple alert message which is not really a Application process shared component.
    So I'll go for a solution where users won't see error messages ...
    Best regards,
    Othman.

  • Need to run tdps sync in sql servers

    Hello,
    I need to run tdpssync in sqlservers. Please assist.Like in oracle we have tdposync which synchronizes the tsm backup with backup repository.
    Best regards,
    Vishal

    I  am not aware of such procedure/utility/service, what is it?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Run sp from Oracle SQL Developer

    Hi,
    Anbody can help me to find why I cant' see output after running my simple sp lke below. When I ran create View from sql it's fine, I see <Statetement Output> window displayed, and see new View.
    Not the case when I do sp, I can compile it and get "compiled" status on Messages pane, not sure is't compiled sucessfully or not. But then pressing RUN green arrow, or right click - RUN nothing happenes, no new view, no any output.
    I defenetely has all rights to run sp as per our admin.
    Tx
    Trent
    create or replace
    PROCEDURE usp4 AS
    BEGIN
    execute immediate '
    CREATE OR REPLACE FORCE VIEW "USERMO"."V2c"
    AS
    SELECT "TDATE","AMOUNT","ESS" FROM TT_REG;';

    Tx, sb92075
    I see that you running it all from command line, right ?
    It's still different on my SQL Developer session, I don't have anything on messages pane and again I don't see output i.e. View created.
    Can anybody share opinions how to run this sp from Oracle SQL Developer? I expect to see newly created V2c View in my object list upon execution.
    create or replace
    PROCEDURE usp4 AS
    BEGIN
    execute immediate '
    CREATE OR REPLACE FORCE VIEW "USERMO"."V2c"
    AS
    SELECT "TDATE","AMOUNT","ESS" FROM TT_REG;';
    T
    Edited by: trento on May 4, 2010 1:29 PM

  • Is there any way to run abap program in dialog process with process chain?

    Hi.
    I just want to run custom abap program in every 30min.
    so I made process chain and connect abap program.
    but it returns NOTHING when background running.
    the program has ABSOLUETLY no problem when it's running DIALOG process.
    custom program is modified from sap standard program for my use.
    so complicated and hard to read that I cann't figure out what's problem in backgound job and even hard to debug in background process.
    is there any way to run abap program in dialog process in every 30 min.?
    or call BSP page or call function.
    any solution will be helpful that excuting PROGRAM or FUNCTION or BSP PAGE in schedule job and should running dialog process.
    thanks.
    Lee.

    Hi,
    did you try using sm36 transaction?
    1Give these values in Gereral data
    Create one sample job "SAMPLE JOB"
    Priority "A"
    Execu target - Your application server
    2Click start conditon
    schedule according to ur requirements.
    3.Click Step button
    Give your ABAP program name.
    fill variants if it has any variants.
    if it is useful assign points
    Regard,
    Senthil Kumar.P

Maybe you are looking for

  • Why does iTunes say that I have to delete all my applications?

    I'm trying to create photo albums for my iPhone 4. I'm doing this by connecting my phone to my computer (I use Windows XP), selecting My iPhone, clicking the Photos tab and selecting the folder that I want to sync to my phone. When I do this, I get a

  • When opening a new tab, babylon search opens by default (which I Hate), How can I change it?

    Babylon search and tool bar, got installed in my computer when I installed some other program (Ares). And now there is no way I can get rid of it (of Babylon). Please help. It is annoying.

  • IDOCs Problem

    I am working on a custom program that will generate the list of all the idocs that have got errors in it and then we will fix the error and within the same program it will reprocess the idoc, now when I run this program and when I got the list of all

  • Optimal iTunes network configuration

    Please advise if there is a better place to post this. I am trying to optimize my iTunes set up. We have three computers, all with iTunes, and two iPhones. I sync my iphone with my laptop (lenovo/windows 7) and my wife syncs er iPhone with her laptop

  • How do I install a plug-in?

    I have downloaded and installed a couple of plug-in applications from the Apple Aperture site, but when I open Aperture I get a message that no plug-in's are installed. I believe I followed the download and installation processes correctly, so how do