Passing message from plsql code to page

Hello Everybody,
I am trying to pass a 'success message' from plsql code which runs on page processing to the page. This plsql is a insert statement and if statement runs successfully (on submit) then I want to show a success message on the page after summit.
Your comment and help would be appreciated.
Thanks,
Raj.

Thank you Tony.
Stored Procedure which I am calling on the page is running in database. So if this procedure runs successfully(or vice versa), how I would know?? Is there a way to pass value from database stored procedure to it's calling page?
Following is procedure:
procedure load_stateday_result(key_loc ATM_STATE_DAY_INSP.KEY_LOCATION%type) is
temp_key_insp ATM_INSPECTION.KEY_ATM_INSPECTION%type;
temp_key_location number(8);
temp_dte_schedule date;
begin
temp_key_location := key_loc;
select key_atm_inspection,dte_schedule into temp_key_insp, temp_dte_schedule
from atm_inspection where
key_location = temp_key_location and exam_type = 'D' and exam_yr = to_char(sysdate,'yyyy');
insert into atm_state_day_insp(key_atm_state_day_insp,key_location,key_atm_insp,scheduled_dte)
values(state_day_insp_seq.nextval,key_loc,temp_key_insp,temp_dte_schedule);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Error :'|| SQLCODE||':'||SQLERRM);
--ROLLBACK;
RAISE;
end load_stateday_result;
Will appreciate your reply.
Thanks,
Raj, NY

Similar Messages

  • Display a value from PLSQL code to screen

    How to display a value from PLSQL code to screen without loading or refreshing the page?
    im using ajax to call the javascript to run the PLSQL code. i desire to view some value in the screen when i run the PLSQL code
    skud.

    anything that you print from the PLSQL code(using htp.p, htp.prn etc) with will available in Javascript as the server response. You can parse that string it in javascript and display it on screen or modify page items or create dynamic items/elements using those values.
    A minimal example
    Ondemand PLSQL process : TEST_PROCESS
    begin
      htp.prn('hello world');
    end;Javascript Code
    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=TEST_PROCESS',0);
    ajaxResult = ajaxRequest.get();
    alert(ajaxResult);Will display an alert message "hello world"
    You can construct the string in JSON/XML format in PLSQL to pass complex data structures(or multiple values) or even HTML code, then do the required processing in Javascript, for example extract out item values from it and set items, convert the JSON array to a select list item in the page or put the HTML code with a div element in the page.

  • Passing messages from BW customer-exit variables to WebI

    Hi
    Is it possible to pass messages from a BW customer-exit variable to WebI?
    We have a scenario where we have some validation done on a customer-exit variable, and under certain conditions a message should be returned to the user running the WebI report. Ideally, then report should stop executing at this time.
    The ABAP is in place, and I can return an error message. If the query is run in RSRT / Web Template, the error message is correctly displayed and processing stops.
    However, in WebI, if the error condition is met, a rather messy looking generic error message is displayed. In this case, the error number I've used in the ABAP is 000, which WebI then interprets as somthing to do with query dimensions could not be retrieved, or a null pointer exception.
    I am not interested in the WebI error message that is being generated ... I know why it is being generated.
    All I'd like to know is whether it is possible to pass an error message from within the customer exit code back to WebI.
    Any ideas?
    Regards,
    Andrew

    Hi,
    I think that the problem is the User Exit is called anew for every query, so the global tables you declared will be empty for the query2.
    One way to do this is create a table using the SE11 and populate it with the Variable from Query1, and use this data to populate the Variable2 of Query2.
    Hope it helps.

  • Passing parameter from workitem to bsp page

    Hi,
    is it possible to pass parameter from workitem to bsp page and also vice versa?

    SAP_WAPI_READ_CONTAINER function works well.but i need to pass a parameter to workitem container.
    what i am trying to do is;
    1-get data by using sap_wapi_read_container
    2-change data
    3-send changed data back to workitem
    my problem is in third step.I am using SAP_WAPI_WRITE_CONTAINER. but it doesnt work.After execution the FM return_code set to 1.
    Do u know how to set a variable in workitem?

  • Passing data from one UIX XML page to another UIX XML page

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.
    (b) If bc4j is used.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?
    Thanks,
    Paul.

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.For forwarded URLs; HttpServletRequest attributes [request], HttpSession attributes [session], ServletContext attributes [application].
    For redirected URLs; HttpServletRequest parameters url, HttpSession attributes [session], ServletContext attributes [application].
    (b) If bc4j is used.For forwarded URLs; BC4J Session properties.
    For redirected URLs; BC4J Session properties IF release mode is NOT stateless.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?Return a UIEventResult (extends EventResult) from your event handler that has a data provider attached.
    This data provider will be accessible in the next page with the name "ctrl:eventResult", where "ctrl" is the short prefix for the namespace "http://xmlns.oracle.com/uix/controller".
    Regards,
    John Fallows
    Oracle Corporation.

  • Best practice from passing messages from servlets

    Is there a best practice for passing user messages (typically errors) back to the page from servlets?
    e.g. http://localhost:4502/content/geometrixx/en.html?message=Some user error message
    Dan

    Well I suppose that answer to that question depends somewhat on your requirements, but I would say using a query string as you have indicated would be less than ideal because the page with the message would not be cached. No depending on your requirements and what sort of message you are passing that might be OK - especially if you message is highly personalized.
    If however you have a limited number of standard messages to display a more common approach is to have each message have it's own page and then to configure the servlet to redirect to the appropriate page based on the desired message.
    If you want the user to end up on the same page they submitted to the servlet from then another common approach would be to have the post to the servlet be AJAX and then display the message client side without having to change the URL.

  • HT201270 I keep receiving an error 1051 when trying to receive a message from short code 71441. I get message error

    Hi,
    I keep getting an error msg 1051 when texting to short code 71441. I checked with Sprint & there is no block on any of my messaging and all my settings are correct on my phone, everything is updated. I receive all other text messages regular & short code. This particular number just stopped working without cause. Do you know why?

    I have this problem also.  I have an iPhone 5c; well both my wife and I have iPhones 5c and we are having the same problem.  She doesn't use her phone to send text messages to online accounts just to her friends so she doesn't encounter the problem that I am but I checked her phone and she has the same problem on her phone.  I can receive text message from some online account; most specifically from my Gmail account but I cannot receive text messages from either my AOL or Paypal accounts.  I've took my iPhone to the Sprint store where I purchased it without any results.  I called both Sprint and Apple still without any resolution.  I called both Paypal and AOL and they could not offer any good advice or fix the problem.  Everyone seem to be referring to someone else like the carrier or the manufacturer. 
    I went online to check my settings on my online MySprint account and saw no problem there.  If I cannot get any help from this online community my next step will be to take it to an Apple Store and then contact the manufacturer and try to have them exchange it for a new iPhone.  So far this seem to be point to a manufacturer defect. 
    My iPhone specs are:
              iPhone 5c
              ios 8.0.2
              carrier:     Sprint 17.1
              Model:     ME567LL/A
              Serial Number:     FCDN60C4FFHM

  • BSP passing value from Form of a page to another page

    Hi experts
    I need you helps for some issue!
    I've create a bsp page with a form with an inputField and now I need to retrieve the value inserted by the user and pass it to another page.
    Can you explain me how I've to do?
    Second question is if is possible to use the inputfiled in a pop-up page and then pass the value to the first page.
    I've noticed than the first page is not refreshed when I try to pass the value of the other page.
    Tahnk's!
    alessandro

    Hi Alessandro,
    There are two approaches for doing this.
    1st approach has been mentioned below.
    2nd approach is: I am assuming you are working on Web-IC if its right then this approach is valid:
    you are using some attributes from a structure to show the input fields on the screen so what you can do is, in the IP_INBOUNDPLUG method of the new page you can create insatance of the previous page structure and then you can set these values to the new structure of the new page by saying set_attributes.
    Hope so it will help you:)
    Regards
    Sandeep

  • How can I pass parameters from report to HTML page

    Hi,
    Does any one know how to pass value from Portal Report to other HTML page (asp for excample).
    I build a Protal report, and I want jamp to "http://...viewDoc.asp?DocID=DocumentID" URL, by clicking on link, where "DocumentID" is parameter that to be pass from report.

    One way is to create a link based on that form and attach that
    link with the report. Through links you can pass parameters

  • How to pass parameters from GP to Portal-page or iView

    Hello all,
    I tried various things but I'm not succesfull in creating an callable object of type 'Portal-page or iView' which receives certain parameters.
    Currently we open the portal page from within a WebDynpro.  I pass a string "zaanum=909&zasnum=1" to the Portal-page. The parameters are received in the webDynpro-app.
    Now I want to do this from within GP. I thought to create a CO of type 'portal-page or iview' and the parameters are given to that CO.
    I expect the parameters to be received by the WebDynpro in the iView.
    I tried:
    - defining one parameter for CO of type string. At initiation time I fill this with "zaanum=909&zasnum=1" ==> Nothing received in iView/WebDynpro
    - defining two parameters (technical names 'zaanum' and 'zasnum')  for CO of type string. At initiation time I fill them with 909 and 1 ==> Nothing received
    - defining two parameters (technical names 'zaanum' and 'zasnum') for CO of type integer.  At initiation time I fill them with 909 and 1 ==> Nothing received
    - defining two parameters (parameter names 'zaanum' and 'zasnum')  for CO of type string. At initiation time I fill them with 909 and 1 ==> Nothing received
    Any help is appreciated!
    Maarten Rutten
    Edited by: Maarten Rutten on Jan 9, 2008 8:36 PM
    Edited by: Maarten Rutten on Jan 9, 2008 8:37 PM

    Hi Ramien,
    I have a similar problem. I need to pass values from webdynpro to jsp and vice versa. Kindly let me know how you solved this problem.
    Thanks & regards,
    Amrita

  • A strange error message on a code-modified page

    I am trying to implement this plugin on a simple Muse page:
    http://www.catchmyfame.com/catchmyfame-jquery-plugins/jquery-beforeafter-plugin/
    Simple addition of working code to the Muse page produced a strange error. "beforeAfter is not a function"
    By trial and error, a fix was removing one Muse function! The page then seemed to work without problem from my hard drive. But when added to my server, a Muse-related error message pops up. After dismissing the error, the page seems to work. I have been unable to figure out this mysterious error. Any suggestions will be appreciated.
    http://www.rupestrian.com/Inscription_Point.html

    Come on, Adobe Muse engineers. Give me a hand with this problem. Someone must know what this error means.

  • Passing value from JApplet to Jsp page

    Hello,
    How can i pass a value that is entered in a JTextArea in a JApplet and fetch the entered value from JTextArea and display it in a JSP page.
    It would be kindful if someone could help me with this problem.
    Regards
    Sanam

    hello,
    Thanks for ur reply,
    Sorry to say that i did not understand where to implement ur code in my code.
    Below is my code could u plz tell me where do i put in ur code.
    My code works fine u can compile it.
    javac *.java;
    appletviewer BIA.java
    Can u plz tell the JSP code.
    It would be very kindful if u could please help me.
    Thank you
    //**************** BIA.java***********
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.util.Vector;     
    import java.applet.*;     
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.lang.reflect.Field;
    <applet code = "BIA" width = 500 height = 500>
    </applet>
    public class BIA extends JApplet
         public static Container cp;
         public BIAP panel;     
         public TB action;
         public void init()
              panel = new BIAP();
              action = new TB(panel);
              action.setLayout(new GridLayout(2,2));     
              cp = getContentPane();
              cp.setLayout(new BorderLayout());
              cp.add(action, "North");
              cp.add(new JScrollPane(panel));
              repaint();
    //******************* BIAP.java*************
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.util.Vector;     
    import java.applet.*;     
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.lang.reflect.Field;
    class BIAP extends JPanel
         public BIA bia;
         public BufferedImage image;
         public double scale, scaleInc;
         public JTextArea jt;
         public BIAP()
              loadImage();
              setBackground(Color.white);
              scale = 1.0;
              scaleInc = 0.01;
              setLayout(null);
              jt = new JTextArea("Welcome");
              jt.setBounds(0,0, 90,30);
              add(jt);     
              repaint();
         protected void paintComponent(Graphics g)
              super.paintComponent(g);
                   Graphics2D g2 = (Graphics2D)g;
              g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                        RenderingHints.VALUE_INTERPOLATION_BICUBIC);
              int w = getWidth();
              int h = getHeight();
              int imageWidth = image.getWidth();
              int imageHeight = image.getHeight();
              int x = (w - imageWidth)/2;
              int y = (h - imageHeight)/2;
              g2.drawImage(image, x, y, this);
         private void loadImage()
              String fileName = "Terragen___Losing_Grip_by_Blackheart6004.jpg";
              try
              URL url = getClass().getResource(fileName);
              System.out.println(url);
              image = ImageIO.read(url);
              catch(MalformedURLException mue)
              System.out.println("url: " + mue.getMessage());
              catch(IOException ioe)
              System.out.println("read: " + ioe.getMessage());
         public Dimension getPreferredSize()
              Dimension d = new Dimension();
              d.width = (int)(scale * image.getWidth());
              d.height = (int)(scale * image.getHeight());
              return d;
         //method used for Zoom Operation
         public void setScale (int inc)
              scale += inc * scaleInc;
              revalidate();
              repaint();
    //************************** TB*********************
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.util.Vector;     
    import java.applet.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    class TB extends JPanel
         BIAP panel;
         JButton save = new JButton("Save");
         public TB(BIAP biap)
              panel = biap;
              ActionListener sa = new ActionListener()
                   public void actionPerformed(ActionEvent e)          
                        JButton button = (JButton)e.getSource();
                        if(button == save)
                             //panel.fileSave();
              save.addActionListener(sa);
              add(save);
    }

  • Passing parameters from report to new page with portlets.

    Hello everyone:
    I have a plsql report portlet on a page that has a column that I would like to pass as a parameter to a new page to populate more portlets. I tried setting up a link but I can't seem to get the value in the column to pass as the parameter. I am a novice when it comes to developing portlets.
    Thanks in advance!

    The link is the way to go (at first). You have to create the link first. Then assign this link to the column that you want to the hyperlink to appear on - this assignment happens on the 2nd tab of the report (Column formatting) by choosing the newly created link in the link dropdown. After you have assigned the link to the column you must edit the assigned link where you can then choose the value that must be passed across.
    The link approach works fine, but there are limitations. I just do all the links in code these days - so in the report select statement I have <a href....>. This gives more flexibility. Ultimately there is the issue of passing parameters to forms: using links (or hand coded) you can pass parameters to reports (if param is also defined as input param with ":") and also forms, but all you can do with a form is to pass param that can be used to uniqeuly identify one record which is the one that will show in the form. Anything else (e.g. pass a param to prepopulate a field on the form) needs an even more complicated solution (:).
    Cheers.
    Anton.

  • Passing value from plsql back to UNIX

    I have a shell script which calls out to a plsql program using sqlplus command, but how do I return the values from the plsql program (a simple SELECT statement) back to the Unix script? Thanks.
    James

    Create one UNIX script
    eg :- C2_ATG_Insert.sh
    #!/usr/bin/ksh
    #Variables to store the values
    count=0
    Count_ILX_EXCH=0
    Count_ILX_CBOE_SERIES=0
    Count_ILX_UNDLY_INST=0
    Count_STOCK_TIPS=0
    Count_TIPSSUM=0
    # Block to check whether date is passed as a parameter
    if (($# != 1))
    then
    echo "Usage: C2_ATG_Insert.sh dd-mon-yy"
    exit 1
    fi
    # Assign the trade date to a variable
    Temp_Date=$1
    # Call the sql, Count_Temp.sql with date as parameter
    sqlplus usernam/password@Database_Name @Counts_Temp.sql $Temp_Date
    # remove the blank lines
    sed '/^$/d' Counts_Temp.lst > Counts_C2ATG.lst
    # Store variables from the spooled file which gets generated in Count_Temp.sql into variables defined
    while read myline
    do
    count=$(($count + 1))
    case $count in
    1) Count_ILX_EXCH=$myline ;;
    2) Count_ILX_CBOE_SERIES=$myline ;;
    3) Count_ILX_UNDLY_INST=$myline ;;
    4) Count_STOCK_TIPS=$myline ;;
    5) Count_TIPSSUM=$myline ;;
    esac
    done < Counts_C2ATG.lst
    echo "ILX_EXCH Count $Count_ILX_EXCH"
    echo "ILX_CBOE_SERIES Count $Count_ILX_CBOE_SERIES"
    echo "LX_UNDLY_INST Count $Count_ILX_UNDLY_INST"
    echo "STOCK_TIPS Count $Count_STOCK_TIPS"
    echo "TIPSSUM Count $Count_TIPSSUM"
    if [ $Count_ILX_EXCH -eq 0 ] || [ $Count_ILX_CBOE_SERIES -eq 0 ] || [ $Count_ILX_UNDLY_INST -eq 0 ] || [ $Count_STOCK_TIPS -eq 0 ] || [ $Count_TIPSSUM -eq 0 ]
    then
         echo "*********** Count in one of the tables is Zero *****************"
         exit 1
    fi
    Create the SQL File eg Count_Temp.sql
    SET heading off
    SET VERIFY OFF
    SET PAUSE OFF
    SET ECHO OFF
    SET TIMING OFF
    spool Counts_Temp.lst;
    select count(*) from ILX_EXCH where trade_date= '&&1'
    UNION ALL
    select count(*) from ILX_NONCBOE_SERIES where trade_date= '&&1'
    UNION ALL
    select count(*) from ILX_UNDLY_INST where trade_date = '&&1'
    UNION ALL
    select count(*) from STOCK_TIPS where trade_date = '&&1'
    UNION ALL
    select count(*) from TIPSSUM where trade_date ='&&1
    spool off;
    exit;
    Do reply in case you are unable to undertand any part of the scripts

  • Cannot "open email as list" any more or view individual message from a search results page

    I am used to searching for a name or word and seeing the result with the years and months at the top.
    If I then select for example the whole of 2015, I can see numerous emails underneath.
    There are now two things which no longer work for me:
    1. If I then select the Subject title of any message displayed it then shows a blank space.
    2. If I select "open as email as list" it then shows a blank space and no list.

    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

Maybe you are looking for

  • How do I make a pic in final cut Pro stop  flickering?

    how do I make a pic in final cut Pro stop  flickering?

  • Currency issue in ECM for MSS Planning

    Hi Team, I am facing a potential problem with curriencies in ECM, we have 22 MOLGA in our Project. In this 20 Countries are assigned to 99 Country Grouping (this for ANSAL feature). We have created multiple Pay Scale structures and assigned respectiv

  • Vendor Confirmation data while creating PO

    Dear All, I have a problem while creating PO. When I create PO with 9 line items 'Confirmation' data is populated. But when I create PO with more than 9 line items 'Confirmation' data is not being populated. If anyone encountered this problem please

  • Can I use Dell R900 as primary and Dell PE6850 Server

    I want to configure Rac on Oracle 10g, as i also want to configured oracle dataguard. My question is "Can i use Dell R900 as Primary database and Dell PE6850"

  • Project Notes in Logic 9

    Hello, this is hopefully just a quick one.  I've noticed recently that the default formatting of my project notes in Logic 9 has gone a bit weird. If I write a long sentence the words go off the edge of the page and I have to scroll across to view th