OA Framework Enable/disable  columns conditionally in a table.

Hi
I have a requirement to enable / disalbe multiple coulmns of a row in a table.
For ex: A table in which user can enter items with a add row button. The table has item name and three othere columns new price, amount off and discount off. If user enter enters new price then other two columns should be disabled and vice versa.
I tried following:
I added a CO to the table and I registered PartialFireAction event for each of columns.
Each column is mapped to a PVO attribute ${oa.SpecialPricingPVO1.NewPriceEnable}, ${oa.SpecialPricingPVO1.amountEnable}, ${oa.SpecialPricingPVO1.percentOffEnable} etc.,
In the Event method code and PVO init method I'm setting the Boolean value for above PVO attributes. In the init of PVO I'm always getting the first row.
The problem I have is that the columns of all rows are getting the same boolean values based on latest row values. So if I enter values for AmountOff column then New Price and Percent Off are getting disabled for the latest row and for all other previous rows.
Can some body suggest how can I over come this problem? is there a way I can refer row number in SEPL attribute references?
Or suggestions on any other approach that works to enable / disable column in multiple rows would be great

In order to capture row level PPR events you need to trap the row which triggered the PPR event, pass the row reference and modify the value of the row accordingly.
if ("<ItemPPREventName>").equals(event))
// Get the identifier of the PPR event source row
String rowReference =
pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Serializable[] parameters = { rowReference };
// Pass the rowReference to a "handler" method in the application module.
am.invokeMethod("<handleSomeEvent>", parameters);
You need to do this in addition to the databinding which Tapash has specified in his last reply. For details on how to databind properties to a viewAttribute check the dev guide.

Similar Messages

  • Enable/Disable Column in a Advanced Bean Table

    Hi,
    I have 2 columns that needs to be enabled/disabled on a standard oa page PO Lines summary page.
    I went through couple of blogs/forums and found 2 approaches :-
    Approach 1
    1) Extended the standard VO POLinesMerge.
    2) Added a attribute column DeriveDisplayFlag of type VARCHAR2 . This call a database function and will return Y or N
    3) Added a attribute of type ShowAdditionalColumn boolean. the get method of this attribute returns TRUE if DeriveDisplayFlag is 'Y' otherwise returns FALSE.
    4) created a substitution for the custom VO
    5) uploaded the substitution to mds.
    6) copied the xml/class files to $JAVA_TOP/..
    7) Bounced entire middle tier
    8) using personalization, entered a SPEL command on the rendered property. I know rendered will hide/show the column but for time being I just want this to work.
    But this fails :-
    oracle.apps.fnd.framework.OAException: Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME = XXPBPoLinesMergeVO; APPLICATION_MODULE = oracle.apps.po.document.server.DocumentAM;
    I am not aware how to get around this. Can someone help please?
    Approach 2
    1) steps 1 to 6 from Approach 1.
    2) trying to extend controller class OrderLinesTableRNCO. But have couple of questions. This iis a advanced bean table so how should i reference individual record and the column that i need to disable/enable ?
    Conceptual questions
    Also, when i am entering a new record at what point in time the 2 new attribute will derive its value? the 2 attributes are dependent on the Item number column but i have not created a dependency between the attributes and Item# column.
    Will the controller logic fire for every column while i am entering a new record?
    Thanks.

    Hi Anil,
    Thanks for the response. I have given up that i will get reply on this post.
    I have done the substitution and upload the jpx to umsing importer.
    But you are correct may be i might have done something wrong. Can you please help me. I can send you the files if you can review and let me know it will be great.
    Also, will this approach work since PO Lines is a advanced bean table ?
    One of the experts suggested to use Bound values. I am not sure how to implement it though?
    I have went and told back to my business team that I am not able to do this so now they have asked me to enable/disable columns based on a dff value on po header. I thought this will be easier by extending the controller class on PO Lines table but that too is not working.
    Can you help me please ?
    Here is my code to extend the controller class :-
    package xxpb.oracle.apps.po.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
    import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
    import oracle.apps.fnd.framework.webui.beans.table.OASortableHeaderBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import oracle.apps.po.document.order.webui.OrderLinesTableRNCO;
    public class XXPBOrderLinesTableRNCO extends OrderLinesTableRNCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAAdvancedTableBean tableBean =
    (OAAdvancedTableBean)webBean.findIndexedChildRecursive("LinesTableRN");
    OAMessageLovInputBean poLineLov =
    (OAMessageLovInputBean)tableBean.findIndexedChildRecursive("XXPBSecondaryUOMLOV");
    poLineLov.setDisabled(false);
    }

  • OIM ICF Connector Framework - Enable Disable Method

    Hi ,
    I am currently working on developing custom OIM connector using ICF Framework , I am trying to create an adapter for application user enable disable . I am not sure about which method gets called to disable the user .
    Do I need to write a seperate disableUser Method in the connector code , currently have methods for Create , Update and delete , do I need to write 2 more methods for Enable Disable of users.
    I belive th UpdateOP interface is called during the disable / enable process .
    any help would be much appreciated.
    Cheers
    Easwaran

    I'm getting the same error when it runs update user to add child values:
    Thread Id: 125     Time: 2013-02-22 09:24:53.204     Class: org.identityconnectors.framework.api.operations.UpdateApiOp     Method: update     Level: OK     Message: Exception:
    java.lang.NullPointerException: Parameter 'uid' must not be null.
    This is the attribute map that get's passed in. unixids are the child values.
    Thread Id: 125     Time: 2013-02-22 09:24:53.202     Class: org.identityconnectors.framework.api.operations.UpdateApiOp     Method: update     Level: OK     Message: Enter: update(ObjectClass: __ACCOUNT__, null, [Attribute: {Name=unixuids, Value=[sdfasdfasd]}], null)
    Here is my what my schema looks like for if it helps:
    <ObjectClassInfos>
    <ObjectClassInfo type='__ACCOUNT__' container='false' embedded='false'>
    <AttributeInfos>
    <AttributeInfo name='unixuids' type='String'>
    <AttributeInfoFlag value='MULTIVALUED'/>
    </AttributeInfo>
    <AttributeInfo name='__NAME__' type='String'>
    <AttributeInfoFlag value='REQUIRED'/>
    <AttributeInfoFlag value='NOT_UPDATEABLE'/>
    </AttributeInfo>
    </AttributeInfos>
    </ObjectClassInfo>
    </ObjectClassInfos>
    How did you fix your problem?
    Edited by: DJ on Feb 22, 2013 9:58 AM

  • How can i enable a column or field in table control

    hi all,
    i have a table control and in which some column is there, and all are disable mode now my requirement is :
    i want a column enable in this table control with a change button is there.
    so what is the functionality for this change button, if i click this button one of the field is enable i.e in change mode.
    for example- i have 4 fields: in a table control like-
    emp no | name | date| time|
    so i want to enable the field date.if i press the change button
    any one can help me on this, it is very urgent.
    pls send me any code ...if u have.
    thanks,
    vipin

    have  a look at this sample code
    In PAI write :
    CASE sy-ucomm.
      when 'CHANGEBUTTON'.
      Loop at screen.
        IF field1 = 'MATNR'.
          Screen-active = 0.
       endif.
      modify screen.
      endloop.
    endcase.

  • How to enable/disable check boxes in a table.

    hi Gurus,
    i am new to webdynpro for abap.
    the problem i have is.
    i have a table with two columns. first one is a check box column and the second one is a value field. the table is populated with data(second field only) upon pressing some button.
    while populating data i want to make check box field/row ticked and disabled when second field row value is 'X' . if not leave the check box row/field enabled and unticked ( if i want i can tick the check box later). hope you guys me. this is sort of urgent. please reply with some code.
    thanks in advance.
    Sree

    Hi
    Issue what i am facing is,i want to display column of CHECKBOXes in my ALV.
    for that i declare atrribute of type CHECKBOX.
    And i write the following code.
    lr_column_settings ?= l_value.
    lt_columns = lr_column_settings->get_columns( ).
    loop over table - in each loop another column can be modified
    LOOP AT lt_columns INTO ls_column.
    IF ls_column-id = 'CHK_BOX'.
    CREATE OBJECT lr_chk_box
    EXPORTING
    checked_fieldname = ls_column-id.
    lr_chk_box->set_read_only( ABAP_FALSE ).
    lr_chk_box->set_read_only_fieldname( 'ALV_FINAL_STATUS' ).
    ls_column-r_column->set_cell_editor( lr_chk_box ).
    even i cant able to get checkbox in my ALV.
    IT is displaying as general field.
    Regards,
    Ravi

  • Enable/disable problem with button on table toolbar

    Hello *,
    In my WD (ABAP) application, on a view I have a table, a toolbar within it and buttons on the toolbar. I am trying to control 'enable' property of one button, binding it to an attribute in view's context.
    When I do this trick just for any button on the view which is not on the toolbar, it works just fine. But when the button is placed on table's toolbar - it just stays disabled all the time.
    Normally I bind enable property to an attribute in the <b>root</b> node. When I change attribute value, the 'normal' button responds correctly (getting enabled or disabled), but the <u>table toolbar button</u> <b>does not</b>. I start wondering if table controls (like toolbar and its buttons) has something to do with a node the table is bound to?
    Any comments about special features of toolbar and its buttons being placed in a table?
    Thanks!

    Looks like a bug to me. There is nothing special with toolbar buttons vs. "normal" buttons (at least not in Web Dynpro Java).
    Armin

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • Cl_wd_table - enable/disable certain cells

    Hello together,
    I'm looking for a good solution to enable/disable certain cells in a table.
    For example I have the following table (the real table is more complex - with buttons and so on...):
    User
    ToDo
    State
    A
    Todo1
    Done
    B
    Todo2
    In Process
    A
    Todo3
    In Process
    B
    Todo4
    Done
    I have different users which are working on this tabe:
    - Administrator: Can edit whole table (except State column)
    - Employee: Can only edit State Column where he is assigned
    I think it would be difficult to work with context attributs in this case?
    Is it possible to Loop over all table lines an set "enabled" Attribut in the coding?
    Best Regards

    Hi Uwe,
    Check this below links
    How to edit conditionally row of a ALV table in Web Dynpro for ABAP
    ABAP WebDynpro: Can edit a cell in a column?
    Thanks
    KH

  • Disable columns in table control based on condition

    Hello Gurus,
         I am having a table control in my module pool program.Out of 25 columns , I am having 12 columns on months wise like (jan, feb, march....).Now my concern is based on current month I want to enable the column of month rest all months will be in disable mode.So that the user can enter his/her time of work.Could you please tell me any way.I tired to read tc-cols and stored in col with index but its not working I wrote this code for first month without any condition
    READ TABLE tC-COLS INTO col INDEX 22.
       col-SCREEN-INPUT = 0.
       MODIFY tC-COLS FROM col INDEX 22.
    but its not working.I wrote this code in PBO as well as i tried in PAI as wellstill my columns is in enable mode.Also when user clicks on button then only the table control required fields should start working like months enable/disable process.for eg. I am having 2 button one is Create and other is Search on both these buttons after click the condition for enable/disable months should work.
    Thanks
    Gaurav

    Hi,
    In my scenario, I have used months as radio buttons. A month is selected and "enable" button must be clicked so that only the corresponding column of the month turns into an editable mode.
    I have attached the output.
    The field can be disabled or enabled by using the line type of <table_control_name>-cols.
    It contains the screen elements. For disabling / enabling, use active element in screen.
    This must be written in PBO event of the corresponding screen containing the table control.
    Coding:
    * Type-Pools
    TYPE-POOLS: abap.
    *   Types
    TYPES: BEGIN OF ty_month_emp,
             jan   TYPE char30,
             feb   TYPE char30,
             mar   TYPE char30,
             apr   TYPE char30,
             may   TYPE char30,
             jun   TYPE char30,
             jul   TYPE char30,
             aug   TYPE char30,
             sep   TYPE char30,
             oct   TYPE char30,
             nov   TYPE char30,
             dec   TYPE char30,
             id    TYPE char10,
             name  TYPE char10,
             age   TYPE char10,
            END OF ty_month_emp,
            ty_t_month_emp TYPE STANDARD TABLE OF ty_month_emp.
    *   Data
    DATA: gs_month_emp  TYPE ty_month_emp,
           gt_month_emp  TYPE ty_t_month_emp,
           ok_code       TYPE sy-ucomm,
           r1            TYPE char1 VALUE abap_true,
           r2            TYPE char1,
           r3            TYPE char1,
           r4            TYPE char1,
           r5            TYPE char1,
           r6            TYPE char1,
           r7            TYPE char1,
           r8            TYPE char1,
           r9            TYPE char1,
           r10           TYPE char1,
           r11           TYPE char1,
           r12           TYPE char1.
    *   Table Controls
    CONTROLS: tc TYPE TABLEVIEW USING SCREEN 9000.
    *   Field-Symbols
    FIELD-SYMBOLS: <fs_cols> LIKE LINE OF tc-cols.
    *   Initialization
    INITIALIZATION.
       CALL SCREEN 9000.
    *&      Module  ENABLE_COLUMN  OUTPUT
    *       text
    MODULE enable_column OUTPUT.
       LOOP AT tc-cols ASSIGNING <fs_cols>.
         PERFORM enable_col USING: r1 'GS_MONTH_EMP-JAN' CHANGING <fs_cols>,
                                   r2 'GS_MONTH_EMP-FEB' CHANGING <fs_cols>,
                                   r3 'GS_MONTH_EMP-MAR' CHANGING <fs_cols>,
                                   r4 'GS_MONTH_EMP-APR' CHANGING <fs_cols>,
                                   r5 'GS_MONTH_EMP-MAY' CHANGING <fs_cols>,
                                   r6 'GS_MONTH_EMP-JUN' CHANGING <fs_cols>,
                                   r7 'GS_MONTH_EMP-JUL' CHANGING <fs_cols>,
                                   r8 'GS_MONTH_EMP-AUG' CHANGING <fs_cols>,
                                   r9 'GS_MONTH_EMP-SEP' CHANGING <fs_cols>,
                                  r10 'GS_MONTH_EMP-OCT' CHANGING <fs_cols>,
                                  r11 'GS_MONTH_EMP-NOV' CHANGING <fs_cols>,
                                  r12 'GS_MONTH_EMP-DEC' CHANGING <fs_cols>.
       ENDLOOP.
    *  LOOP AT tc-cols INTO ls_cols.
    *    IF r1 = 'X'.
    *      ls_cols-screen-active = 1.
    *    else.
    *      ls_cols-screen-active = 0.
    *    ENDIF.
    *    modify tc-cols FROM ls_cols INDEX sy-tabix.
    *  ENDLOOP.
    ENDMODULE.                 " ENABLE_COLUMN  OUTPUT
    *&      Form  ENABLE_COL
    *       text
    *      -->P_0170   text
    *      -->P_0171   text
    *      <--P_<FS_COLS>  text
    FORM enable_col  USING    p_radio              TYPE c
                               value(p_screen_name) LIKE screen-name
                      CHANGING pa_cols              LIKE LINE OF tc-cols.
       IF p_radio = abap_true.
         IF pa_cols-screen-name = p_screen_name.
           pa_cols-screen-active = 1.
         ELSE.
           pa_cols-screen-active = 0.
         ENDIF.
       ENDIF.
    ENDFORM.                    " ENABLE_COL
    Thanks & Regards,
    T. Prasanna Kumar

  • Need help with OA Framework. Enable/Disable LOV dynamically

    Hello,
    I am new to OA Framework. My requirement is as follows;
    The page should have a field with parameter org code (LOV). When the user selects an org and click GO button, the page should display all the inactive items (which have no Sales order or work order for last 2 years). In the table region, user selects single record or multiple records by a check box. The selected records should be processed after clicking a submit button in the table region. The process is, calling an API to change the status of the item to Inactive or some other status. The status should be determined by the user by selecting a LOV within the table region. I could create LOV based field for org code and could display the data on the page. I have been trying to display the LOV for item status , I have created a LOV under table region under table components > table actions. I could open the LOV and select a value, but the value is not defaulting to the field on the page. Somebody please help me with a suggestion or if you have the code for a similar kind of requirement please share with me.
    Also, need some suggestion on how to enable and disable LOV dynamically. I want to display the 2 LOV's in different regions. I want to enable the LOV for Item Status only after the org code is selected and the page populated after the user clicks GO button.
    Thanks in Advance…..

    Hi,
    I could open the LOV and select a value, but the value is not defaulting to the field on the page.pls check the LOV mapping ,this might be wrong.
    to enable/Disable LOV dynamically ,u need to use PPR,please check the lab solution exercise create employee chapter to learn to implement PPR functionality.
    Thanks
    Pratap

  • Remove Enable, Disable and Delete columns from searchUser.do

    Hello,
    What jsp form do I need to modify to remove the enable, disable and delete columns from the searchUser.do page? I edited tjspSearchUserResultsTiles.jsp but that didn't seem to do it.
    Thanks

    Hi,
    TableGenerator.jsp is the general jsp so you shouldn't modify it.You need to extend tcSearchUserAction.java class aand create a custom class.You need to over ride populateColumnHeadings and populateTableData.
    I won't suggest this approach until you are very much familiar with struts development and oim classes.
    Regards
    Nitesh

  • Hide/show or enable/disable report column

    Hi,
    I m using Oracle Apex4.0
    I m having an interactive report which has a cloumn with Link provided to it.
    I want to enable/disable the linked cloumn for certain records or else the link column can ba hidden/shown for certain records.
    How can it be done?

    Hi,
    Did you look at the Denes example ? It looks as good solution for you.
    Is your report in format like this ?
    col_1 col_2 col_link
    col_1 - column1
    col_2 - column2
    col_lnk - column with link
    in the link there is some redirection to detail page where you can provide update ?
    the link should contains record ID. correct ?
    The only possibility in your case is Denes or some other simple solution. (case solution)
    It should be good if you reproduce it on apex.oracle.com
    We can provide more help to you in there.
    Regards
    J :D

  • Is there a way to enable/disable a tabular form item based on the value of a second item?

    Hi Everyone,
    I have a tabular form based on a collection.   The column c050(maps to f30) will be either Y/N.  If it is Y, then I would like to enable column c024( maps to f24) (which happens to be a radio button based on lov).  If the value of c050 = N, then disable c024.   There are potentially many rows, and the item c024 would only be enable/disabled for the specific row.   So if row 1 has c050=Y and row 2 has C050=N then row 1 c024 is enabled, and row 2 c024 is disabled.  Hope that makes sense.
    I have created a dynamic action called enable/disable HMS fields.
    event=CHANGE
    selection type = jquery selector
    jquery selector = input[name='f30']
    condition EQUAL TO
    value Y
    true action1 - enable, jquery selector, input[name='f24']
    true action 2 - alert, You have added an HMS Species.   There may be additional data to enter.  thanks
    false action1 - disable jquery selector, input[name='f24']
    false action2 - alert, no hms worries.
    The alerts in both cases show properly...but nothing seems to happen to f24.....what am I doing wrong?
    thanks

    Agh! This is the first time you mention this is a radio button!  That changes things a lot! As you can see, the format is different (f24_0001_0001) than what we have discussed (f24_0001).
    Radio buttons have their own quirks.  My bad, I should have asked what you had.  But since you said your original selectors on input were working I just thought these were text fields or something like that.
    How about you change it to a drop down list just so that you can see all work?  And fully understand it.
    Then you can work out the radio button option.
    If that doesn't get you there... I'm going to ask you setup an example in apex.oracle.com and give me credentials to log in and take a look.
    I could re-try the js on my side with a radio but it will take some time.
    So just to be clear... f30 is a drop down and f24 is a radio?
    See, this line:
    $x_disableItem("f24_" + row, true);
    Is NEVER going to find the radio buttons because it's missing the 3rd 0001 and 0002 (how many options do you have?)
    So perhaps you try it like this:
    $x_disableItem("f24_" + row + '_0001', true);
    $x_disableItem("f24_" + row + '_0002', true);
    ... keep going for the options...
    Do the same for the false of course.
    But I think this needs a better approach if you'll have radio buttons.  I just need to work it out.
    Ok, go try things...
    Thanks
    -Jorge

  • Disable column when in edit mode 2

    Hello experts,
    some time ago I posted the thread: Editable ALV: Check Entries in order to disable an ALV grid column for user input.
    How can I disable the column even if the user adds a new row to the editable ALV Grid control?
    and
    How can I show in the disabled column information that is read from the database during user input? For instance, if the user presses ENTER?
    Thanks for your help! Obviously, points will be rewarded.
    Manuel

    Hi 
    U need to go for styles in alv grid.  U can define a style for each cell in which u can manage editable or disable in that.
    This u can handle in PBO each time conditionally.  See the below code.
    Add one field in your output internal table as below for populating the style.
    CELLTAB    TYPE LVC_T_STYL,   " for input enabling the cell.
    This is a table type.  U need to populate this field in each row with its type to enabled or disabled as below and style for which field in your internal table.  Here it is WERKS.
    CELLTAB-FIELDNAME = 'WERKS'.
    CELLTAB-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
    or
    CELLTAB-FIELDNAME = 'WERKS'.
    CELLTAB-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED
    insert this table in the field CELLTAB of  your internal table.
    in each row.
    And populate the layout with style field name.  Here our field is CELLTAB.
    GS_LAYOUT-STYLEFNAME  = 'CELLTAB'.
    GS_LAYOUT-EDIT        = GC_X.
    This can solve ur problem
    Venkat.

  • Enabling & Disabling of THTMLB_OCA (Action)

    Hi Experts,
    We have a requirement - to enable & disable the Action (THTMLB_OCA) column based on some critetria.
    Say For Example: Compoent BT115QIT_SLSQ, Context Node - BTADMINI, Attribute - THTMLB_OCA (Action - Which can Delete or Take you to Item Detail).
    Now say - if the ORDERED_PROD is 'XXX' I want to Disable this Action (THTMLB_OCA).
    I tried in GET_I_THTMLB_OCA putting the rv_diabled = 'TRUE', but it doesnot work, as this is not like a normal input field.
    So I thought to disable the field property - so that the Action field will be empty  nothing can be done using that. So I tried to implement GET_P_THTMLB_OCA
    so based on the validation on the ORDERED_PROD - if I can control the Field property of THTMLB_OCA
      lv_iterator = collection_wrapper->get_iterator( ).
      lv_bo       = lv_iterator->get_current( ).
      lv_val      = lv_bo->get_property_as_string( 'ORDERED_PROD' ).
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
            IF lv_val1 = 'XXX'.
              rv_value = space.
            ELSE.
              rv_value = cl_bsp_dlc_view_descriptor=>field_type_oca.
            ENDIF.
    ENDCASE.
    It works fine for the 1st Entry - the 1st line item.
    The Iterator - get_current always returns the 1st item, it is not going into the subsequest line items.
    Any thought process in this regard?
    Am I missing out something?
    Please Help!
    Thanks & Regards,
    tarak

    Hi Tarak,
    You can remove the On Click Action Buttons from individual rows by redefining method GET_OCA_T_TABLE of the Context Node Class.
    This method gets triggered for every row of the table view(check the signature of the method). Identify your condition here and call the super class using
    CALL METHOD super->get_oca_t_table
        EXPORTING
          iv_component = iv_component
          iv_index     = iv_index
        RECEIVING
          rt_actions   = rt_actions.
    Now simply disable the buttons from rt_actions.
    FIELD-SYMBOLS: <fs_actions> TYPE crmt_thtmlb_one_click_action.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
    <fs_actions>-active  = abap_false.
    ENDLOOP.
    Regards,
    Masood Imrani S.

Maybe you are looking for