LOV in the table column

Hi,
I have a LOV in the table column. I want to disable/enable the LOV on the basis of the values of other column.
How can i do that?
My JDeveloper version is 11.1.1.6.0
Thanks
-Harish

Hi
Thanks for your reply.
I found the problem, now it is working.
Previosly i was using readonly parameter in the selectOneChoice list like
readOnly="#{bindings.EnabledFlag.inputValue eq 'ACTIVE'}"
but when i changed this like
readOnly="#{row.EnabledFlag eq 'ACTIVE'}"
Then it worked. Because previously it was comparing the value of EnabledFlag of the selected row.
That is why all the rows are gettting enabled or disabled by the changing of the selected row depending upon the value of the EnableFlag.
Thanks anyways for the help
Thanks
Harish

Similar Messages

  • The order of the table columns to Srini Chavali

    OK I made a mistake Srini Chavali.
    So why dont you try to help me now beyond just warn me about burocratic issues, what you really should had done instead just to block the answers of my former question ?
    The question is:
    How to influence the order of the table columns in time of transformation logic to relational ?
    Nelson Alberti da Rosa

    because exist an order among primary key columns that was definied in the logical model and it he can't see that.fixed :
    function addPKcolumns(list,table){
         pk = table.getPK();
         if(pk!=null){
              pcols = pk.getColumns();
              for(var i = 0;i<pcols.length;i++){
                   col = pcols;
                   //in fact don't need this check, because PK columns are processed first
                   if(!list.contains(col)){
                        list.add(col);
    function addFKcolumns(list,fkeys){
         for(var k=0;k<fkeys.length;k++){
              fcols = fkeys[k].getColumns();
              for(var i = 0;i<fcols.length;i++){
              col = fcols[i];
              if(!list.contains(col)){
                   list.add(col);
    //adds mandatory or oprional columns to list depending on mand parameter
    function addMandatoryOptColumns(list,cols, mand){
         for(var i = 0;i<cols.length;i++){
              col = cols[i];
              if(col.isMandatory() == mand && !list.contains(col)){
                   list.add(col);
    tables = model.getTableSet().toArray();
    list = new java.util.ArrayList();
    for (var t = 0; t<tables.length;t++){
         list.clear();
         table = tables[t];
         cols = table.getElements();
         // add PK columns to list
         addPKcolumns(list,table);
         // add FK columns to list
         addFKcolumns(list,table.getFKAssociations());
         //add mandatory columns
         addMandatoryOptColumns(list,cols,true);
         //add optional columns
         addMandatoryOptColumns(list,cols,false);
         //use list to reorder columns
         ord_cols = list.toArray();
         for(var n = 0;n<ord_cols.length;n++){
              table.moveToIndex(ord_cols[n],n);
         //prevent reordering from enginnering, can be changed with UI
         table.setAllowColumnReorder(false);
         table.setDirty(true);

  • How to display the sorting arrows in the table column header

    Hi
    I am doing a sorting for some columns from the click of the table column headers, In Developer studio, we are able to view the up and down arrows, I need that also to be made visible at run time, so that the user knows that there exists sorting based on that particular column. Is there any other way of doing it ? I cant place more than one control on the header or wrap the text to two lines..also. please clarify. thanks

    I assume you are using NW 04.
    The table column header contains a IWDCaption element which may display an icon and a text. See property IWDCaption.imageSource.
    The table tutorial might also be helpful.
    Armin

  • How to fix the table column header and resize the width of a table column?

    Hi all,
    I have the following two requirements,
    1) I need to wrap the table column header into two rows. I mean the header must be displayed in two rows.
    2) I need to to able to resize the width of the column. i.e The user should be able to drag the column width according to his requirement.
    Is this possible. Any help would be appreciated!
    Regards
    Kishan

    Hi Kishan,
    Refer to these links.They may ne useful for you.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80d81237-b780-2a10-d398-cc33af6bd75c
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30291df2-b980-2a10-0884-839c4f7f147e
    Regards,
    Sumangala

  • Using Alias for the table column

    Dear all,
       Can we use alias name for the table column while developing zreport.
    ie.,
      without using standard  table column name ( like mara-matnr ), i wish to use mat_num for matnr. So that, one can easily understand the column.
    Could you help me out in this regard.
    Thanks in Advance,
    S.Sridhar.

    yes you can declare in ur internal table like
    material_number like mara-matnr.

  • How can i indicate that the table columns have different size?

    How can i indicate that the table columns have different size?
    It is because i have a table that has several columns....but i would like to have the possibility to indicate the size for every column....could somebody help me please?
    Thanks,
    Mary

    Hi,
    don't know as much as I should about JTable, but it seems that using yourTable.getDefaultRenderer() could help you: if I clearly understood the javadoc notes, it returns an object inheriting from JLabel, so you should be able to use setHorizontalAlignment(int align) on it... no time to verify this, but I'd be thankfull if you tell me the results !!!
    Regards

  • How to bind a icon in the table column

    Hi All
        I have to bind a icon in a table column.

    Choose a table cell editor for that column that is able to display an icon, e.g. Caption, Image, LinkToAction
    Create a context attribute "iconURL" under the data source node of the table.
    Bind the corresponding property of the table cell editor, e.g. Image.source, to this attribute.
    At runtime, the data source node will have elements. Element at index i will be displayed in table row i.
    Set the "iconURL" attribute of each node element to the icon URL to be displayed in the table row.
    You can use the predefined icons by using an URL of the form "~sapicons/<icon_filename>", or you can put your icons inside folder src/mimes/components/<componentName> and use the filename as URL.
    Armin

  • Enable Inputfield in the table column even though the column is empty

    Dear Experts
    How to enable or disable a table column(it is an inputfield) dynamically.
    I done this and strugling to proceed from this point
    DATA lr_container TYPE REF TO cl_wd_uielement_container.
      DATA lr_table     TYPE REF TO cl_wd_table.
      DATA lr_view      TYPE REF TO if_wd_view.
      DATA lr_child     TYPE REF TO cl_wd_uielement.
      data : lr_col TYPE REF TO  CL_WD_TABLE_COLUMN.
      data : lr_inp TYPE REF TO cl_wd_input_field .
      lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
      lt_children = lr_container->get_children( ).
      CALL METHOD lr_container->get_child
        EXPORTING
          id        = 'ITEMS_TABLE'
          index     = 1
        RECEIVING
          the_child = lr_child.
      lr_table ?= lr_child.
    CALL METHOD lr_table->get_column
       EXPORTING
         id         = 'ZVPN_IT_INP'
         index      = '6'
       receiving
         the_column = lr_col.
    Upto this the code is working fine as per the requirement .Now the thing is in that in column we r having an input field which should be enabled dynamically
    Regards
    Arun

    Hi Arun.,
    For enabling and disabiling any field on the view, there is only procedure.
    1. Make an attribute of type 'ABAP_BOOL' in the context.
    2. Bind the enable property of the UI element to this attribute.
    3. Enable or Disable the UI element in the code.
    So for your question you can follow :
    1. Make an attribute 'ENABLE' in the context node bound to the table. Type ABAP BOOL.
    2. Bind 'ENABLE' property of the desired input field with this attribute.
    3. In WDDOMODIFYVIEW check your condition and based on the condition use set_attribute method of if_wd_context_node to change the value to 00 - None or 01 - Enabled.
    I hope your question is answered.

  • DATE format - while defining the table column

    Hi Friends,
    I came across a piece of code which was applying a TO_DATE() function on a date type column.
    I have two tables t1 and t2 and they have col1 and col2 columns respectively of type DATE
    t1
    col1 DATE
    t2
    col2 DATEalso there is a variable var1 and is defined as below:
    var1 DATE;now I have conditions as below in the code:
    AND to_date(t1.col1,'dd/mm/yyyy') = to_date(t2.col2,'dd/mm/yyyy')
    AND to_date(t1.col1,'dd/mm/yyyy') = to_date(var1,'dd/mm/yyyy')This code failed on Production with an error: ORA-01861 literal does not match format string
    I changed the code to remove TO_DATE() and it worked fine. Dev clarified that they used this function so that if the two columns or variable are in diff date format.,..they can be put in sync.
    e.g. if col1 is dd/mm/yyyy and col2 is mm/dd/yyyy then there will be an issue.
    My doubt is.. in a given environment if we are creating a table and defining a column of type DATE , or defining a variable of type DATE, can their format be different at any time? I think No.?
    In what scenario can the date format be different?
    Thanks,

    Having said that date format is only for display purposes, if you tend to avoid the error without changing the code then you can modify the NLS_DATE_FORMAT parameter at session level.
    SQL> alter session set nls_date_format = 'dd-mm-yyyy'
      2  /
    Session altered.
    SQL> select to_date(sysdate,'dd/mm/yyyy') from dual
      2  /
    TO_DATE(SY
    29-12-2008
    SQL> alter session set nls_date_format = 'mm-dd-yyyy'
      2  /
    Session altered.
    SQL> select to_date(sysdate,'dd/mm/yyyy') from dual
      2  /
    select to_date(sysdate,'dd/mm/yyyy') from dual
    ERROR at line 1:
    ORA-01843: not a valid month
    SQL> select to_date(sysdate,'mm/dd/yyyy') from dual
      2  /
    TO_DATE(SY
    12-29-2008Thanks,
    Karthick.

  • How to change the color of the table columns........

    Hi,
    I am new to the Jdeveloper and also for the adf components.Actually i am working with the project which has already designed.Now i have to change the look n feel.
    I want to change the color of the table colums.So could u tell me in which file i have to change and how.
    I put in the jdeveloper.css like this ......
    column.cell-number-band{
    color :Teal
    And in the adf-faces-config.xml i had only "oracle" type of skin.
    I have to finish the work tomarrow itself......
    So anybody helps me it will be greatfull me.

    Hi Frank,
    Thanks for the reply .I will try to create custom skin file.And one thing i tried to change the columns properties.I can see the changes on the Jdeveloper editor.But when i run on the server,I could't see the changes.....is there any way to change the column colors at run time????????
    I appreciate ur response......
    Thanks

  • How to put Hyperlink in the table column.

    HI,
    I want to put hyperlink(with underline) for the columns(column headers) of the table .I have created IWDAction for the column
    I want to put a underline for this hyperlink.
    I tried with IWDLinktoAction.But I am not getting the hyperlink with underline.
    Please suggest how to get the hyperlink with underline.

    Hi,
    U cant place a link to acction in headers.
    If you really need it you have to do it with some compromises by making use of either toolbar or a transparent container above your table.
    Regards
    Ayyapparaj

  • Remove/Hide sort for one of the table column

    Hi all,
       I have applied the sort functionality for the table control. But for only column i dont need the sort function.
      I have tried with the below code before doing sorting...but i dont see any result.... 
    ONACTIONSORT
    data : gr_col type ref to CL_WD_ABSTR_TABLE_COLUMN.
    CALL METHOD wd_this->table1->REMOVE_GROUPED_COLUMN
    EXPORTING
       id         = 'TABLECOLUMN'
       index      = '8'
    receiving
    THE_GROUPED_COLUMN = gr_col
    wd_this->table_control1->apply_sorting( ).. 
    Could somebody suggest me how can to remove the sort function for a particular column.
    Regards
    Sireesha.

    Hi manas,
      Thank u so much. Its working fine.
      points assigned to you....
    Regards
    sireesha.

  • Link_To_Action error in the Table column.

    Hi,
         I can't able to open my Table Pop-in.
         I want to display the Header data in the Main table.In the main table one column for "Link_to_Action".If i click the link,i want to display the Line Item detail in to the another table inside the Maintable.
         My Line Item detail is my TABLEPOPIN of my Main table.
       Actually i am getting error,once i click the "Link_to_Action" in the main table colum.
    <u>This is my error.</u>
    <b>The following error text was processed in the system TRN : Could not find attribute SELECTED_POPIN</b>
    kindly check the following code,i specified in the prog.
      <b> In "link_to_action" table column
    Event
    OnACTION:
    WD_context->set_attribute( name = <u>'SELECTED_POPIN</u>' value = 'TABLEPOPIN' ).</b>
    value = 'TABLEPOPIN' is my Tablepopin name.
    <u>name = ???</u> (simply i gave 'selected_popin',but i don't why we are giving this name,as  per std. example prog(WDR_TEST_TABLE-ROW_POPIN).i gave this name)
        Can any try to find out my problem.
       Thanks in Advance.
    Regards,
    Ravi.M

    Hi Ravi,
    You need to declare an attribute named SELECTED_POPIN in your context. This attribute is used to store then name of the popin and is bound to the selectedPopin property of your table (which has to display the popin). Then, in the link to action, you specify the name of the popin (in your case TABLEPOPIN) and set it to attribute SELECTED_POPIN.
    To remove the error, just declare an attribute with the name SELECTED_POPIN in the context of your view and bind the selectedPopin property of your table to this attribute.
    Regards,
    Neha
    <i><b>PS:Reward if helpful</b></i>

  • Activate only one cell in the table column

    Hi experts,
      I am facing a problem where in i need to allow only one cell for input in the complete table.
      Suppose i have 4 rows and 5 columns, and i want to allow only one field for input in the complete table based on a condition.
    Can someone help me how to achieve this?
    Regards,
    Madhu

    hi madhu,
           what you ca do is, have an extra attribute  in the node that is bound o the table, this attribute must be bound to the read only property of the cell. so according to your condition fill the attribute with 'X' or no value so that it will be in read only or editable mode.
    ---regards,
       alex b justin

  • Tableview setting to enable to select the table columns to display

    Hi All,
    In webdynppto in the table ALV display we have the settings option with which users can control what columns of the table to display and what columns to hide in the table display.
    Users can also control the columns of the display to show or hide in the display. Can any of you please clarify how we can do this with the tableview
    The tableview I am using is below what setting do I need to enable to get the column display/hide by users at runtime
    Thanks
    Karen
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
    <htmlb:page>
    <htmlb:form>
    <htmlb:tableView id = "tv1"
    visibleRowCount = "10"
    selectionMode = "lineEdit"
    table = "<%= flights %>"
    filter = "SERVER"
    sort = "server"
    iterator = "<%= iterator %>" />
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>

    hello,
    I do not think it's possible dynamically like ALV...on screen itself...
    to hide / display a column you can code in iterator class with some condition...
    Thanks,

Maybe you are looking for

  • Inserting & symbol to table through procedure

    I want to insert a data with & symbol into a table through the procedure. Is it possible. through the console i put set define off. it works fine on console. but in plsql i am unable to use set commands since it is a console command. please advice.

  • Need Help on How to Convert a Number Field to an Hour/Minute

    Post Author: syracuse2 CA Forum: Crystal Reports I have a field that shows a duration, i.e. 125.  I would like to convert the number of 125 to 2hr and 5 min.  Any suggestions on how to do this?

  • How could I get the Finish10 value from MS Project2010 Server_Reporting database

    I am trying to get the finish10 data from project server using SQL. But it seems the finish10 column is not in MSP_EpmAssignment_Userview or MSP_EpmTask_Userview. So could you please help me to find it? Thanks.

  • Message Reconcilia​tion Question

    I have a BlackBerry Curve (ATT&T) connected to a BES 4.1 SP4 on Exchange 2007 SP1 and having some questions about message reconciliation. I have messages in the 'messages' folder that will not reconcile after a force reconciliation on the device. How

  • New WDS Features

    Hey Wifi Guru's- I have a question about setting up WDS. In the latest code rev 12(15)JA, you can set the Access Points to do "Specified Discovery" this allows you to use a WDS anywhere on the network, no matter if it is in your subnet or not. Here i