Displaying database info in a container

I am currently working on a JAVA project. I am using MS Access together with JAVA. For my main menu I use a container with Menus and Buttons. I managed to display the info in the database using System.out.println and SQL statements. I would like to display the info in the container when I press the button, with a "back" (to main menu) button at the end of the info.
How do u I do this??????

Swing tutorial?

Similar Messages

  • Display linked info in a datatip

    hiya
    I have a chart and in the chart I have a dates on the horizontal axis, and the series is a numeric value.
    I have a renderer to show the value, but i also want to show a linked datafield in the datatips.
    My arraycollection comes from a database table - and the array does include a field called 'Comments' - Each day/value has a Comment which I'd like to show in the datatips
    Here is my Chart:
          <mx:ColumnChart  id="ccBarSystem"
          height="100%" width="100%" 
          showDataTips="true"  
          creationComplete="{PodContentBase.SystemHistory()}"
          dataTipRenderer="dashboard.renderers.ChartRender" x="19" y="10"   showDataTipTargets="true">
          <mx:horizontalAxis>
          <mx:CategoryAxis id="baraxis"
          dataProvider="{PodContentBase._SystemHistory}"
          c ategoryField="Period"  />
          </mx:horizontalAxis>
          <mx:series>
          <mx:ColumnSeries id="barseries"
          dataProvider="{PodContentBase._SystemHistory}" 
          yField="Breach"
               fillFunction="myFillFunction">           
               </mx:ColumnSeries>
          </mx:series>
             </mx:ColumnChart>
    ... and here is the renderer:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="286" height="100" backgroundColor="#241616" backgroundAlpha="0.5">
        <mx:Label x="10" y="10" text="{data.chartItem.yValue}" color="#FFFFFF"/>
        <mx:Label x="10" y="36" text="I WANT MY COMMENTS HERE" color="#FFFFFF"/>   
    </mx:Canvas>
    Any thoughts?  How do I reference the comments field in the renderer?
    cheers
    Andrew

    I managed to display BP's info. using this code:
    see file attached.
    I had to create columns and rows manually, to be able to display all info I need.

  • BO XI R2 Change design time database info

    Hi,
    I have created a report and deploy it in the developpement BO Enterprise server (with the "Use original database logon information from the report")
    Now that this report is moving to the testing environnement I need to change those database info (with  "Use custom database logon information specified here")
    It doesn't seem to work.
    My databases are all sql server.
    This problem seem to occurs when the report is based on a stored procedure (since the full sp name is keeped  databasename.dbo.spname)
    Any idea?

    Symptom
    The Integration Kit for Baan driver displays incorrect time data in reports. The time is off by an hour between the dates marking the old Daylight Saving Time (DST) and the new DST change.
    Cause
    DST has been changed to occur earlier in the year. The Integration Kit for Baan does not pick the new settings up.
    Resolution
    There are files called ZONEFILES on the BAAN Server. These files must be already updated on the Baan server side.
    The Integration Kit for Baan installs our own version of these files in the following folder:
    \Baan\Native\lib\ZONEINFO
    on the hard drive where the Integration Kit is installed.
    Back up these files on the Crystal Reports/Business Objects XI computer, then put a copy of the ZONEFILES from the Baan Server to the computer where the Integration Kit for Baan is installed.

  • Database table for Workflow Container values

    hi,
    I am on SAP ECC 6.0
    I am trying to find workflow id number starting from document number
    I try to find database table which has containe values of the workflow instances so that I can get workflow/workitem instance numbers for the document
    this is custom workflow and it is not based on business object type. so checking container values is the onlyway I can get the workflows
    but I am not able to find any table for it
    I have checked following
    SWW_CONT
    SWW_CONTOB
    SWWVCONTWI
    SWXML_CONT
    SWJ_CONT
    SWJPCONT
    SWJSCONT
    SWPCMPCONT
    SWU_CONT1
    SWUOCONT1
    almost all the SWCONT tables
    Morever I put St05 trace to see all the tables in database operations while triggering the workflow
    but the only tables seen here are
    SWWHRINDEX
    SWD_CONT  
    SWWWIHEAD
    SWWCNTP0  
    SWWLOGHIST
    SWWWIRET  
    SWWCNTP0  is Workflow Container: XML Database (P0)
    but it is XML structure data. so its of new use to query container fields.
    is this reason because of any workflow design or system config ?
    how to read container values from database tables in such case?
    thanks
    bhakti

    Hi,
    >i need to display an ALV list with list of invoices and whether the workflow is awaiting / approved / rejected for review / approval. and who did the approval / rejection action
    This you should be able to read from container now, if you have FIPP instance.
    >the workflow has two steps - review and approve and so i would query table swwwihead for the parent id of workflow and then based on task number see which is ready status task and find if its awaiting approval or rejection
    Don't do any selects to SWWWIHEAD unless you have some really specific reason. Just use SAP_WAPI* functions. You should be able to get each depended work item etc. easily with the standard functions.
    >apart from this, several data like amount values, reference document, creation date and whole lot of invoice item and header level data is required which needs to be taken from workflow container
    Why would you read this data from container? This data is in the SAP tables VBKPF, etc. There should be even functions to get all data related to an invoice - try to search for example with READPRELIMINARY* (read preliminary invoice).
    In general:
    1) if you have invoice number, get all related work items with a SAP_WAPI* function
    2) if you have only the top WI ID, use SAP_WAPIDEPEND function to get the depended work items
    3) with above function you probably will get also the status of the tasks / work items, so you don't need select in SWWWIHEAD
    4) Now you have the "status" and the workflow data for the invoice
    5) read the invoice data from standard FI tables (unless there is some specific reason to get it from WF container, and if there is, then I think that you might be having some fundamental problems in your design)
    Regards,
    Karri

  • Unable to activate DTP - The database returned a value containing an error

    Hi Experts,
    I want to upload a flat file from local PC to Infocube. I have created everything as expected.
    I have created the data source and it is displaying file contents when I do Preview.
    But when I try to Activate DTP it gives me following error:  -
    The database returned a value containing an error
    Message no. RS_EXCEPTION000
    Can somebody tell me if this is a basis error ? If yes then what corrective action have to be taken to resolve this.
    Thanks a lot.
    Best Regards,
    Chandan

    Hi PT,
    I did not have any routine in the transformation but on double clicking time characteristics (0CALMONTH and 0CALWEEK ) I saw that check box "Perform" was checked so I unchecked that and reactivated the Transformation once again.
    I deleted the DTP and recreated but the problem still persists.
    Any more inputs on this ??
    Best Regards,
    Chandan

  • Display data in a custom container

    Hi All,
    My requirment is to just display data in a custom container.
    I could able to display data in change mode but not display mode.Can you please let me now how can i do that.
    Thanks in Advance
    KV

    Im using cl_gui_custom_container.
    In PBO
    here is my code whihc is fine for Change/Edit mode.
      create control container
        CREATE OBJECT g_editor_container
            EXPORTING
                container_name = 'DISP_CONT'
            EXCEPTIONS
                cntl_error = 1
                cntl_system_error = 2
                create_error = 3
                lifetime_error = 4
                lifetime_dynpro_dynpro_link = 5.
        IF sy-subrc NE 0.
        do nothing
        ENDIF.
      create calls constructor, which initializes, creats and links
       a TextEdit Control
        CREATE OBJECT g_editor
          EXPORTING
             parent = g_editor_container
             wordwrap_mode =  cl_gui_textedit => wordwrap_at_fixed_position
             wordwrap_to_linebreak_mode = cl_gui_textedit=>TRUE
          EXCEPTIONS
              OTHERS = 1.
        IF sy-subrc NE 0.
        do nothing
        ENDIF.
    In PAI
    CALL METHOD g_editor->get_text_as_r3table
        IMPORTING
          table  = Text_table
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
      ENDIF.
    Text_table contains messages which r supposed to be displayed.
    Based on certain logical operations i will display the messages.

  • SAP Web Service error text : The database returned a value containing an error , type  CX_SY_OPEN_SQL_DB

    Hello Guru's,
    we are creating sales order in SAP from a quote created in .NET,  through Web Service created in SAP, and consumed in .NET.
    When ever a order is created in SAP for a given quote, SAP returns the sales order number to .NET.
    Orders are getting created as expected, but once in a while we are getting the following error from webservice :
    Web service processing error; more details in the web service error log on provider side (UTC timestamp 20140609173429; Transaction ID 4DFCEFE33301F1EBB5CE00155D0B4530)
    But the problem is order is getting created in SAP for the perticular quote for which we are getting the above error and this order number is not getting returned to .NET.
    Upon analysis in TCODE  SRT_UTIL for the above transaction ID, has the following details , which are hardly help full to resolve the error.
    ----TYPE                                  CX_SY_OPEN_SQL_DB
    ----ERROR_TEXT                   The database returned a value containing an error
    ----CX_SY_NO_HANDLER
    -----CLASSNAME                     CX_SY_OPEN_SQL_DB
    This Exception raised by Web Service application
    Could you please help in resolving this issue or alteast provide an approach for the same.
    Thank you,
    Suresh.

    Thank you Bhaskar,
    How can we clarify whether the error is from SAP or Web part.
    I have checked ST22, but there is not entry for the perticular  exception transaction ID
    My exception time stamp is
    -------------------START-------------6/9/2014 1:34:33 PM
    Error :Web service processing error; more details in the web service error log on provider side (UTC timestamp 20140609173429; Transaction ID 4DFCEFE33301F1EBB5CE00155D0B4530)
    -------------------END-------------6/9/2014 1:34:33 PM
    In al11, i found the following for the perticular exception time stamp
    **** Trace file opened at 20140609 133431 Eastern Daylight Time, by disp+work
    **** Versions SAP-REL 720,0,500 RFC-VER U 3 1442251 MT-SL
    XRFC> Begin of user trace
    XRFC> ---------------------------------------------------------------------
    XRFC>                                                                     <
    XRFC> TRACE SOAP RUNTIME - header                                         <
    XRFC>                                                                     <
    XRFC> ------------------------------------------------------------------  <
    XRFC> REQ_SIZE   : 2685                                                   <
    XRFC> RESP_SIZE  : 0                                                      <
    XRFC> PARENT_ID  : ROOT_CALL_ID                                           <
    XRFC> TRC_KEY    : 40FCEFE3BD6EF184B5CE00155D0B4530                       <
    XRFC> REQ_BASED  :                                                        <
    XRFC> SESSION_ID : 0003925540FCEFE3BD6EF17DB5CE00155D0B4530               <
    XRFC> TS_CALL    : 20140609173408.2880000                                 <
    XRFC> SY_UNAME   :                                            <
    XRFC> HOSTNAME   :                                              <
    XRFC> SY_SID     : PRD                                                    <
    XRFC> SY_MANDT   : 300                                                    <
    XRFC> SYS_NR     : 19                                                     <
    XRFC> APPLSERVER :                                      <
    XRFC> ISPRESCHED : X                                                      <
    XRFC> DURATION   : 21810                                                  <
    XRFC> NETHDRTIME : 21810                                                  <
    XRFC> CALL_STATE : 2                                                      <
    XRFC> ERRORTYPE  : APPLFAIL                                               <
    XRFC> ERRORAREA  : APPL                                                   <
    XRFC> CTXDP_TYPE : SOAP_RUNTIME                                           <
    XRFC> SYNC_ASYNC : S                                                      <
    XRFC> LOCATION   : P                                                      <
    XRFC> DIRECTION  : I                                                      <
    XRFC> REQ_ID     : 91C57815916E421CA9F3D652FFACE9C7                       <
    XRFC> RESP_ID    : 00155D0B45301EE3BBFF89A0267EB5CE                       <
    XRFC> MSG_STATE  : 114                                                    <
    XRFC> IF_NAME_I  : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> IF_NS_E    : urn:sap-com:document:sap:soap:functions:mc-style       <
    XRFC> IF_NAME_E  : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> ISSHORTCUT :                                                        <
    XRFC> TRC_PATT   : WSTEST                                                 <
    XRFC> TRC_SSID   : PRD_19                                                 <
    XRFC> TRC_USER   :                                           <
    XRFC> TRC_TS     : 20140609173409                                         <
    XRFC> TRC_COUNT  : 99                                                     <
    XRFC> TRC_EXT    :                                                        <
    XRFC> COMPLETE   : OK                                                     <
    XRFC> CALLEDPROG : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> SOAP_APPLI : urn:sap-com:soap:runtime:application:rfc:710           <
    XRFC> CONF_ID    : 00155D0B45301EE3AEFDAD78756555CE                       <
    XRFC> BIND_ID    : 00155D0B45301EE3AEFDAD787565B5CE                       <
    XRFC> OP_NAME    : ZsdCsCreateSalesorder                                  <
    XRFC> COMM_PATRN : Method:ZsdCsCreateSalesorder                           <
    XRFC> OP_NS      : urn:sap-com:document:sap:soap:functions:mc-style       <
    XRFC> REMADDRESS : 172.16.11.43                                           <
    XRFC> DT_OBJ     : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> MEMCONSUMP : 296291                                                 <
    XRFC> WSHOST     :                                                        <
    XRFC> WSPORT     :                                                        <
    XRFC> WSPROT     :                                                        <
    XRFC> WSCLIENT   :                                                        <
    XRFC> WSPATH     :                                                        <
    XRFC> PXYHOST    :                                                        <
    XRFC> PXYPORT    :                                                        <
    XRFC> USEDRFCDES :                                                        <
    XRFC> BONAME     :                                                        <
    XRFC> PROCCOMP   :                                                        <
    XRFC> DEPLOYUNIT :                                                        <
    XRFC> ------------------------------------------------------------------  <
    XRFC>                                                                     <
    XRFC> TRACE SOAP RUNTIME - trace records                                  <
    XRFC>                                                                     <
    XRFC> ------------------------------------------------------------------  <
    XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING Exception handling for IF "ZSD_CS_CREATE       <
    XRFC> _SALESORDER_SERVI" OP name "ZsdCsCreateSalesorder" MSG ID           <
    XRFC> "91C57815916E421CA9F3D652FFACE9C7" user "STULZWEBSERV"              <
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> E SOAP_RUNTIME 20140609173429.7240000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING CX_SOAP_ROOT : An exception has occurred. |    <
    XRFC> program: CL_SOAP_RUNTIME_ROOT==========CP include: CL_SOAP          <
    XRFC> _RUNTIME_ROOT==========CM004 line: 120                              <
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING CX_SY_NO_HANDLER : An exception with the type  <
    XRFC> CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor    <
    XRFC> declared in a RAISING clause | program: SAPLSTXD include: LSTXDFDB  <
    XRFC> line: 200                                                           <
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING CX_SY_OPEN_SQL_DB : The database returned a    <
    XRFC> value containing an error | program: SAPLSTXD include: LSTXDFDB     <
    XRFC> line: 227                                                           <
    XRFC>                                                                     <
    XRFC> ---------------------------------------------------------------------
    XRFC> End of user trace

  • Is it possible to display unrelated info without using a subreport?

    Hi,
    I'm trying to create a report that displays 2 different sets of information without using a subreport. 
    The first section of info (the part I'm having trouble with) is simple displaying the info in the db.  It is just the differnt security settings of the system.
    The second section of info is each users info and their personal security settings.  This part is not a problem and displays correctly.
    How can I get the first section to be displayed at the top of the report without it affecting the second section which uses the group header and details portion of the report?  When I try and put it in the Page header it throws off the second section and causes the information in the details to be repeated multiple times.
    Is it possible to do this without a subreport?  I'm using Crystal Reports 2008.
    Thanks Mike
    Edited by: Mike Swift on Aug 21, 2008 5:35 PM

    Mike
    Have you tried selecting the "Select Distinct Records" box in report options.
    Maybe this has nothing to do with your problem but I thought I would throw that out.
    Good luck

  • How to display a screen in a container ?

    Hi All,
    I have an instance of a container lrc_cont_right type cl_gui_container and
    a screen 0300.
    How do I display this screen in the container ?
    Regards,
    Ashish

    hi
    if gc_container is initial.
          create object gc_container
            exporting
              container_name              = <container_name>.
          create object gc_alv_boq
            exporting
              i_parent          = gc_container.
        endif.
    call method gc_alv_boq->set_table_for_first_display
    exporting
    *    I_BUFFER_ACTIVE               =
    *    I_BYPASSING_BUFFER            =
    *    I_CONSISTENCY_CHECK           =
    *    I_STRUCTURE_NAME              =
    *    IS_VARIANT                    =
    *    I_SAVE                        =
    *    I_DEFAULT                     = 'X'
      is_layout                     = gs_layout_boq
    *    IS_PRINT                      =
    *    IT_SPECIAL_GROUPS             =
      it_toolbar_excluding          = gt_toolbar
    *    IT_HYPERLINK                  =
    *    IT_ALV_GRAPHICS               =
    *    IT_EXCEPT_QINFO               =
        changing
          it_outtab                     = <it_table>
          it_fieldcatalog               = <field_cat>
    *    IT_SORT                       =
    *    IT_FILTER                     =
    *  EXCEPTIONS
    *    INVALID_PARAMETER_COMBINATION = 1
    *    PROGRAM_ERROR                 = 2
    *    TOO_MANY_LINES                = 3
    *    others                        = 4
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    regards
    vivek

  • Error while activating DTP : database returned a value containing an error

    Hi ,
    I am getting an error as "The database returned a value containing an error"
    while activating the DTP. Can neone suggest any solution for this error .
    The system is also not allowing to delete the DTP and giving the same error as above one .

    Are you receiving a similar error as below from the log:
    Creation of PSA /BIC/B0001995 failed
    Error during creation of DDIC sources of Data Transfer Process DTP_4DGGKC0NCCP394FEOOSQC68Y3
    If yes then look into SAP Note 1145673 - Extracting from InfoProviders with navigation attributes. Application of this note should resolve the issue.

  • How do I get the iTunes 12 miniplayer to display track info.  All I get is a search box.

    I can display track info, but only in the larger mini display - not what I want.  How can I simply display track name, duration, time remaining when the mini display is at its smallest...?  This wasn't a problem with earlier versions.   Aaaargh!

    Hi,
    Is this what you are seeing?
    If So, click on cancel!
    Jim

  • How to display database name in page footer in webi report

    Hi Every one,
    I have migrated deski report from BO 6.5 to BI 4.1. and converted Deski to WEBI in 4.1.
    In Bo 6.5 page footer displaying database name but BI 4.1 it showing database type (like Oracle 10g,9i ..etc..).
    I want database name in page footer.
    Please any one help me to solve this issue.
    Thanks

    Hi Thanks for your reply.
    We have tried this option but its not helpful.
    Below syntax is  in both BO 6.5 and BI 4.1.but in 6.5 it showing database name where as in BI 4.1 it showing database type
    ="Track GPQ Database - " + Upper(Substr(Connection((DataProvider(([product])))) ;Pos(Connection((DataProvider(([Product])))) ;"DATABASE")+9 ;7)).

  • HT204150 I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    It is locked to your sisters carrier.
    She would have to ask her carrier if they unlock iPhones and if she qualifies for this service.

  • Is it possible to display GPS info from a COOLPIX S800c in Aperture 3?

    Is it possible to display GPS info from a COOLPIX S800c in Aperture 3?

    To see the GPS locations display the image in "Places view", while connected to the internet (you will see the images locations as pins on a map).
    To see the numerical values edit the "EXIF info" metadata preset in the Info panel to include GPS:
    Or simple us the Lift&Stamp tool to lift the tags from your image:
    It will show the GPS value, if the image has tags. This tool can also be used to transfer the GPS tags to other images without GPS.
    Regards
    Léonie

  • MaxL shell: show only db name from display database command

    Hello at all.
    I launch from MaxL command line shell the command: display database
    It response with some field but i need only the application and database field.
    Is possible ?
    How ?
    Thanks.
    Alessandro
    Edited by: Alessandro Celli on Mar 31, 2011 2:50 AM

    Hi ,
    to get details for the application : Refer to :
    http://download.oracle.com/docs/cd/E12032_01/doc/epm.921/html_techref/maxl/ddl/statements/dispapp.htm
    to get details for the db : Refer to :
    http://download.oracle.com/docs/cd/E12032_01/doc/epm.921/html_techref/maxl/ddl/statements/dispdb.htm
    It's damn easy
    Thanks,
    ColdFire

Maybe you are looking for