How do I control a table's column visible in Java

Using JDeveloper 11.1.1.4.0
I want to control a rich tree table's column visibility programatically in Java. I've looked for syntax and do not find an example like I need. I need to directly control the column similar to how a panel collection does. The visibility of the column will be set and then the table refreshed (I've got the refresh part working), I just need to correctly reference the column. This logic will be triggered by a rowDisclosureListener that is defined as pageFlowScope. I've tried experimenting on myTable which is a RichTreeTable, but the plethora of syntax choices after "myTable." is enormous. Also, is it possible to allow the panel collection to override this logic or remove the column from its columns list?
Thanks in advance,
Troy

Wow, I wish I could include a screenshot to show what is happening. My bean has somewhat similar logic, only I am trying to have my treetable show an additional column when a node of the treetable is expanded. I thought this problem might be caused by the panel collection so I tried taking it off, but it still behaves the same. I can show the column, but no header shows up for it. The original column headers stay fixed as does the data of node 0, but the subsequent (node 1) data after the first column is shifted to the right with each column added between the first column and the end column. If I do a browser refresh after expanding a node, it refreshes with the column header that was missing--strange.
from my bean:
    public void onNodeDisclosure(RowDisclosureEvent rowDisclosureEvent) {
        boolean isCloseEvent = false;
        RowKeySet rowKeySet = rowDisclosureEvent.getAddedSet();
        //did disclosure event open a new node ?
        if (rowKeySet.iterator().hasNext()) {
            isCloseEvent = false;
            nodeLevel++;
        } else {
            isCloseEvent = true;
            nodeLevel--;
            //get the previously disclosed set
            rowKeySet = rowDisclosureEvent.getRemovedSet();
        if (nodeLevel == 1 && isCloseEvent == false) {
            setShowTaxyear(Boolean.TRUE);
        } else if (nodeLevel == 1 && isCloseEvent == true) {
            setShowTaxyear(Boolean.FALSE);
            setShowTaxunit(Boolean.FALSE);
        if (nodeLevel == 2 && isCloseEvent == false) {
            setShowTaxyear(Boolean.TRUE);
            setShowTaxunit(Boolean.TRUE);
          } else if (nodeLevel == 2 && isCloseEvent == true) {
            showTaxunit = true;
        if (nodeLevel == 3 && isCloseEvent == false) {
            setShowTaxyear(Boolean.TRUE);
            setShowTaxunit(Boolean.TRUE);
        partiallyrefreshUIComponent();
    public void setAmtsOwedTreeTbl(RichTreeTable amtsOwedTreeTbl) {
        this.amtsOwedTreeTbl = amtsOwedTreeTbl;
    public RichTreeTable getAmtsOwedTreeTbl() {
        return amtsOwedTreeTbl;
    public void setShowTaxyear(boolean showTaxyear) {
        this.showTaxyear = showTaxyear;
    public boolean isShowTaxyear() {
        return showTaxyear;
    public void setShowTaxunit(boolean showTaxunit) {
        this.showTaxunit = showTaxunit;
    public boolean isShowTaxunit() {
        return showTaxunit;
   * PRIVATE METHOD
  private void partiallyrefreshUIComponent() {
      AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
      adfFacesContext.addPartialTarget(getAmtsOwedTreeTbl());
  }my treetable:
        <af:treeTable value="#{bindings.GetAmtsGrandTotal_VO2.treeModel}"
                      var="node"
                      selectionListener="#{bindings.GetAmtsGrandTotal_VO2.treeModel.makeCurrent}"
                      rowSelection="multiple" id="amtsowedtt1" width="900"
                      columnSelection="multiple"
                      inlineStyle="border-style:none;"
                      summary="This table dynamically displays the amounts due, (interest, penalties and attorney fees--if any) and a total due.  The rows can be expanded to show the above amounts by year, tax unit and owner."
                      shortDesc="Amounts Due" autoHeightRows="0"
                      immediate="false"
                      clientComponent="true"
                      rowDisclosureListener="#{pageFlowScope.browseAmtsOwedTreeTblBean.onNodeDisclosure}"
                      binding="#{pageFlowScope.browseAmtsOwedTreeTblBean.amtsOwedTreeTbl}">
          <f:facet name="nodeStamp">
<!-- this column is to always show -->
            <af:column id="amtsowedc1" width="130"
                       inlineStyle="#{node.bindings.NodeType=='aggregate'?'font-weight:bold;':''}"
                       visible="#{true}">
              <af:outputText value="#{node.bindings.NodeLabel}"
                             id="amtsowedot1"/>
            </af:column>
          </f:facet>
<!-- this column should show when node 1 or greater is exposed -->
          <af:column width="45" id="amtsowedc2"
                     visible="#{pageFlowScope.browseAmtsOwedTreeTblBean.showTaxyear}" inlineStyle="text-align:center;"
                     sortable="true" sortProperty="#{node.bindings.Taxyear}">
            <af:outputText value="#{node.bindings.Taxyear}" id="amtsowedot2"/>
                    <f:facet name="header">
                      <af:outputText value="Tax Year" id="amtsowedot33"
                                     inlineStyle="text-align:center;"
                                     visible="#{pageFlowScope.browseAmtsOwedTreeTblBean.showTaxyear}"
                                     noWrap="true" rendered="#{pageFlowScope.browseAmtsOwedTreeTblBean.showTaxyear}"/>
                    </f:facet>
          </af:column>
<!-- this column should show when node 2 or greater is exposed -->
          <af:column width="40" id="amtsowedc3" visible="#{pageFlowScope.browseAmtsOwedTreeTblBean.showTaxunit}"
                     inlineStyle="text-align:center;"
                     sortable="true" sortProperty="#{node.bindings.Taxunit}"
                     filterable="true" filterFeatures="caseInsensitive">
            <af:outputText value="#{node.bindings.Taxunit}" id="amtsowedot3"/>
                    <f:facet name="header">
                      <af:outputText value="Tax Unit" id="amtsowedot66"
                                     inlineStyle="text-align:center;"
                                     visible="#{pageFlowScope.browseAmtsOwedTreeTblBean.showTaxunit}"
                                     noWrap="true" rendered="#{pageFlowScope.browseAmtsOwedTreeTblBean.showTaxunit}"/>
                    </f:facet>
          </af:column>
          <af:column id="amtsowedc4" align="right" headerText="Calculated Levy"
                     inlineStyle="#{node.bindings.NodeType=='aggregate'?'font-weight:bold;':''};"
                     visible="false">
            <af:outputText value="#{node.bindings.Calclevy}" id="amtsowedot4"/>
          </af:column>
          <af:column id="amtsowedc5" align="right" headerText="Levy Due"
                     inlineStyle="#{node.bindings.NodeType=='aggregate'?'font-weight:bold;':''};"
                     visible="false">
            <af:outputText value="#{node.bindings.Ballevydue}"
                           id="amtsowedot5"/>
          </af:column>
          <af:column id="amtsowedc6" align="right" headerText="Interest Due"
                     inlineStyle="#{node.bindings.NodeType=='aggregate'?'font-weight:bold;':''};"
                     visible="false">
            <af:outputText value="#{node.bindings.Intdue}" id="amtsowedot6"/>
          </af:column>
          <af:column id="amtsowedc7" align="right" headerText="Penalty Due"
                     inlineStyle="#{node.NodeType=='aggregate'?'font-weight:bold;':''};"
                     visible="false">
            <af:outputText value="#{node.bindings.Pendue}" id="amtsowedot7"/>
          </af:column>
          <af:column id="amtsowedc8" align="right" headerText="Attorney Due"
                     inlineStyle="#{node.bindings.NodeType=='aggregate'?'font-weight:bold;':''};"
                     visible="false">
            <af:outputText value="#{node.bindings.Attydue}" id="amtsowedot8"/>
          </af:column>
<!-- this column is to always show -->
          <af:column id="amtsowedc9" align="right" headerText="Total Due"
                     inlineStyle="#{node.bindings.NodeType=='aggregate'?'font-weight:bold;':''};"
                     visible="#{true}">
            <af:outputText value="#{node.bindings.Totalbaldue}"
                           id="amtsowedot9"/>
          </af:column>
          <f:facet name="pathStamp">
            <af:outputText value="#{node}" id="amtsowedot0"/>
          </f:facet>
        </af:treeTable>

Similar Messages

  • How to find the new tables and columns in a schema

    hi..good morning to all...
    I have a schema ABC which owns some objects.
    Now some days before I have made another schema XYZ which was a replica of ABC schema.
    between these days some new tables, new columns in the existing tables(with or without default value), comments on the columns are being added in the new schema i.e XYZ schema.
    Now I have to find the extra things which are present in the new schema. I need to find the new tables, new columns in hte existing tables, their default values and descriptions of those.
    Can u plss help me how can I find it?
    I am guessing that I have to write a SQL query with a minus clause but I am not able to write it and also dont know where should I execute it.
    plss help. thanks in advance.

    And moreover, when I am executing the query to get the desired result, then it is throwing "illegal use of long datatype" error and pointing to the b.data_default area of my query..
    select a.table_name, a.column_name, b.data_default, a.comments from all_col_comments a, dba_tab_columns b
    where a.TABLE_NAME=b.TABLE_NAME
    and a.OWNER=b.OWNER
    and a.OWNER=XYZ
    minus
    select c.table_name, c.column_name, d.data_default, c.comments from all_col_comments c, dba_tab_columns d
    where c.TABLE_NAME=d.TABLE_NAME
    and c.OWNER=d.OWNER
    and c.OWNER='ABC'
    order by 1, 2;
    plss help...

  • SSRS Reports level how to find out All tables names & columns list to display dynamically SQL Query????

    Hi Team,
    I Have one requirement,In SSRS Reporsitory 3000 reports are available.
    My end user requirement All 3000 reports are used Table names & columns list of each wise to display single table or single result set.
    I find out all 3000 reports details are diplayed single results set like
    Report Id,Path,Dataset,Source Query Text,Datasource
    In Source Query Text  column level All reports Queries are available but I want Each Report wise Table name & columns List.If any solution Please share me.
    Regards
    Rama

    Hi Ramakoteswara,
    According your description, you want to show used tables and columns of each report, and display is into a single result set. Right?
    In this scenario, we don't know where to find a column contains the Source Query Text. With my understanding, in Reporting Services, we have Catalog table in ReportServer DataBase, it has a column called Content stores the report code (.xml). In the
    code we can find the Query and Fields. Then you need to use VB/C# code to parse each .xml code of each report and fetch out the table name and columns. We do not support writing any queries against SSRS DataBase or parsing data records in any
    table.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to create Dynamic internal table with columns also created dynamically.

    Hi All,
    Any info on how to create a dynamic internal table along with columns(fields) also to be created dynamically.
    My requirement is ..On the selection screen I enter the number of fields to be in the internal table which gets created dynamically.
    I had gone thru some posts on dynamic table creation,but could'nt find any on the dynamic field creation.
    Any suggestions pls?
    Thanks
    Nara

    I don't understand ...
    something like that ?
    *   Form P_MODIFY_HEADER.                                              *
    form p_modify_header.
      data : is_fieldcatalog type lvc_s_fcat ,
             v_count(2)      type n ,
             v_date          type d ,
             v_buff(30).
    * Update the fieldcatalog.
      loop at it_fieldcatalog into is_fieldcatalog.
        check is_fieldcatalog-fieldname+0(3) eq 'ABS' or
              is_fieldcatalog-fieldname+0(3) eq 'VAL' .
        move : is_fieldcatalog-fieldname+3(2) to v_count ,
               p_perb2+5(2)                   to v_date+4(2) ,
               p_perb2+0(4)                   to v_date+0(4) ,
               '01'                           to v_date+6(2) .
        v_count = v_count - 1.
        call function 'RE_ADD_MONTH_TO_DATE'
            exporting
              months        = v_count
              olddate       = v_date
            importing
              newdate       = v_date.
        if is_fieldcatalog-fieldname+0(3) eq 'ABS'.
          concatenate 'Quantité 0'
                      v_date+4(2)
                      v_date+0(4)
                      into v_buff.
        else.
          concatenate 'Montant 0'
                      v_date+4(2)
                      v_date+0(4)
                      into v_buff.
        endif.
        move : v_buff to is_fieldcatalog-scrtext_s ,
               v_buff to is_fieldcatalog-scrtext_m ,
               v_buff to is_fieldcatalog-scrtext_l ,
               v_buff to is_fieldcatalog-reptext .
        modify it_fieldcatalog from is_fieldcatalog.
      endloop.
    * Modify the fieldcatalog.
      call method obj_grid->set_frontend_fieldcatalog
           exporting it_fieldcatalog = it_fieldcatalog.
    * Refresh the display of the grid.
      call method obj_grid->refresh_table_display.
    endform.                     " P_MODIFY_HEADER

  • How do I loop through tables, not columns in a table?

    Sorry if this is a long one. My problem is actually quite simple. I am trying to write either an ad hoc PL/SQL block or a stored procedure to loop 18 times (thru 18 tables) and perform a SQL query on those tables, returning 18 resultsets. I would like the results to show up on the screen (or in a spool file, whatever).
    So far I have tried 3 different approaches, none of which have worked.
    1. I tried to assign the select query to a variable (qry) and use EXECUTE IMMEDIATE qry. This forced me thru a variety of errors to declare variables and assign the result to them--EXECUTE IMMEDIATE qry into nm0, nm1, nm2...
    The problem with that was the resultset returned more than the variable was built for as there might be no rows returned, or it might be a thousand rows of data. So I tried changing the variables to VARRAYS, but it gave me a type mismatch as the underlying columns were NUMBER and VARCHAR2.
    DECLARE
         ctr number;
         TYPE NUMLIST IS VARRAY (1000) OF NUMBER;
         TYPE VARLIST IS VARRAY (1000) OF VARCHAR2(15);
         nm0 NUMLIST NOT NULL DEFAULT 1;
         nm1 VARLIST;
         nm2 NUMLIST NOT NULL DEFAULT 1;
         nm3 VARLIST;
         nm17 NUMLIST NOT NULL DEFAULT 1;
         qry VARCHAR2(2000) := 'klx_uln_p000_cells';
    BEGIN
    FOR ctr IN 1..17 LOOP
         IF ctr &lt; 10 THEN
              qry := 'SELECT
              A.DIM_0_INDEX,
              S0.SYM_NAME,
              A.DIM_1_INDEX,
              S1.SYM_NAME,
              A.DIM_2_INDEX,
              S2.SYM_NAME,
              A.DIM_3_INDEX,
              S3.SYM_NAME,
              A.NUMERIC_VALUE,
              B.NUMERIC_VALUE
              FROM
              KHALIX.klx_uln_p00'||ctr||'_cells A,
              KHALIX.klx_ucn_p00'||ctr||'_cells B,
              KHALIX.KLX_MASTER_SYMBOL S0,
              KHALIX.KLX_MASTER_SYMBOL S1,
              KHALIX.KLX_MASTER_SYMBOL S7
              WHERE
              A.DIM_0_INDEX=B.DIM_0_INDEX AND
              A.DIM_1_INDEX=B.DIM_1_INDEX AND...
              A.DIM_7_INDEX=S7.SYM_INDEX';
         ELSE
              qry := 'SELECT
              A.DIM_0_INDEX...
              A.DIM_7_INDEX=S7.SYM_INDEX';
         END IF;
         BEGIN
         dbms_output.put_line('SELECT FOR KLX_ULN_P00'||ctr||'_CELLS');
         dbms_output.put_line(nm16);
         dbms_output.put_line(nm17);
         EXECUTE IMMEDIATE qry into nm0,nm1,nm2,nm3,nm4,nm5,nm6,nm7,nm8,nm9,nm10,nm11,nm12,nm13,nm14,nm15,nm16,nm17;
    --     dbms_output.put_line(qry);
         dbms_output.put_line(nm16);
         dbms_output.put_line(nm17);
         EXCEPTION
              WHEN NO_DATA_FOUND THEN
                   dbms_output.put_line('No data found for Query '||ctr);
         END;
    END LOOP;
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
              dbms_output.put_line('No data found for Query '||ctr);
    END;
    2. So then I used REF CURSOR to create a stored procedure and return the values. That allowed me to run my query AND tokenize the tablenames with a counter so that it would loop through the different tables! However, I still could not get it to display the results without going to SQL Plus and typing 'print c;'.
    3. So, finally I tried to create a looping wrapper around the ref cursor to have some variable (ctr) increment so my query would get performed on table0_cells through table17_cells. This, too, did not work.
    If I manually go to SQL Plus and type:
    variable ctr number
    begin
    :ctr := 1;
    end;
    exec dupe_find(1,:c);
    it will execute for the first table (klx_uln_p001_cells) and I can then type 'print c' to see what was returned. But when I try putting this within a wrapper PL/SQL block with a Loop to make ctr go from 0 - 17 (to loop through table_names klx_uln_p000_cells to klx_uln_p017_cells), it does not work.
    Help! It should be very simple to loop through tables, shouldn't it? I just want a script that will loop through tables, perform a query on each table and display the results. For some reason, I can only find documentation examples on looping through columns that are all in the same table.
    Dave

    Here's a working example using your first strategy ...
    create table t1 (id number);
    create table t2 (id number);
    insert into t1 values (100);
    insert into t1 values (101);
    insert into t2 values (200);
    insert into t2 values (201);
    declare
    v_table_name user_tables.table_name%type;
    type ttab_id is table of t1.id%type index by binary_integer;
    tab_id ttab_id;
    begin
    for i in 1 .. 2 loop
    v_table_name := 't' || i;
    execute immediate 'select id from ' || v_table_name
    bulk collect into tab_id;
    dbms_output.put_line('query from ' || v_table_name);
    for j in 1 .. tab_id.count loop
    dbms_output.put_line(tab_id(j));
    end loop;
    end loop;
    end;
    There are many other ways to do this (especially if you need to do more than just print out the data).
    Richard

  • How to put image in table selection column in advanced table

    i need to put some image(not a picture, its just a traingalur shape image with different colour which indicates some messages to the user if suppose user adds a data which is duplicate with other row or he may copy existing row and dont change it.) can any one give me an idea of how to achieve this

    Are you looking for image in selection column or as a separate column?
    --Shiv                                                                                                                                                                               

  • How can I save a table with column headers?

    Hi
    I want to save the content in table to a text file. I used Write file.vi for doing that but the column headers didn't be saved. My column headers are changed depends on my testing result so that the column number is not fixed. Any suggestions?
    Bill.

    You can retrieve column headers with the ColHdrs[] table property and save them to disk before the table contents.
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can I display a table(with column Header) on the frame(contentPane)?

    (Can dynamically: Insert,remove,modify )
    I have no idea which class I need.

    here's a handy link
    [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]tables
    and look into javax.swing.table.TableModel

  • How do I get and set column attributes in a table or a treetable with Java?

    Using 11.1.1.4.0
    Hi,
    How do I get and set column attributes in a table or a treetable with Java? For a simple example, say I have a table and want certain roles to see all columns (including address), and other roles can see only certain columns (no address). In a Java method, I want to test if a table's column visible attribute is true and if so, set it to false before rendering it.
    Thanks in advance,
    Troy

    Hi,
    this use case would be a perfect example for using seeded MDS customization. Instead of checking what users are allowed to see or not upon rendering time, you have a customization class and thus the framework doing this for you.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/31-mds-sample-169173.pdf
    In this paper and sample, specific users see different layouts. It also contains a customization class that shows how this can leverage ADF Security
    Frank

  • How can I get the table name of my column?

    I'm using the JDK 1.3 trying to get a table name of a column from a result set. Regardless of what driver I'm using (ODBC Bridge/Oracle) I always get a null returned. Does this method work?
    If not, if I'm doing an SQL query that uses more than 1 table and each table has a return of the same column name, how do I distinguish which table the column is from. Thanks

    You can use ResultSetMetaData interface and method
    String getTableName(int column)
    This should return you the table name.
    To get ResultSetMetaData object, you can use
    ResultSetMetaData getMetaData()
    method of ResultSet interface.
    HTH

  • How to get the name of the column returning from reslut set

    for the below code how can i get the table B column names?
    Thank you.
    stm = con.createStatement();
    rs = stm.executeQuery("select a.title, b.* from Tbl_Questions a, Tbl_Answers b where b.id=" + answerId +" and b.questionId=a.id");
    if( rs.next() ) {
    answer.setId(answerId);
    answer.setQuestionId(rs.getString("b.questionId"));
    answer.setQuestionTitle(rs.getString("a.title"));
    answer.setTitle(rs.getString("b.title"));
    answer.setInputType(rs.getString("b.inputtype"));
    }

    Column names may be output with meta data.
    DatabaseMetaData metadata = null;
      Class.forName("oracle.jdbc.driver.OracleDriver");
      String url="jdbc:oracle:thin:@localhost:1521:ORCL";
      Connection currentConnection = DriverManager.getConnection(url,
                         "oe", "");
      metadata = currentConnection.getMetaData();
      String[] names = {"TABLE"};
      ResultSet tables = metadata.getTables(null,"%", "%", names);
      while (tables.next()) {
      String tableName = tables.getString("TABLE_NAME");
      String tableSchema = tables.getString("TABLE_SCHEM");
      String tableType = tables.getString("TABLE_TYPE");
      System.out.println("Table Name:"+tableName+ " Table Schema: "+tableSchema+ " Table Type: "+tableType);
       ResultSet columns = metadata.getColumns(null, "%", tableName, "%");
    while (columns.next()) {
      String columnName = columns.getString("COLUMN_NAME");
      String datatype = columns.getString("TYPE_NAME");
      int datasize = columns.getInt("COLUMN_SIZE");
      int nullable = columns.getInt("NULLABLE");
      System.out.println("Column Name: "+columnName+ " Data Type: "+datatype+ " Data Size: "+datasize+" Nullable: "+nullable);
        }

  • MSS ECM - how to retrieve custom OADP column in Webdynpro java application

    Great day to all,
    We have created custom OADP column for MSS ECM planning in SPRO.
    In Portal, ECM Plan Table, the column is visible. User enters values into that and toggles the tabstrip.
    Before submitting, i need to capture that value in Webdynpro java.
    My Question is,
    How can i make use of that column in my ECM Application using webdynpro java??
    or how can i retrieve the custom OADP columns in webdynpro java with out using RFC??
    Need ur great help... thanks alot in advance...
    Thanks
    Malla

    In OADP ,there are two types of columns , functional column which cannot be edited in web dynpro java application and another type is application column which can be edited in application and the value of this column is handled in application using rfc enabled function module. MSS ECM comes with certain application column whose values are handled in MSS-ECM application . If you are trying to add custom application column you will have to handle that column value in your Z function module and also at OADP level you should not configure supply function for that column.
    In order to call custom Z function module to handle custom application column I would suggest to create a seperate Software component and development component  and in that handle the logic for calling Z Function module. Also you will have to define the usage of custom Development component in the MES-ECM standard component.

  • Flow of tables information between sap and java

    How should i pass the table information from sap to java.
    and how to process the data of a table in the java program. i had seen the examples of JCO. BUT I IS VERY CONFUSING (BCOZ I DON'T KNOW JAVA).
    PLZ IF U DON'T MIND SEND ME CODE SNIPPET TO
    1.GET THE TABLE INTO THE JAVA PROGRAM
    2.PROCESSING THE TABLE INFORMATION IN JAVA PROGRAM
    3.MODIFYING THE TABLE INFORMATION IN JAVA PROGRAM
    4.SENDING BACK THE TABLE TO SAP FROM JAVA PROGRAM

    hi,Kondani
    as JCO offers both Client side and server Side programming.
    you can use JCO to connect SAP ABAP.outbound and inbound.
    1) JCO example 5 is about Server side programming java code. And you can see the data mapping is this example.And you must use sm59 to define the connections in SAP before you start.
    2) example 1 is about client side programming.
    try example 1 first. you can get a table from SAP using BAPI.
    Lots of JCO weblog you can see here
    https://www.sdn.sap.com/sdn/search.sdn?contenttype=url&query=jco&selected=9&content=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fSDN!2fiViews!2fWCM!2fcom.sap.sdn..wcm.search.search_adv%3Fprttheme%3DCSIN%26QueryString=jco%26SearchPluginName=sdn_weblog%26SelectedCustomProps=resourcetype(value=sdn_weblog)
    Regards

  • Flow of tables informaion between sap and java

    How should i pass the table information from sap to java.
    and how to process the data of a table in the java program. i had seen the examples of JCO. BUT I IS VERY CONFUSING (BCOZ I DON'T KNOW JAVA).
    PLZ IF U DON'T MIND SEND ME CODE SNIPPET TO
    1.GET THE TABLE INTO THE JAVA PROGRAM
    2.PROCESSING THE TABLE INFORMATION IN JAVA PROGRAM
    3.MODIFYING THE TABLE INFORMATION IN JAVA PROGRAM
    4.SENDING BACK THE TABLE TO SAP FROM JAVA PROGRAM

    hi,Kondani
    as JCO offers both Client side and server Side programming.
    you can use JCO to connect SAP ABAP.outbound and inbound.
    1) JCO example 5 is about Server side programming java code. And you can see the data mapping is this example.And you must use sm59 to define the connections in SAP before you start.
    2) example 1 is about client side programming.
    try example 1 first. you can get a table from SAP using BAPI.
    Lots of JCO weblog you can see here
    https://www.sdn.sap.com/sdn/search.sdn?contenttype=url&query=jco&selected=9&content=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fSDN!2fiViews!2fWCM!2fcom.sap.sdn..wcm.search.search_adv%3Fprttheme%3DCSIN%26QueryString=jco%26SearchPluginName=sdn_weblog%26SelectedCustomProps=resourcetype(value=sdn_weblog)
    Regards

  • How to manage scrolling in Table Control

    Hi,
    I have one scenario in which i have one table control in that one column contains check boxes. After i check, some check boxes in  some rows and press scrolling button means the selection previously made goes off. I want the selection remains selected.
    Please any one suggest me how to manage this.
    Regards,
    Mithun.

    Your PAI flow logic should be following this type of structure:
    process after input.
      module at_exit_command at exit-command. "don't exit here if you want TC data changes
      module d9999_before_tc.
      loop with control tc_9999.
        chain.
          field:
            gs_9999_tc-sel,
            gs_9999_tc-checkbox.
          module d9999_line_tc_handler.  "hold onto TC row data in here
        endchain.
      endloop.
      module d9999_user_command. 
      module d9999_pai_scroll.  "scroll the table control
    As noted above, you need to catch the values of your checkboxes within the loop / endloop for the table control, and do any scrolling after this.
    Jonathan

Maybe you are looking for

  • Price Variance Report

    Hi Everyone, Recently I have got a request for create report that generates a list of material masters for a specific plant and between two specified dates that have had Standard Price changes or a new part that have been created during that date ran

  • How to Filter & Sort on Cached view object data?

    We are using JDeveloper 9.0.3.4 and implemeting a Struts/JSP application that query's via view object on one table. Is it possible to sort and order by on the view object's cached data? How does one do this? Thanks Natalie

  • A way to show what notes/chords are playing in transport bar?

    Hey everyone, You can see what chord or note you are playing in the transport bar when you are recording, but is there a way to display what note is being played after you have recorded and playing back the midi/instrument track?

  • List of function module used for cluster table

    hi,   I want to know the list of all function module used th extract data from cluster table such as such MONI, STXL. thanks, john dias

  • Direction/tutorial search for Pop up menus

    I need to learn how to do sub menus on a vertical navigation bar and I don't know where to start as the books I have do not go into that. If someone could direct me to a tutorial, or where I can find tutorials, that would be great. thank you!