Show the result of execution of a database procedure

Hi everyone,
I want to execute an oracle database procedure in oracle forms environment and show the result of execution to user(as "procedure executed successfully".. etc) How can I achieve this ?
Thanks..

That would depend on the implementation of your procedure. I would say if there is no exception thrown then the procedure completed successfully. Of course there might be some additional conditions when you consider your procedure run successful.
So in the end you have to design your procedure so the caller can recognize if the procedure run successful or not. How you want to do this is up to you; you can use user defined exceptions (raise_application_error) if an error in your logic occurs which is not a default oracle exceptions, functions which return booleans or output stati.
I for one prefer exceptions, as they force the caller to handle them (I add the user-defined exceptions thrown by each procedure in the specification right to the documentation so the one using my procedure sees it right away) and ensure my procedure is atomic.
But as said this is entirely up to you.
cheers

Similar Messages

  • Execute a VO '4' times and show the result in single table at once.

    Hi,
    I want to execute single a VO query multiple times with different parameters and show the results together in a Table at once
    In Detail
    I have a table to which is associated with a VO.
    The VO contains SQL whose WhereClauseParameters need to be dynamically binded.say headerId and lineId
    Select ... from ....where headerId = :1 AND lineId = :2
    I have to pass these 4 values and show all the results in a single table
    headerId lineid
    H1 ............... L1
    H1 ............... L2
    H2 ............... L1
    H2 ............... L2
    I understand that i need to bind parameters dynamically and exceute the VO.
    As i have 4 different set of parameters, the view object will be executed 4 times.
    I want to show all the results together in a single table.
    How can I do it.
    thanks,
    Gowtam

    Hi Mani,
    Thanks a lot for the patience and detailed solution.I will try it out and tell you the status.
    Meanwhile, I have 2 questions on this solution(just curious)
    I will give you the snapshot of the table
    Table - ModelInfo
    Model......Tube..... Float....Size......Col5.....Col6.......Col7.......
    M1............T1.......... F1. .....1..........C15......C16.....C17.....
    M1............T1...........F1.......2..........C25......C26.....C27.....
    M1............T2......... .F2.......1..........C35......C36.....C37.....
    M1............T2...........F2.......2..........C45......C46.....C47.....
    M2............T1.......... F1. .....1..........
    M2.............T1..........F1.....2.........Cn5.......Cn6........Cn7
    .<continues...>
    .<till>
    .Mn............Tn..........Fn.......n........Cxy.......Cpq.......Crs....
    Question 1:
    if you notice this data,
    The Columns 5 to 7 are dependent on Combination of Model,Tube,Float and Size.
    Hence will this query work properly(without mixing up data from other Pk combination) and will it be efficient?(I Know this is a stupid qst, still double checking..As your solution assumes that each row is unique for Model only..which is not true)
    Select ...From....Where
    Model in(M1,M2,..Mn) AND Tube in(T1,T2..Tn) AND Float in(F1,F2,....Fn) and Size in(1,2...n).
    In short, will C15,C16 and C17 appear only with M1,T1,F1,1..I believe it will.
    Question 2:
    As I told,
    Third party program will return Array of Objects.
    Each object will have a variable called Flow along with
    Model,Tube,Float and Size.
    Flow is not stored in the database(can not be stored due to functional reasons).I want to show this Flow also along with other columns fetched from the DB for all 100+ rows.
    How can I do it?
    I will give u the scenario(with just 2 rows)...please check(Flow is not stored in DB)
    Third Party object : ObjModel
    Model......Tube..... Float....Size......Flow
    M1............T1.......... F1. .....1..........100
    M1............T1...........F2.......2...........200.
    M1............T2.......... F1.......1..........300
    M1............T2...........F2.......2..........400
    My concern is,
    After the VO executes and shows other 6 columns, it should show Flow appropriately.(associated with each object in the array)
    I understand that I need to have a Transient attribute in VO called[b] Flow.But I don't know how to perform the two tasks simultaneously..
    Task1:Your solution on showing table columns
    Task2:Showing Transient data for each object returned from program.
    thanks,
    Gowtam

  • Showing the results window after termination

    Hi all,
    When I terminate my batch sequence execution in TS 4.0 using "RunState.Engine.TerminateAll()", it shows grayed-out windows and won't show the results window, even though it saves the results into an XML file on disk.
    Is there a way I can show the results window to the operator after the sequence is terminated?
    Many thanks,
    Chris
    Solved!
    Go to Solution.

    If you look in your model you will find a step called Read Entire Report.  This is just making an activex call to Report.Load.  This is what displays the report at the end of an execution.  If this does not get called no report will get loaded.  Since you are terminating then no report is getting loaded.  In fact if you don't have on the fly reporting on then the html files that make up each thread of a multithreaded batch run won't contain any data which will result in no report. 
    If you use the ProcessCleanup callback you should be able to load the report in there. 
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Why this query does not show the result?

    Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
    SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
    select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
    no rows selected
    SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
    DATA_OBJECT_ID     OWNER                          OBJECT_TYPE
    69662              HR                                 TABLE
                       OE                                 SYNONYM
    SQL> SELECT USER FROM DUAL;
    USER
    SYS

    Hi,
    the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
    Herald ten Dam
    Superconsult.nl

  • How can show the result of a measuring that is done in a sub-program in my main panel?

    How can show the result of a measuring that is done in a sub-program in my main panel?

    In your subvi, wire the result(s) you want to ouput to the main program to an output terminal on the connector pane.
    For a tutorial on subvi's, search the help for "connector panes" anc click on tutorial.
    ~Tim

  • How To Make Search Query Showing the Result As List of Buttons.

    Can some one give me an idea how to start to make a Search Query showing the results as list of buttons.. i have already have my buttons with names. i just dont know how to make a search query.
    this is my on screen keyboard i made..
    im making a system that the result were a list of buttons.. showing like this
    This was supposed to be the output of the query that i need to do..
    Please help me.. i just need a idea or tips how to make this one.

    Here is code I posted recently for another question
    Public Class Form1
    Const BUTTON_SIZE As Integer = 20
    Const SPACE As Integer = 5
    Sub New()
    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    ' Add any initialization after the InitializeComponent() call.
    Dim buttons As New List(Of List(Of MyRadioButton))
    For row = 1 To 6
    Dim newRow As New List(Of MyRadioButton)
    buttons.Add(newRow)
    For col = 1 To 6
    Dim button As New MyRadioButton()
    button.row = row
    button.col = col
    button.Height = BUTTON_SIZE
    button.Width = BUTTON_SIZE
    button.Left = col * (BUTTON_SIZE + SPACE)
    button.Top = row * (BUTTON_SIZE + SPACE)
    button.Name = String.Format("radGr1{0}_{1}", row.ToString(), col.ToString())
    Me.Controls.Add(button)
    newRow.Add(button)
    AddHandler button.CheckedChanged, AddressOf Radio_Change
    Next col
    Next row
    End Sub
    Private Sub Radio_Change(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim button As MyRadioButton = CType(sender, MyRadioButton)
    Dim row As Integer = button.row
    Dim col As Integer = button.col
    End Sub
    End Class
    Public Class MyRadioButton
    Inherits RadioButton
    Public row As Integer
    Public col As Integer
    End Class
    jdweng

  • When we type a search item in firefox on my laptop then it shows the result then on second or third or more new search that is typing a new search it sticks to the first searched item

    when we type a search item in firefox on my laptop then it shows the result then on second or third or more new search that is typing a new search it sticks to the first searched one

    Tried that. Also tried SUPERAntiSpyware, ccleaner, HitmanPro. Removed anything that was reported. Problem persists.
    Chrome is also affected. But couldn't find any alternative way of not having Ask.com loaded as did in Firefox.
    Internet Explorer was initially affected. After the Ask.com search engine is removed that problem appears to have gone away.
    12/9/2014
    Interestingly, yesterday afternoon the Chrome browner new tab no longer hijacked by Ask.com. The symptom was there in the morning and had gone away in the late afternoon. Nothing was done except a few days ago I blocked everything on that page. The problem with Firefox continue to persist I didn't do the same blocking on it. I am going to try the same and then use anti-spyware to clear away all cookies and see what happens.

  • How to use TextField to add two numbers and show the result.

    hi everybody
    i would like to use JTextField to get addtion of two Numbers,
    for example i am trying to type any integer numbers in JTextField like 7
    and press JButton, called( +) to add anthor number like 7 and press JButton called(=) to get addtion fo
    7 + 7 = 14, at same JTextField.
    so there will be two buttons, one for (+),other for (=).
    i have implement ActionListener in (+) button ,to get Text from JTextField (with getText() method),
    now how do i use same getText() method to get the next number that i will add it with previous number in
    (+) button and get the result whenever i press (=).
    1-type integer number like (4) in TextField.
    2-press addition button(+) to get text by using getText() method and clear TextField.
    3-type anthor integer number like(6).
    4-press (=) button to get the number (6) by using getText() method, calculate 4 + 6 and show the result at same TextField (10).
    i hope it is so clear
    thank u in advance for any advice and suggestion.

    Use your first button to
    String x = JTField.getText();
    int y = Integer.parseInt(x);
    this will get your first value on your + button. Make sure you initialise the int beforehand incase nothing is put in (ie error prevention) then clear the JTField prob using setText(""). Repeat the process for the = button using different variables and add them normally and output the result.
    If your putting more than 1 arithmetic button on the GUI then you'll need to distinguish between them!!!

  • Query a database a show the results into a form

    Hello!
    I have a general question.
    I have created a form and when the user submit it , it calls a servlet that store the information into a database.
    Now I want to make a new page where you can look for the information that the user stored in to the database (according to an ID ) and that information must be showed to the user again into a form (same form but with two or more empty fields that he can update now).
    What is the best way do that?
    Should I include in the query.jsp a bean and program all in the bean and then come back with the results to the query page?
    Im quite new to jsp, java...so , please I need your opinion about the best way to program that...
    thanks in advance

    As promised, here's a way to execute a SQL command and see the results in a JSP. It'll work with all four CRUD operations, as long as you pass valid SQL:
    <%@ page errorPage="error.jsp" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <form name="sqlQueryTester" method="post" action="sqlQueryTester.jsp">
        <center>
            <h3>SQL Query Tester</h3>
            <table>
                <tr>
                    <th>SQL Query:</th>
                    <td>
                        <textarea name="sqlQuery" rows="10" cols="80"></textarea>
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>
                        <input type="submit" name="submit" value="Submit"/>
                    </td>
                    <td>
                        <input type="reset"/>
                    </td>
                </tr>
            </table>
            <c:if test="${not empty param.sqlQuery}">
                <sql:query var="queryResult" sql="${param.sqlQuery}"/>
                <hr />
                <h3>Query Results</h3>
                <c:forEach items="${queryResult.rowsByIndex}" var="row" varStatus="status">
                    <c:if test="${status.first}">
                       <table border="1" align="center" width="100%">
                           <tr bgcolor="#ffad00">
                               <c:forEach items="${queryResult.columnNames}" var="col">
                                   <th><c:out value="${col}"/></th>
                               </c:forEach>
                           </tr>
                    </c:if>
                    <tr>
                        <c:forEach items="${row}" var="value">
                            <td><c:out value="${value}"/></td>
                        </c:forEach>
                    </tr>               
                    <c:if test="${status.last}">
                        </table>
                    </c:if>
                </c:forEach>
            </c:if>
        </center>
    </form>I'll leave the web.xml and error.jsp as an exercise for you.
    This will run on Tomcat 4.1.x and JSTL version 1.0.
    %

  • How can I fix the crop? When I crop my photos and click okay, the layer no longer shows the resulting photo -- just a dark gray background.

    Can anyone help me to resolve my cropping issue? I have either hit a key I wasn't supposed to hit accidentally, or the software needs to be fixed or reset.  And if I reset or reinstall the software (Photoshop Elements 10 + Organizer), will all my categorized photos in the Organizer be lost with the new installation?
    I have three screen shots to help show my problem.
    The first one is the page before I make any cropping edits:
    This next one shows the beginning of making the crop, before clicking the green check mark to accept the crop. Notice the photos are still intact and visible in the layers:
    And when I accept the crop (by clicking the green checkmark), below is the view of my resulting new layers (the photo is no longer there):
    As you know, what I should see is the resulting, cropped photo in both layers -- not a grayed-out set of boxes.
    How can I fix this to get the crop feature to work again?
    Thanks in advance for your help!
    Gordi

    Click this little triangle and choose Reset Tool from the popout menu:

  • How to show the result of query in oracle forms 10g to Excel Sheet File

    Dear All,
    I have query and i want the result to be show in excel sheet file in oracle forms
    for example if i have a form with search criteria and when pressed the button of ( export to excel ) the result is
    excel file contains the result of the query .

    The only method to achieve this is with the help of Webutil. Please go through documentation for more help.
    Regards,
    Manoj Chakravarthy

  • Business rule not showing the result

    When i am executing a business rule, it runs successfully but it does not show any result. But when i enter any amount in that specific cell where the BR should calculate the amount and then run the BR then it shows me the required result. What can be the reason for that?
    We are on 11.1.2
    and im making BRs through Calc Manager (Wizard Based)
    Edited by: ar_aff on Mar 24, 2011 9:56 PM

    I think that's about Block problem (value of a cell). The BR can't open block automatically. In BR sorce usually used a command Set Createnonmissngblk on before calculating value;

  • My "What's New" procedure doesn't show the result Search result page

    Hi,
    I needed a "What's New" report for a content area. The advanced search screen has the option to query with the create date, but you can save the search with something like #sysdate-7. So I created the following procedure:
    create or replace procedure whatsnew
    (p_caid in number default 0
    ,p_folder_id in number default 1
    ,p_days in number default 7
    ) is
    a_attribute_id portal30.wwsbr_type.array;
    a_attribute_name portal30.wwsbr_type.array;
    a_attribute_caid portal30.wwsbr_type.array;
    a_attribute_data_type portal30.wwsbr_type.array;
    a_attribute_operator portal30.wwsbr_type.array;
    a_attribute_value portal30.wwsbr_type.array;
    begin
    a_attribute_id(1) := '10';
    a_attribute_name(1) := 'createdate';
    a_attribute_caid(1) := '0';
    a_attribute_data_type(1) := 'date';
    a_attribute_operator(1) := portal30.wwsbr_search_api.greater_than;
    a_attribute_value(1) := to_char(sysdate-p_days);
    portal30.wwsbr_search_api.submit_search
    (p_search_terms => null
    ,p_caid => p_caid
    ,p_current_caid => p_caid
    ,p_folder_id => p_folder_id
    ,p_folder_caid => p_caid
    ,p_include_child_folders => portal30.wwsbr_search_api.yes
    ,p_attribute_id => a_attribute_id
    ,p_attribute_name => a_attribute_name
    ,p_attribute_caid => a_attribute_caid
    ,p_attribute_data_type => a_attribute_data_type
    ,p_attribute_operator => a_attribute_operator
    ,p_attribute_value => a_attribute_value
    end;
    Now you can call this from a dynamic page component (have it displayed as portlet), or include it as an URL item in the content area (/pls/portal30/portal30.whatsnew?p_caid=33&p_folder_id=1&p_days=7).
    This work fine and show the search result. Now I've customized the Search Result Page, but it seems that wwsbr_search_api is navigating to a standard (fixed layout) search result screen (square item/folder links in stead of tabs) and not to my customized Search Result Page. If I click the submit button in the result screen then it navigates to my customized Search Result Page.
    So why doesn't wwsbr_search_api navigate to the customized Search Result Page, or am I doing something wrong ?
    Regards,
    Willem-Pieter van der Lugt
    Oracle Consulting NL

    Hi,
    I just saw topic http://technet.oracle.com:89/ubb/Forum82/HTML/000617.html with the answer pointing to bug 1869531.
    regards,
    Willem-Pieter van der Lugt

  • How to communicate between Flex and JSP and show the result in an Iframe

    Hi all
    I am trying to send some data from flex to one HTTPService and trying to show the same response jsp in an Iframe. But unfortunately i am unable to get the responce Jsp's url to set as a source for iframe.
    let me explain you clearly...I have a mxml where i am having a text box and a button in the left panel and in the right panel i am having an Iframe to display jsp. So once user enters some value in the text box and clicks button then HTTPservice's send method will be called with text box's content as an arguement. So i can fetch that value from request object in jsp and display the value in jsp. So the problem here is i want display that result jsp in my Iframe. I know that , we need that result jsp URL to display in Iframe . But as i am sending POST request to HTTPservice, i am not able to get the result jsp's URL in flex side.
    So i need help desperately from great minds.So anyone of you can give me some suggestions!!!!
    Regards

    Hi all can some one please give a solution ...Any suggestions would be greatly appreciated

  • Spotlight shows the result of old files doesn't shows words definition

    Hi all,
    I am sick of my spotlight searchings, firstly it doesn't shows the latest file result as if i create a new document file it doesn't shows its existence and the matter inside that file plus one more than previously i used my spotlight for words definition which came from dictionary now it also doesn't shows that thing as well, from different forums i have search that for re indexing put the hd drive into spotlight preference privacy and than delete that, what i did i drag the hd drive into privacy setting quit spotlight preference and system preference and than open again spotlight preference and in the privacy tab it's nothing there the drive which i just added a few minutes back it was not there so how would i delete it again for re-indexing. i am running mac os x 10.6.6. Pleas help Me thanks =)

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

Maybe you are looking for

  • How to display an email client with email address

    I would like to personalize OA page at the footer to create an item with the link on clicking this it should open email client with the email address in the link. Thanks, Arun

  • Wls accepts no localhost connections in strange way

    hi *, i have a strange behaviour with one of my wls servers: its a cluster of 6 machines 1 machine admin + worker 5 worker the strange behaviour is that i cannot access the application via localhost on the server where the admin is located. on the ot

  • How do you export a still image from a sequence ?

    I could easily export a frame as still image in CS3 (File / export / ...) But how do you do this in CS4 ??... Adobe found another way of making something simple so difficult !...  I try to export media, then select a still image format, make sure ''e

  • Trouble with Flash and SpeakPipe in Safari (Mac)

    I can't get Flash Player to let me "Allow" recording via SpeakPipe in Safari. I have the current version of Yosemite installed on my Mac, I have the most recent version of Flash Player installed, and I can record using SpeakPipe in Chrome, but in Saf

  • MRP Run for MTS & MTO..........................

    Dear Friends, Please explain me the following question. If a customer needs some 100 pieces of product, but we dont have the inventory to produce that. So we need to run the MRP. Here what is the output of the MRP in MTS and MTO. Thanks very much.