ShowStatus, how do i pass messages around? genius needed...

I posted this earlier & offered duke dollars on it...
either no one can help me or no one has seen this...
so i have repeated the post (sorry).
I think i need a resident genius on this one!
Purpose of pgm: to teach kids the mulitplication table. A question appears in the status bar "how much is 7 x 5", kid answers, answer is checked. If answer is correct display in status bar "excellent" else answer is wrong so display "incorrect". If the answer is incorrect display the same question in the status bar.
my problem: The teachers responses are not appearing in the status bar� how can i fix this? Compounding problem: all questions & responses MUST be displayed in the status bar. (the questions ARE appearing in the status bar).
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import java.awt.Graphics;
public class Ex6_31 extends JApplet implements ActionListener{
   int num1, num2;
   JLabel resultLabel;
   JTextField ans;
   String message = "";
   public void init(){
      Container c = getContentPane();
      c.setLayout( new FlowLayout());
      resultLabel = new JLabel( "my answer > " );
      c.add( resultLabel );
      ans = new JTextField( 10 );
      ans.addActionListener( this );
      c.add(ans);
      getMultiplicands();
      poseQuestion();
   }//end of init
   public void actionPerformed( ActionEvent e ){
      int response = Integer.parseInt( ans.getText() );//users response to first question
      int mark = checkAnswer(response);                //mark=1 if correct, 0 if wrong
      teacher(mark);                                   //call the teacher for her response
      while (mark == 0){                                //if the answer was wrong
         ans.setText("");                               //clear the answer textField
         poseQuestion();                                //ask the same question
         response = Integer.parseInt( ans.getText() );  //get the users answer
         mark = checkAnswer(response);                  //check the users answer
         teacher(mark);                                //call the teacher for her response
      ans.setText("");                               //clear the answer textField
      getMultiplicands();                            //create a new question
      poseQuestion();                                //pose question to user
   }//end of actionPerformed
   public void getMultiplicands(){
      num1 = 1 + (int) (Math.random() * 9 );
      num2 = 1 + (int) (Math.random() * 9 );
   }//end of getMultiplicands
   public void poseQuestion(){
      String query = "";
      query = ("how much is " +num1+ " x " +num2 + " ?");
      message = query;
      repaint();
   }//end of poseQuestion
   public void paint(Graphics g){
      super.paint(g);
      getAppletContext().showStatus(message);
   }//end of paint
   public int checkAnswer(int r){
      //r contains users response to the question
      //if they answered correctly mark = 1, incorrect mark = 0;
      if (r == (num1*num2))
         return 1;
      else
         return 0;
   }//end of checkAnswer  
   public void teacher( int m){
      //the users mark, 0 or 1, is contained in m
      String talk = "";
      if (m == 0)
         talk = ("No - that is NOT correct");
      if (m == 1)
         talk = ("excellent!!");
      message = talk;
      repaint();        //to display the teachers comments you must repaint
   }//end of teacher
}//end of Applet

Purpose of pgm: to teach kids the mulitplication
table. A question appears in the status bar "how much
is 7 x 5", kid answers, answer is checked. If answer
is correct display in status bar "excellent" else
answer is wrong so display "incorrect". If the answer
is incorrect display the same question in the status
bar.
my problem: The teachers responses are not appearing
in the status bar� how can i fix this? Compounding
problem: all questions & responses MUST be displayed
in the status bar. (the questions ARE appearing in the
status bar).Sympton: Responses are not displayed.
Cause: The next question is overwriting the previous response.
Cure 1: Incorporate the previous response in the next question.
Cure 2: Don't use the status bar.
The browser status bar is small, hard to read, and isn't guaranteed to be visible. In IE, the status bar can be disabled in the view menu, and it is also hidden in full-screen mode. Further, it can only hold a single string, which is easily overwritten.
To guarantee that a user can see a message, it is recommended that the message be displayed in an appropriate way in the applet. A simple solution would be to place the question in a label above the answer, and the response in a label above the question.
For the first question, you set the text of the question label, and leave the response label blank. For each successive question, update the question and response labels as necessary.
To position the labels correctly, take a look at the AWT tutorials, in particular the section on LayoutManagers on the sun website. GridBagLayout would work, but might be tricky to set up... a combination of GridLayout, nested Panels and FlowLayouts may be the simplest technique.
A final note, you are using swing in your applet... most of the browsers that are connected to the internet are using Java 1.1.x, which does not include the swing classes. To reach the widest audience, you should use only AWT components - particularly for school-based situations... if your users have access to upgrade their machine setup, then requiring them to download the Java plugin is a feasible solution to allow a larger feature set.
Regards,
-Troy

Similar Messages

  • How to pass message in Status Bar

    How can I pass message in status bar.
    I typed bellow line but get some error.
    void itemFileOpen_actionPerformed (ActionEvent e) {
    statusBar.setText(" need Help ");
    Error: (456) method setText(java.lang.String) not found in class oracle.dacf.control.swing.StatusBarControl.
    Warning: Deprecated APIs are used. Please recompile with the 'deprecation' option for details.
    null

    Sergio,
    Even though your form is based on the Apps Template form, double-check to ensure it has all of the triggers it should have, like the Form level Key-Commit. The easiest way to make this comparison would be to open your custom form and then open one of the EBS forms like "ARXCUDCI". If your comparison shows no significant differences you might be dealing with a situation when the message is displaying in the Console (status bar) but something else is clearing the console. Check for any Clear_Message calls.
    Hope this helps.
    Craig...
    If my response or the response of another was helpful, please mark it accordingly

  • HT2534 but i have problem in step 13.  i can't see  step(13) because the red box that has this message "please contact itunes support to complete this transaction" apears. plz help me how can i pass this step

    but i have problem in step 13. i can't see step 13 because the red box which has this message " please contact itunes support to complete this transaction" apears. plz help me how can i pass this step

    You will need to do what it says, contact iTunes support. Click the Support tab above, then the Get Started link in the Contact Apple Support area and you'll be guided.
    Regards.

  • How to change the message in CUCM 7.0 " Your Current Options"

    Dear All
    can any body help me or assist me to type my own message at the botom of the phones by default its your current options but i tried to much to change it or find any way to change and i failed.
    in Call Manager express it was easy to change just at the cli you type "system message Hello this is your IP Phone" but at the CUCM 7.0 i dont know how to change this and solve this problem so can any body tell me how to change this message please its needed 100% for me
    i have atached the picture that where the message cames so you people can see it.
    with regards
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Waisudin Farzam ویس الدین فرزام                           
    Project National IT Specialist            متخصص ملی تکنالوژی معلوماتی          
    Sustainable Development of Natural Resources Project
    IDA Grant No: H238-AF
    Program Management Unit (PMU)
    Afghanistan Geological Survey (AGS) Annex Building, Ministry of Mines,
    Kabul, Afghanistan
    AWCC Cell Phone:                              0093 - 700 - 29 60 62
    MTN Cell Phone:                                   0093 - 777 - 29 60 62
    E-Mail Address:                                     [email protected]
    E-Mail Address:                                     [email protected]
    E-Mail Address:                                     [email protected]
    Skype ID:                                               wais.farzam
    MSN ID:                                                  [email protected]

    You cannot change it, in CCM it was possible due to it being Windows and you had access to all the files.
    CUCM does not grant access to the necessary files for this unless you have root access and it's not granted for purposes other than troubleshooting or to apply a workaround from a bug.
    HTH
    java
    If this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • My iPad conveys that it is disable, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the number board to open with a password.  How do I fix this?

    My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the scree with the number board to open with a password.  How do I fix this?

    You will need to restore it. The sidebar of your iPad appears on itunes even if you dont enter the passcode. There's the option to restore it. More info:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the screen to open with a password.  How do I fix this?

    My iPad conveys that it is disabled, and that I need to connect to iTunes.  When I connect to iTunes I get a message that I need to enter my pass code and open my Ipad, but I don't get the screen to open with a password.  How do I fix this?

    You will need to restore it. It may not sync, but the iPad's sidebar has to appear you can restore it and it will be as the last time ou synced it to iTunes. For more info:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • Recently I updated to Maverick -- I also updated Numbers, Pages and Keynote.  NOW, I cannot open my pages documents.  I get a message that I need a newer version of Pages.  I have the newest version (5.2).  How do I get around this to view my documents?

    Recently I updated to Maverick -- I also updated Numbers, Pages and Keynote.  NOW, I cannot open my pages documents.  I get a message that I need a newer version of Pages.  I have the newest version (5.2).  How do I get around this to view my documents?

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • How to pass messages dynamically in screen

    Hello Experts,
        How can I pass messges dynamically in my module pool program screen.
    Suppose for example It has to specify like value and name of a particular item in that message ..   
    Thanks

    Hi Prashanth,
    Message handling in ABAP Programs are done to display the status of the user interaction. This can be handled very well from the Screen or Module pool programing with the help of the following set of Function Modules.
    Function Group : SBAL
    Function Module : BAL_LOG_MSG_ADD
    Infact based on your requirement, use these entire set of function modules to populate the messages on the screen. This will automatically populate the messages on your behalf and  you can then display all the valid set of status for the users.
    Hope this helps.
    Thanks,
    Samantak.

  • How do I pass selected values from dynamic LOV to Command SQL in Oracle

    My environment:
    Crystal 11
    Oracle 10
    I've created and tuned a SQL script for a report.  In the Database Expert, I've copied the SQL into a Command.   I've modified the Command to create 3 parameters. 
    I need help with the following:
    1) How do I create a dynamic, cascading LOV and associated prompt group for the three parameters defined in the Command?
    2) How do I pass the user selected valueS from the prompt group into the Command SQL as limits applied to the query executed against the database?

    I have the same problem with same environment .
    The main report is having a  2 level cascading dynamic parameters.
    I created a sub report with a command as below.
    *select * from (*
    select DATUM,MSEC,CNT,B1_NAME,B2_NAME,B3_NAME,ELEM_NAME,INFO_NAME,m.INFOTYPE,V.NAME,rank()
    over (partition by B1_NAME,B2_NAME,B3_NAME order by DATUM desc ,MSEC desc,CNT desc) currentRank
    from MESSAGES m,INTYDE i,VANAME v
    where  DATUM <=SYSDATE  and trim(B1_NAME)='{?B1Name}'
    and trim(B2_NAME)='{?B2Name}'
    and m.INFOTYPE=i.INFOTYPE
    and i.VALUE_NAME_NUMBER = v.VALNUM) where currentRank=1
    I needs to pass cmbination of B1Name and B2Name from main report. I created a formula like
    formula=Join({?B1Name},{?B2Name}),'|');  But this is showing some error.
    and How I will substitute this in my command . As I new to Crystal XI  help expected.

  • HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE

    HOW CAN I PASS A DEFAULT VALUE IN INTERNAL TABLE.
    DATA : BEGIN OF ITAB OCCURS 0,
               FIELD1(2) TYPC C DEFAULT   '12',
               FIELD2     TYPE C ,
               END OF ITAB1.
    IT'S GIVING ERROR MESSAGE.
    PLZ LOOK INTO THIS AND GIVE ME CORRECT SOLUTION.
    THANKS
    SURI

    DATA : BEGIN OF ITAB OCCURS 0,
    FIELD1(2) TYPC C,
    FIELD2 TYPE C ,
    END OF ITAB1.
    itab-field1 = '12'.
    itab-field2 = 'A'.
    append itab.
    clear itab-field2.
    itab-field1 = '12'.
    itab-field2 = 'B'.
    append itab.
    clear itab-field2.
    Now everytime u'll have the value for field1 = '12'.
    Regards
    Vasu

  • How can I pass empty value in URL Parameter

    Hi,
    I am passing different URL parameters to one page, to filter
    the recordset on that page. How can I pass an empty value in the
    URL parameter so that the recordset in unfiltered?
    The URL parameter is based on one field of the database:
    ContentType. So, the link would be to
    default.asp?ContentType=Event
    and then all records that have the ContentType field in the
    DB as Event are displayed. Is it possible to use this system to
    pass an empty parameter so that all records are displayed?
    Thanks
    Ian

    ?ContentType=All
    <% if (ContentType == "All")
    Build recordset w/o filtering
    ASP is rusty, but those are the basics.
    "iandobie" <[email protected]> wrote in
    message
    news:e8im80$q7m$[email protected]..
    > Hi,
    > I am passing different URL parameters to one page, to
    filter the recordset
    > on
    > that page. How can I pass an empty value in the URL
    parameter so that the
    > recordset in unfiltered?
    > The URL parameter is based on one field of the database:
    ContentType. So,
    > the
    > link would be to
    > default.asp?ContentType=Event
    > and then all records that have the ContentType field in
    the DB as Event
    > are
    > displayed. Is it possible to use this system to pass an
    empty parameter so
    > that
    > all records are displayed?
    > Thanks
    > Ian
    >

  • How can I pass the values to the variable by using INPUT ON from output

    HI,
        In this code I printed  s_number by using INPUT ON .
    In the out put I want to give the some new values to that field s_number.
    That new value I  pass to the another prgroam ZMAT_LABEL_FIRST .
          How could I pass this new  content to this program.  I wrote like this but I am not getting new content what I entered in the output.
    REPORT  ZMAT_LABEL_SCREEN_V1    NO STANDARD PAGE HEADING                    .
    PARAMETERS S_MBLNR TYPE MSEG-MBLNR.
    DATA C .
    DATA CNT TYPE I.
    DATA   S_NUMBER(3) TYPE C.
    DATA : BEGIN OF IT_MBELN OCCURS 0,
            MBLNR TYPE  MSEG-MBLNR,
            END OF IT_MBELN.
    DATA :  BEGIN OF IT_MSEG OCCURS 0,
            ZEILE TYPE MSEG-ZEILE,
            MBLNR TYPE MSEG-MBLNR,
            MEINS TYPE MSEG-MEINS,
            BPMNG TYPE MSEG-BPMNG,
            MAKTX TYPE MAKT-MAKTX,
            END OF IT_MSEG.
    DATA IT_FINAL LIKE IT_MSEG .
    data: it_ret like ddshretval occurs 0 with header line.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MBLNR.
    SELECT MBLNR
           FROM MSEG
           INTO TABLE IT_MBELN.
           CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
             DDIC_STRUCTURE         = ' '
               retfield               =  'MBLNR'
              PVALKEY                = ' '
             DYNPPROG               = ' '
             DYNPNR                 = ' '
             DYNPROFIELD            = ' '
             STEPL                  = 0
             WINDOW_TITLE           =
             VALUE                  = ' '
              VALUE_ORG              = 'S'
             MULTIPLE_CHOICE        = ' '
             DISPLAY                = ' '
              CALLBACK_PROGRAM       = 'ZMAT_LABEL_SCREEN '
             CALLBACK_FORM          = ' '
             MARK_TAB               =
           IMPORTING
             USER_RESET             =
             tables
               value_tab              =  IT_MBELN
             FIELD_TAB              =
              RETURN_TAB             =  IT_RET
             DYNPFLD_MAPPING        =
           EXCEPTIONS
             PARAMETER_ERROR        = 1
             NO_VALUES_FOUND        = 2
             OTHERS                 = 3
           IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.
    IF SY-SUBRC = 0.
    read table it_ret index 1.
    move it_ret-fieldval to S_MBLNR.
    ENDIF.
    START-OF-SELECTION.
    SELECT A~ZEILE
           A~MBLNR
           A~MEINS
           A~BPMNG
           B~MAKTX
           INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
           FROM MSEG AS A INNER JOIN MAKT AS B
           ON AMATNR = BMATNR
           WHERE MBLNR = S_MBLNR.
    ****FINDING THE NUMBER OF RECORDS IN THE TABLE
    DESCRIBE TABLE IT_MSEG LINES CNT.
    at line-selection.
    DO CNT TIMES.
    READ LINE SY-INDEX FIELD VALUE C.
    IF C = 'X'.
    READ TABLE IT_MSEG INDEX SY-INDEX .
    ***HERE READ THE S_NUMBER(WHAT I ENTERED IN THE OUTPUT)  AND PASS TO THIS PROGRAM
    submit   ZMAT_LABEL_FIRST with p_mblnr = IT_MSEG-mblnr
                              with number =  S_NUMBER
                              WITH S_ZEILE =  IT_MSEG-ZEILE and return.
    CLEAR IT_MSEG.
    ENDIF.
    ENDDO.
    **********ALL ITEMS CORRESPODNING TO THE DOCUMENT NUMBER DISPLAY
    END-OF-SELECTION.
    LOOP AT IT_MSEG.
    WRITE : /10 C as  CHECKBOX,IT_MSEG-ZEILE,IT_MSEG-MAKTX,IT_MSEG-BPMNG,IT_MSEG-MEINS, S_NUMBER COLOR 5 INPUT ON.
    ENDLOOP.
    Regards,
    Surya

    Hi Surya..
    Change it like this ...
    START-OF-SELECTION.
    SELECT A~ZEILE
    A~MBLNR
    A~MEINS
    A~BPMNG
    B~MAKTX
    INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
    FROM MSEG AS A INNER JOIN MAKT AS B
    ON AMATNR = BMATNR
    WHERE MBLNR = S_MBLNR.
    ****FINDING THE NUMBER OF RECORDS IN THE TABLE
    DESCRIBE TABLE IT_MSEG LINES CNT.
    at line-selection.
    <b>DO. </b>
    READ LINE SY-INDEX FIELD VALUE C
                                      <b>FIELD VALUE IT_MSEG-ZEILE.</b>
    <b>if sy-subrc ne 0.
      EXIT.
    ENDIF.</b>
    IF C = 'X'.
    ***HERE READ THE S_NUMBER(WHAT I ENTERED IN THE OUTPUT) AND **PASS TO THIS PROGRAM
    <b>CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        INPUT = IT_MSEG-ZEILE
      IMPORTING
        OUTPUT = IT_MSEG-ZEILE .</b>
    submit ZMAT_LABEL_FIRST with p_mblnr = IT_MSEG-mblnr
    with number = S_NUMBER
    WITH S_ZEILE = IT_MSEG-ZEILE and return.
    CLEAR IT_MSEG.
    ENDIF.
    ENDDO.
    **********ALL ITEMS CORRESPODNING TO THE DOCUMENT NUMBER DISPLAY
    END-OF-SELECTION.
    LOOP AT IT_MSEG.
    WRITE : /10 C as CHECKBOX,IT_MSEG-ZEILE,IT_MSEG-MAKTX,IT_MSEG-BPMNG,IT_MSEG-MEINS, S_NUMBER COLOR 5 INPUT ON.
    ENDLOOP.
    <b>Reward if Helpful.</b>

  • How to display a message in an audit report?

    hello all,
    i would like to ask how do display a message in an audit report.  here is my code...
    CALL TRANSACTION tcode USING i_bdcdata
                            MODE c_n
                            MESSAGES INTO i_error2.
    IF sy-subrc EQ 0.
    ENDIF.
    CLEAR i_error2.
    LOOP AT i_error2.
      IF i_error2-msgtyp EQ c_e.
        MOVE v_pernr TO i_bdcerror2-pernr.
        MOVE c_infotype TO i_bdcerror2-infty.
        MOVE 'Error' TO i_bdcerror2-msgtype.
    <b>    SELECT SINGLE text
          INTO v_msgtxt
          FROM t100
          WHERE sprsl = i_error2-msgspra
          AND arbgb = i_error2-msgid
          AND msgnr = i_error2-msgnr.
        MOVE v_msgtxt TO i_bdcerror2-msgtxt.</b>
        APPEND i_bdcerror2.
      ENDIF.
    ENDLOOP.
    DESCRIBE TABLE i_bdcerror LINES v_bdcerrors.
    IF v_bdcerrors <> 0.
      SKIP 1.
      WRITE: 'BDC Error Report'.
      SKIP 1.
      WRITE: 'PERNR',
             'INFOTYPE',
             'MESSAGE TYPE',
             'MESSAGE TEXT'.
      ULINE.
      LOOP AT i_bdcerror.
        WRITE: / i_bdcerror-pernr,
               13 i_bdcerror-infty,
               22 i_bdcerror-msgtype,
               35 <b>i_bdcerror-msgtxt</b>.
      ENDLOOP.
    ENDIF.
    the message text that i was getting contains &1, &2 and so on.  how would i be able to replace it with the original value?
    thanks!
    -ann

    After calling the transaction, this is what I do.
    a) Call the function module, <b>MESSAGE_TEXT_BUILD</b> and pass the following values from <b>BDCMSGCOLL</b> or the internal table where you collect the messages.
       i) MSGID
      ii) MSGNR
    iii) MSGV1
      iv) MSGV2
       v) MSGV3
      vi) MSGV4
    There is no need to fetch data using select from table t100.
    It builds the message and returns in MESSAGE_TEXT_OUTPUT which can be then displayed to user.
    Regards,
    Subramanian V.

  • How to fetch Error message

    Hi folks,
    I am new to c/c++.
    And i am finding it difficult to figure it out ..............
    char* APIParser::parseDocument(const char *xmlInput) {
              XMLParser parser;
              const char *doc;
              uword ecode;
              doc = xmlInput;
              if(doc == NULL)
    //Return XML output
                   return getDefaultXMLOutput(-1, 0, "XML input document is null");
              if (ecode = parser.xmlinit()) {
                   cout << "Failed to initialize XML parser, error " << ecode;
                   //return ecode;
                   return getDefaultXMLOutput(-1, 0, "Failed to initialize XML parser");
              if (ecode = parser.xmlparseBuffer((oratext *) doc, strlen(xmlInput), (oratext *) 0,
                   XML_FLAG_DISCARD_WHITESPACE)) {
                   cout << "Parse failed, error " << ecode << "\n";
                   //          return 3;
                   return getDefaultXMLOutput(-1, 0, "Parse failed");
              if (ecode = schema.initialize(&parser))     {
                   cout << "Failed, code " << ecode << "!\n";
                   //return 4;
                   return getDefaultXMLOutput(-1, 0, "Error in initialize Schema");
              root = parser.getDocumentElement();
              if (ecode = schema.validate(root, NULL )){
                   cout << "Validation failed, error " << ecode << "\n";
                   ub4* ub4;
                   unsigned char** path;
                   int i=0;
                   boolean value;
                   while((value = parser.xmlwhere(ub4, path, i++))){
                        cout<<ub4<<endl;
                        cout<<ub4<<path;
                   cout<<value;
                   schema.terminate();
                   //return 5;
                   return getDefaultXMLOutput(-1, 0, "Validation failed");
              return "";
    Where i am passing xmlInput which is a char*.
    Things work fine.
    I need to send back exact error message to client to debug the messages.
    How to fetch the messages, line number etc.
    By seing docs i wont be able to figure it out.
    Can any one send piece of code to fetch the error messages.

    If you access the FacesContext you find a method called
    getMessages()
    Return an Iterator over the FacesMessages that have been queued, whether or not they are associated with any specific client identifier.

  • How To split large message using File Adapter

    Hello everyone,
    Here is my scenario FTP > XI > BI.
    I got 2 questions:
    (1) I am getting large message around 70 MB file.
        How we can split the message into multiple files 10 MB each before processing the file into XI?
    (2) Is there is any way we can find out size of file which is on FTP  without contacting FTP admin?    
        through XI before processing the file?
    Thanks
    Vick

    hi vick,
    check the blog
    Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter Framework                                   
    Working with the PayloadZipBean module of the XI Adapter Framework
    SAP XI acting as a (huge) file mover                                   
    The specified item was not found.                                   
    Managing bulky flat messages with SAP XI (tunneling once again) - UPDATED                                   
    The specified item was not found.                                   
    regards
    kummari

Maybe you are looking for

  • BAPI for updating Maintain Duration in Transportation and Delivery scheduling

    Hi all, Iam looking for a BAPI to update the Duration Times in Transportation and Delivery scheduling. I reluctant to use recording on SM30 Table maintenance T code and use it in LSMW. Is there a BAPI or Standard i/p Program to load these details. I

  • New Build Address not recognised

    I am trying to transfer my bt phobe line to my new address, it is registered with royal mail, but when I ring customer services they say that the address is not showing up on the system, How do I add my address to the BT/Openreach database?

  • Audio problem in Windows 8

    Hello everyone, I have a Windows 8 laptop and suddently my audio doesn't work. I have already clicked to the option that the system suggests and it fixes the problem by itself. However this wasn't successful. I found out that there is no installed au

  • Account Assignment Category empty for stock...

    Hi all, We are doing an upgrade to ecc 6.0 from 4.7, and in 4.7 we have the account assignment called stock that the id is the field empty (without any value). I've created the same field (empty for stock) in 6.0 and the problem is that I'm not hable

  • Columns as rows...

    Hi all,       I want to design a table such that my columns and rows will be dynamically created.. for eg.                           D1                     D2                     D3                       (columns) A-row B-row C-row Based on my i/p ro