How to do Single Column Visble and Invisible

Hi All,
I tried following code for doing Column visible and invisible. But in this when i click single columne all values invisible. I want when i again click on that Column i want to bind previuse value.
Means i have taken one Matrix and in that Matrix of first column i taken ChooseFromList and on this i fill second column also. When i click on second column it invisible. I want when i click again i want bind that value which i got on ChooseFromList.
I tried hardcode value "X". That line commented in code.
Can anybody suggest me how to do it ? How to get again that value ?
Code is,
If pVal.ColUID = "V_0" Then
                For i = 0 To matrix.RowCount - 2
                    If matrix.Columns.Item("V_0").Cells.Item(i + 1).Specific.Value = "" Then
                        '   matrix.Columns.Item("V_0").Cells.Item(i + 1).Specific.Value = "X"
                    Else
                        matrix.Columns.Item("V_0").Cells.Item(i + 1).Specific.Value = ""
                    End If
                Next
            End If

Hi,
I guess i understood now.. Plz bind all ur cols in the matrix u can take a look at the following code snippent to bind the cols
oForm.DataSources.UserDataSources.Add("Usr1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 50)
objMatrix = oForm.Items.Item("matIndent").Specific
oCol = objMatrix.Columns.Item("V_20")
oCol.DataBind.SetBound(True, "", "Usr1")
oForm.DataSources.UserDataSources.Add("Usr2", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 50)
objMatrix = oForm.Items.Item("matIndent").Specific
oCol = objMatrix.Columns.Item("V_21")
oCol.DataBind.SetBound(True, "", "Usr2")
Execute this code after the form is loaded. (U can use the load Event or if the form is loaded with the Menu u can also use the menu event.)
Hope it helps,
Vasu Natari.

Similar Messages

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • How to Sort single column in webdynpro table

    Hi all
    I have requirement as follows.
    i have webdynpro table with the following columns like Date,firstname,lastname,address etc.
    now when i run the the application the table is populating the data at runtime that is fine.
    i need as soon as table is loaded , Date field in the table should be displayed the values in the decending order...i have the requirement as follows...
    how to sort the single column in table ...by default the values of the column displayed with decending order as soon as table displays at runtime....i dont want to click any button specific button to do the sort for that column
    Regards
    bindu

    Hi, I solved the same problem by modifying the sort() method in the default TableSorter class so that it takes a column id and direction rather than an event.
    I assume you have read the TableSorter tutorial.
    Like this. (This was done on nw ce 7.1 btw but may work on older versions as well.
    Oh and then you just call the sort method right after you have made the request
    //Code that goes into controller/view to execute sorting
    wdContext.currentContextElement().getPensionplanTableSorter().sort("MyColumnId", "Up", wdContext.nodePensionPlan());
    //Part of TableSorter.java
    //The original method that needs an event. Now it just calls the new method
    public void sort(IWDCustomEvent wdEvent, IWDNode dataSource) {
         // find the things we need
         String columnId = wdEvent.getString("selectedColumn");
         String direction = wdEvent.getString("sortDirection");
         sort(columnId, direction, dataSource);
    //This is the new method.
    public void sort(String columnId, String direction, IWDNode dataSource) {
         if (columnId == null || direction == null ) {
              return;
         IWDTableColumn column = (IWDTableColumn) table.getView().getElement(columnId);
         NodeElementByAttributeComparator elementComparator =
    (NodeElementByAttributeComparator) comparatorForColumn.get(column);
         if (elementComparator == null){
         //not a sortable column
              column.setSortState(WDTableColumnSortDirection.NOT_SORTABLE);
              return;
         // sorting
         elementComparator.setSortDirection(WDTableColumnSortDirection.valueOf(direction));
         dataSource.sortElements(elementComparator);

  • How to access single column in table?

    Hi,everybody!
    How to access a single column in table.
    I sorted my table with standard TableSorter.
    Now I need to get one column from this table to
    do something with it's data.How do I get it?
    Regards,
    Michael

    Hi Michael,
    If you just want to retrieve the data, you could use the following code.
    //Get the node which the table is bound to
    IWDNode node = wdContext.nodeTable();
    //iterate thru the elements
    for(int i = 0 ; i<node.size();i++)
      IWDNodeElement ne = node.getElementAt(i);
      Object value = ne.getAttributeValue("<column name>");
      //Here you have the data in the value variable
      //and you can manipulate this now
    Regards,
    Sudeep

  • How to use single column in a group by clause

    hi frs
    i hve used sum function in a sql how to use a single column in a query.
    for ex
    select sum(sal),ename,job,deptno,empno from emp
    group by deptnowhether its possible to use single column in a group by class.
    i want like this because in my custom report i need it. Report query has more than 30 column so its not possible to use 30 columns in a group by.
    pls help.
    Thanks
    Rajesh

    Maybe something like this -
    Select ename, job, deptno, empno, sal, col1, col2, col3, col4 ......, coln
    From
    Select SUM(sal) sal, deptno deptno_i
    From Emp
    Group By deptno
    ,Emp
    Where deptno = deptno_i
    Shailender Mehta

  • How to put the column name and variable value in the alert message.

    Dear,
    how can i put the column name and variable value in the alert message text. i want to display an alert which tell the user about the empty textboxes. that these textboxes must be filled.
    Regards:
    Muhammad Nadeem
    CHIMERA PVT. LTD.
    LAHORE
    [email protected]

    Hello,
    The name of the item that fires the current trigger is stored in the :SYSTEM.TRIGGER_ITEM system variable.
    The value contained in this item can be retrived with the Name_In() built-in
    value := Name_In( 'SYSTEM.TRIGGER_ITEM') ;
    LC$Msg := 'The item ' || :SYSTEM.TRIGGER_ITEM || ' must be entered' ;
    Set_Alert_Property('my_alert_box', ALERT_MESSAGE_TEXT, LC$Msg ) ;
    Ok := Show_Alert( 'my_alert_box' ) ;
    ...Francois

  • How to avoid/hide column header and ---- in sql command output

    Dear Friends,
    I have a script to get the list and delete datafiles
    script is : (del.sql)
    spool d:\del.bat
    select 'rm -r '||name from v$datafile;
    spool off;
    script output (del.bat)
    'RM-R'||NAME
    rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSTEM01.DBF
    rm -r C:\ORACLE10GDB\ORADATA\TEST\UNDOTBS01.DBF
    rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSAUX01.DBF
    rm -r C:\ORACLE10GDB\ORADATA\TEST\USERS01.DBF
    I don't want to have the column header and ---- which is present before the rm -r commands in my output spool file (del.bat)
    how can i do it?Please suggest
    Regards,
    DB

    I have a script to get the list and delete datafiles Yikes, what are you doing here?
    Can you use rm on Windows?

  • How to convert single column into single row

    I need to convert single column into single row having n no.of.values in a column. without using case or decode. I need a query to display as below.
    emp_id
    100
    101
    102
    102
    103
    200
    I need output like 100,101,102,103,104.........200.

    I assume you want to convert 200 rows with one column into one row with 200 columns. If so, this is called pivot. If you know number of rows (max possible number of rows) and you are on 11G you can use PIVOT operator (on lower versions GROUP BY + CASE). Otherwise, if row number isn't known, you can use dynamic SQL or assemble select on clent side. Below is example emp_id = 1,2,..5 (to give you idea) and you are on 11G:
    with emp as (
                 select  level emp_id
                   from  dual
                   connect by level <= 5
    select  *
      from  emp
      pivot(
            max(emp_id) for emp_id in (1 emp_id1,2 emp_id2,3 emp_id3,4 emp_id4,5 emp_id5)
       EMP_ID1    EMP_ID2    EMP_ID3    EMP_ID4    EMP_ID5
             1          2          3          4          5
    SQL>
    SY.

  • How to get the column name and table name with value

    Hi All
    I have one difficult requirement
    I have some column values and they have given some alias column names but i need to find the correct column name and table name from the database.
    For example value is "SRI" and i dont know the table and exact column name so is there any possibilities to find the column name and table name for the given value
    Thanks & Regards
    Srikkanth.M

    Searching all the database for a word...
    Courtesy of michaels...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    11g upwards
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from (select column_name,
                   table_name,
                   'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
              from cols
             where table_name in ('EMP', 'DEPT')),
           xmltable (str columns result varchar2(10) path '.')
    TABLE_NAME                     COLUMN_NAME                    SEARCH_STRING                    RESULT   
    DEPT                           DNAME                          es                               RESEARCH 
    EMP                            ENAME                          es                               JAMES    
    EMP                            JOB                            es                               SALESMAN 
    EMP                            JOB                            es                               SALESMAN 
    4 rows selected.

  • How do I obtain column names and types?

    I am using Visual Studio C++ to connect and query an Oracle database using SQL commands. My code works, but I don't fully understand it because I'm new to Oracle and it is modified example code.
    I need to obtain column names and types for a known table. The "Describe" SQL command fails when I call ->Execute, claiming this is an invalid SQL statement, although the same statement works when sent directly via sqlplus.
    I need column names and types, but they don't have to come through Describe.

    Hi,
    Desc isn't really a SQL command. Rather its a command specific to Oracle. Thats why it will work in SQLPlus and not anywhere else. If you want the column information for a table you can user either the user_tab_columns or all_tab_columns, depending on which schema the table is in. The query would look like:
    select * from all_tab_columns where table_name = 'BONUS'
    Sanjay

  • How to integrate Single Sign-On and JSF?

    Hi all,
    We are going to develop a web application using Oracle technologies, including ADF and JSF.
    But we´ll need to secure our website using Oracle Identity Manager (Single Sign-On). I am having difficulties to find any resource explaining how to do that.
    Also, the IM (SSO) will run on a Oracle AS instance and our web app (ADF+JSF) will run on a separete OC4J instance, due to ADF version. Is this a problem?
    Thanks

    We too are in the process of implementing iStore with SSO features.
    And if you believe me it seems to me as nightmare.
    In our scenerio we are intgrating this SSO with Third party access control too (AD and Siteminder). I would request you to please respond me on the following mail id , so we can share our experince which will help us in our implementation
    [email protected]
    regards and thanks in advance
    Vikas Deep

  • How to get the column name and table name from xml file

    I have one XML file, I generated xsd file from that xml file but the problem is i dont know table name and column name. So my question is how can I retrieve the data from that xml file?

    Here's an example using binary XML storage (instead of Object-Relational storage as described in the article).
    begin
      dbms_xmlschema.registerSchema(
        schemaURL       => 'my_schema.xsd'
      , schemaDoc       => xmltype(bfilename('TEST_DIR','my_schema.xsd'), nls_charset_id('AL32UTF8'))
      , local           => true
      , genTypes        => false
      , genTables       => true
      , enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS
      , options         => dbms_xmlschema.REGISTER_BINARYXML
    end;
    genTables => true : means that a default schema-based XMLType table will be created during registration.
    enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS : indicates that a repository resource conforming to the schema will be automatically stored in the default table.
    If the schema is not annotated, the name of the default table is system-generated but derived from the root element name :
    SQL> select table_name
      2  from user_xml_tables
      3  where xmlschema = 'my_schema.xsd'
      4  and element_name = 'employee';
    TABLE_NAME
    employee1121_TAB
    (warning : the name is case-sensitive)
    To annotate the schema and control the naming, modify the content to :
    <?xml version="1.0" encoding="UTF-8" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
      <xs:element name="employee" xdb:defaultTable="EMPLOYEE_XML">
        <xs:complexType>
    Next step : create a resource, or just directly insert an XML document into the table.
    Example of creating a resource :
    declare
      res  boolean;
      doc  xmltype := xmltype(
    '<employee>
      <details>
        <emp_id>1</emp_id>
        <emp_name>SMITH</emp_name>
        <emp_age>40</emp_age>
        <emp_dept>10</emp_dept>
      </details>
    </employee>'
    begin
      res := dbms_xdb.CreateResource(
               abspath   => '/public/test.xml'
             , data      => doc
             , schemaurl => 'my_schema.xsd'
             , elem      => 'employee'
    end;
    The resource has to be schema-based so that the default storage mechanism is triggered.
    It could also be achieved if the document possesses an xsi:noNamespaceSchemaLocation attribute :
    SQL> declare
      2 
      3    res  boolean;
      4    doc  xmltype := xmltype(
      5  '<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      6             xsi:noNamespaceSchemaLocation="my_schema.xsd">
      7    <details>
      8      <emp_id>1</emp_id>
      9      <emp_name>SMITH</emp_name>
    10      <emp_age>40</emp_age>
    11      <emp_dept>10</emp_dept>
    12    </details>
    13   </employee>'
    14   );
    15 
    16  begin
    17    res := dbms_xdb.CreateResource(
    18             abspath   => '/public/test.xml'
    19           , data      => doc
    20           );
    21  end;
    22  /
    PL/SQL procedure successfully completed
    SQL> set long 5000
    SQL> select * from "employee1121_TAB";
    SYS_NC_ROWINFO$
    <employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceS
      <details>
        <emp_id>1</emp_id>
        <emp_name>SMITH</emp_name>
        <emp_age>40</emp_age>
        <emp_dept>10</emp_dept>
      </details>
    </employee>
    Then use XMLTABLE to shred the XML into relational format :
    SQL> select x.*
      2  from "employee1121_TAB" t
      3     , xmltable('/employee/details'
      4         passing t.object_value
      5         columns emp_id   integer      path 'emp_id'
      6               , emp_name varchar2(30) path 'emp_name'
      7       ) x
      8  ;
                                     EMP_ID EMP_NAME
                                          1 SMITH

  • How to make a tabstrip visible and invisible again?

    Hi
    I have a GUI with Fields, Texts, Checkboxes, Radio buttons, a Button and of
    course a tabstrip with 7 tabs.
    Before I want to show some data in the tabs of the tabstrip, I have to fill the fields, check a radio button and checkboxes. After filled all entries needed, I will start
    the preparation of the data with clicking on the button.
    Before the click on the button the tabstrip has to be invisible. After the preparation
    of the data I will make the tabstrip with its tabs visible.
    All this is in the same dynpro (e.g. 0100). I don't build it together with to dynpros.
    I tried with LOOP AT SCREEN ... ENDLOOP, but the tabstrip does not appear.
    The only attribute accessable is "activetab".
    How to make that happen?
    Thanks for your help
    Frowin

    Hi
    Suppose you have 3 screen:
    - 1 main screen (100)
    - 2 subscreen    (101, 102)
    In the subscreen 101 you need to design your tabstrip (so you need to move your tabstrip from main screen), the subscreen 102 has to be empty.
    In the PBO of screen 100:
    PROCESS PBO.
    MODULE SET_SUBSCREEN.
    CALL SUBSCREEN SUBAREA INCLUDING V_REPID V_SCREEN.
    In the module SET_SUBSCREEN, you insert the code you need to choose the right subscreen:
    IF _SHOW = 'X'.
      V_SCREEN = '0101'.
    ELSE.
      V_SCREEN = '0102'.
    ENDIF.
    The flag _SHOW is setted in PAI after pressing the button:
    MODULE USER_COMMAND.
        CASE OK_CODE.
           WHEN 'SHOW'. _SHOW = 'X'.
    Max
    Edited by: max bianchi on Jan 9, 2008 5:03 PM

  • SQL help, how to group by column A and then get top frequency of column B?

    Assuming the following table, operation represents each kind of transaction operation
    table operation employee other column c
    '<' id1
    '<' id1
    '<' id2
    '*' id3
    '/' id1
    question, for each operation, which employee do the most? which employee do the 2nd most?
    I thought I need to group by operation first, and then get the frequency of employee, and get the top 1 or top 2 frequency highest.
    But I am stuct, and do not know how to write the sql.

    998408 wrote:
    Assuming the following table, operation represents each kind of transaction operation
    table operation employee other column c
    '<' id1
    '<' id1
    '<' id2
    '*' id3
    '/' id1
    question, for each operation, which employee do the most? which employee do the 2nd most?
    I thought I need to group by operation first, and then get the frequency of employee, and get the top 1 or top 2 frequency highest.
    But I am stuct, and do not know how to write the sql.Welcome to OTN. Ops! posted in wrong forum. Just post in {forum:id=75}. Before posting there close this thread marking as answered.
    If someone's response is helpful or correct, please mark it accordingly.*

  • How to fix the column length and table length?

    Hi Experts/Gurus,
    I want to fix the column lenght so that if data exceeds it should be in the same colum. But the size of the table should not get changed.. I used the width property of both table and column. But its not working..
    Regards,
    Yugesh

    Hi Yugesh,
    For column wrapping you can use the SET_WRAPPING of cl_salv_wd_header and the data.....you have got cell editor for that column right...then using the cell edtior reference you can get the specific cell tyep(like cl_salv_wd_text_view type check this)
    this is object reference and you can use the set_wrapping of this class. using this you can get the wrapping functionality for the data also....
    DATA: lr_column TYPE REF TO cl_salv_wd_column,
               lr_column_header type ref to cl_salv_wd_header,
               lr_editor type ref to cl_salv_wd_uie,
               lr_textview type ref to cl_salv_wd_uie_text_view.
    wd_this->alv_value->if_salv_wd_table_settings~set_fixed_table_layout( ABAP_TRUE ).
    lr_column = wd_this->alv_value->if_salv_wd_column_settings~get_column( 'EDITION' ).
    lr_column->set_width( '55' ).
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_wrapping( abap_true).
    lr_editor = lr_column->get_cell_editor( ).
    lr_textview ?= lr_editor.
    lr_textview->set_wrapping( abap_true ).
    Now for the column and it's data the wrapping is set...
    Regards,
    Lekha.
    Edited by: Lekha on Nov 16, 2009 2:12 PM

Maybe you are looking for