How to make artificial delay in pl/sql  on forms

hi gurus,
I am using
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - ProductionActually I am making Bulk SMS sending program using java classes. code works in java plateform very nicely..
same class I am calling on oracle forms , but code executes even less then a second . but I wanna stop the execution of pl/sql stored procedure for 3 seconds untill java class sends sms to the recipeint's number.. and then iterate towards the next one.
for example
  for i in 1..100 loop
      stored_procedure_having_javaclass(org1 ,arg2);
      deley_of_secends(3);
   end loop;for this i have tried..
        dbms_look.sleep(3);while using this on database level in anonymous block it's working very fine , I think to make a stored procedure and then call it on oracle forms , but when use this same in stored procedure it gives me error that this fucntion must be declared , also I can't use any of this kind function in oracle forms.
what should I do ?
thanks
regards:
usman noshahi

Other alternative...
As you use java stored procedure... put the
Thread.sleep(m_sec);inside your java procedure...
or.. (some example)...
DROP JAVA SOURCE INIS_PROD."Sleep";
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "Sleep"
as import java.io.*;
public class Sleep extends Object
   public static void sleep()
      try
         Thread.sleep(3000);  //<----------- you can also put input param if you want..
      catch(Exception ex)
}plsql wrapp
create or replace procedure p_sleep
as language java name 
'Sleep.sleep() ';and test..
begin
   p_sleep;
   dbms_output.put_line('ooo');
end;

Similar Messages

  • How to make a particular field editable in a Form/Empty View

    Hi All,
    I want make a particular field editable in a Form View. Means i have 5 fields in the Form View and out of 5 fields i want to make one field editable or input field. Can you plz tell me how to do that?
    thanks & regards
    Madhusudan

    Hi,
    You can achieve the same by two methords.
    1) Goto configuration of the view in which you want to make fields editable/ non editable. Click on your field. Click on field properties. On the menu you can click on Display only. It will make your field non editable. If you remove the check, it will be editable.
    2) Goto Get_I_fieldname methord of your field. There write code rv_disable= 'FALSE'. Field will become editable. rv_disable= 'TRUE' will make field non editable.
    Best regards
    Pankaj Kumar

  • How to make an XML file from SQL query on local disc (c:\temp)?

    This query shows me XML results, but can I somehow make an XML file to local disc?
    Thanks.
    DECLARE @IMO NUMERIC(8,0)
    DECLARE @Counter INT
    SELECT @Counter = 1
    WHILE ( @Counter <15 )
    BEGIN
    SET @IMO = (SELECT ImoNo from Vessel where ID=@Counter)
    SELECT top 1
    @IMO as ImoNumber,
    VesselName,
    Time,
    lat as CurrentLatitude,
    lon as CurrentLongitude,
    sog as SpeedOverGround,
    cog as CourseOverGround,
    hdg as HeadingInDegrees,
    GoingToCountry = (SELECT TOP 1 CountryName
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'false'
    ORDER BY DestPosETA ),
    GoingToHarbour = (SELECT TOP 1 Harbour
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'false'
    ORDER BY DestPosETA ),
    DestinationLatitude = (SELECT TOP 1 DestPosLAT
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'false'
    ORDER BY DestPosETA ) ,
    DestinationLongitude = (SELECT TOP 1 DestPosLON
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'false'
    ORDER BY DestPosETA ),
    ArrivalTime = (SELECT TOP 1 DestPosETA
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'false'
    ORDER BY DestPosETA ),
    GoingFromCountry = (SELECT TOP 1 CountryName
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'true'
    ORDER BY DestPosETA desc),
    GoingFromHarbour = (SELECT TOP 1 Harbour
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'true'
    ORDER BY DestPosETA desc),
    DepartureTime = (SELECT TOP 1 DestPosETD
    FROM ShipSchedule
    WHERE ImoNo = @IMO and DestPosArrived = 'true'
    ORDER BY DestPosETA desc)
    FROM Position
    WHERE ImoNo = @IMO
    order by time desc
    for Xml AUTO,elements,root('SplosnaPlovba')
    SELECT @Counter = @Counter + 1
    END

    You can use bcp with query out option
    use your above query as the source query and use queryout option after specifying destination as your required local file path (specify extension as .xml)
    see
    http://visakhm.blogspot.com/2013/10/bcp-out-custom-format-data-to-flat-file.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to make OS calls from PL/SQL?

    Hi
    I am using Oracle 7.3.4. on Solaris platform. I want to call a unix shell script from a Database Procedure. ( Calling an OS command from PL/SQL code) ( Like the HOST() function available in the Client Side Forms Tool). Anybody can help me?

    Why?
    If you want to do this sort of thing, you would have to write a Java stored procedure that called out to the operating system. This has a number of security implications-- the OS calls will run as the Oracle OS user, so you could do fun things like deleting or corrupting data files. Frequently, there are more secure/ less complex approaches.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to make few DFF fields read only in Forms

    Hello.....
    I am having an Issue in forms customization through custom.pll
    I need to make few DFF fields read only in HRMS enter and maintain form through custom.pll
    I tried with fnd_descr_flex.update_definition but in vain
    So please help me how to rectify this issue.
    Edited by: user.nazeer25 on Jul 9, 2010 5:27 AM

    Hello,
    Wrong forum.
    Ask this kind of question in the E-Business Suite forum ;-)
    Francois

  • How to make the password stay in the process form

    Hi,
    I am working in OIM 10g. When ever we are changing any fields in process form the password field is getting blank.How do we make the password stay in the field after updating other fields in process form
    Thanks in advance

    When you open the default New Tab page - about:newtab - which has the Tiles and a Search Bar, the "focus" is in the Search Bar. You could change a hidden setting to have a blank page when you open a new tab if that's what you want - that will have the "focus" in the Location Bar . URL Bar.
    Type '''about:config''' in the URL bar and hit Enter.
    ''Accept the warning''
    Search field at the top to filter with this - '''browser.newtab.url'''
    Right-click the preference that appears below, and select '''Modify'''.
    Insert '''about:blank''' for the new string value.

  • How to make a 2-column output in sapscript form

    Hello Abap Professionals!
    I have a sample standard text that has this content and layout:
    Part I : This is an example only.This is an example only.This is an example only.
    This is an example only.This is an example only.This is an example only.This is
    an example only.This is an example only.This is an example only.This is an example
    only.This is an example only.This is an example only.This is an example only.
    Part II : This is an example only.This is an example only.This is an example only.
    This is an example only.This is an example only.This is an example only.This is
    an example only.This is an example only.This is an example only.This is an example
    only.This is an example only.This is an example only.This is an example only.
    The problem is....
    HOW can I make it look like this in the MAIN Window of my Sapscript in Form (SE71)
    see the picture below:
    Link: [http://img122.imageshack.us/img122/9416/69640352uy2.jpg]
    -Don't mind the font.. just the format. I want it to be in 2-column and I have to include the standard text in the Main Window of the Form.
    Any help is highly appreciated,
    THANKS in ADVANCE.

    Take two page windows of type MAIN in your page, arrange the page windows as two pages, call the text element from your driver program and write this way in you SAP script...
    /E   <text element>
    /     Part I : This is an example only.This is an example only.This is an        example only. This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.
    /:    NEW-WINDOW
    /    Part II : This is an example only.This is an example only.This is an example only. This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.This is an example only.
    P.S.: let the size of the main window be a bit bigger than it can accomodate the text. The command NEW-WINDOW lets the latter text to be written in the next MAIN window if no variable window is specified.
    <REMOVED BY MODERATOR>
    I.
    Edited by: Alvaro Tejada Galindo on Jun 25, 2008 3:37 PM

  • How to make user view available in an workitem form

    Hi,
    How to get hold of the user view in an workitem form ?
    I want to display some of the user information in the workitem form for which I require the user view.
    Thanks.
    - mangb

    If you have a userview in the workflow, you should be able to access it in the manual action (Workitem form).
    Just make sure the form base-context is taken into consideration while referencing the workflow variables (userview in your case).
    Adi.

  • How to make changes to .fmx file using the form builder

    Hi all
    I have a .fmx form in the AR_TOP directory of the Oracle E-business suite.Now I need to make some changes to the form and compile it and place it back .But the .fmx file didnot open using the form builder 6i .So is there any way that i can convert the .fmx to .fmb so that I can open the form using the Form builder 6i??
    I have the toad s/w installed but I dont know how to open the form using the Toad.
    Thanks

    I have a .fmx formYou cannot open a fmx-file with any developer tool. To make changes to the source-code you need the fmb-file and open it witj Forms-builder
    AR_TOP -directory of the Oracle E-business suiteBe careful when changing source-code in the ebusiness-suite. If its a module from oracle i don't if its supported if you do changes in it.
    I have the toad s/w installed but I dont know how to open the form using the Toad.Toad is definitely the wrong tool for forms-modules.

  • Based on DDL value ,How to make few other fields visible in Adobe forms in SAP CRM??

    Hi All,
            I need to make few fields visible in adobe forms, based on the dropdown value which user selects.....

    Hi Vignesh,
         In the "EXIT" or "CLICK"event of the particular Drop down field you can write the below code(in Java script).
    if (this.rawvalue == <value> )
          <field name>.presence = "invisible";
    else
        <field name>.presence = "visible";
    Thanks,
    Ashok N.

  • How to make few records editable in oracle ADF form.

    Hi,
    I am working on one scenario. here, we are sending few records to user in an ADF task form, using BPEL Human task. Now, the requirement is to put a checkbox in each row and enable that particular row-fields for editing purpose.
    please respond if there is a way to put any condition in check box design to enable row-data for editing.
    thanks,
    rps

    Hi,
    actually to implement check boxes in front of a table you need some sort of transient field that can keep persistence. One way of achieving this is to wrap the BPEL service in a WS proxy client and create a POJO DC from it. This then allows you to add an additional field to implement a solution similar to this in ADF BC
    http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
    Because ADF Faces tables are stamped upon rendering, rows arent created with instances of the cell renderer. For this reason you need to keep track of the select state in the model, which you can do using a transient attribute, which then makes sure the select information is part of the row object. So similar as today, you would parse the available rows but - before changing the update state - check if the user intended the update
    Frank

  • How to make javascript submit a button instead a form

    Hi ,
    I plan to do a popup box using javascript
    when user click on Yes , it will actually submit a button which actually submit a form because i want the action behind / binding to that button to be invoked.
    if i submit a form only.. i think the method that bind to particular button wont be invoked.
    How do i do that?
    Thanks

    Something like this should do you…
    #target illustrator
    var doc = app.activeDocument;
    var sel = doc.selection;
    for ( var i = sel.length-1; i >= 0; i-- ) {
        if ( sel[i].typename == 'GroupItem' ) { sel[i].selected = false }

  • How to make relation between responsiblity and full menu/form?

    Hi,
    My manager need to know which oracle responsibility link to which menu and detail form detail information in our current setup?
    We are using EBS 11i.
    How can I get it?
    Thanks

    My manager need to know which oracle responsibility link to which menu and detail form detail information in our current setup?Please see these docs.
    Checking Functions Associated with a User Menu or a Responsibility [ID 948512.1]
    HOW TO GENERATE MENU TREE FOR A MENU ATTACHED TO A RESPONSIBILITY IN ORACLE APPLICATIONS 11i ? [ID 312014.1]
    Thanks,
    Hussein

  • Submit form button - how to make it work in order to send form ?

    I have contact form in my flash file, what do I have to do in so the people who fill the form to actually send the message to my email ? Right now I have this button but it does nothing.
    xml file button:
    <u>submit</u></font>
    thank you.
    alfateam

    thank you,
    As a newbie I lost alot of time google-ing ..only to find out after 2 hours that my templates has 3 files with it.. contact.php, form config, anf form structure. Only 2 fileds to edit and the job was done
    Now I'am fighthing to create autoresponed with file attached. Cpanel doesn't allowed by default so I need ascii mail , half hour already since I try.

  • How do I make a submit button that sends the form to an email address?

    I can see how to link to an email which then opens up an email someone could attach the form to. But I do not see how to make a button that automatically sends the form to an email address. Can someone provide assistance? Thanks!

    I have the same question. You'd thing this would be a no brainer requirement for a form.

Maybe you are looking for

  • WHY CAN I NOT GET DSL OR UVERSE SERVICE AT MY HOME.

    I would like to know why i cannot get either internet service at my home.  its a new home i understand.  but you have a UVERSE fiber cable running under my front yard.  you have DSL wiring under my front yard.  i have  a box in my front yard.  and ye

  • How do I get black side bars on a full screen photo in iPhoto 11

    How do I get black side bars on a full screen photo in iPhoto 11. It was black in iPhoto 09 and now it's a murky grey. I'm not talking about events or photo view where it's in preferences only full screen photo. Thanks

  • Problem viewing videos with 5th Gen 30 GB Video

    My iPod video is older, got it back in 2005. It used to play videos just fine, but now when I try to play something, it jams up. Just a black screen with a play indicator and a battery indicator, but no movie. You can't menu back and have to soft res

  • Convert  XML page into Internal Table

    Hi, I'm not sure if this post belongs here or not, but here goes. I have a requirement to read in data from a xml page and save the contents into a ABAP internal table. At the moment, I have extracted the contents of the XML page into a string using

  • "Resend" option is not working for specific user. "The Operation Failed" Exchange 2010 Outlook 2013

    Hi Everybody. I have a weird one for you. I have a user that gets an "operation failed" message whenever trying to use the "resend" option on any email (It's the one right under recall). I had tested up and down on her machine. Exchange 2010 Outlook