Skip to Content
avatar image
Former Member

Controling attribute of one column based on selection in other in tableview

Hi All,

Hi All,

I am working on tableview iterator example from Brian's weblog:

I modified the TV in BSP to multilineedit .

I Filled the curriencies table in constructor with three values ie USD , INR and GBP .

Now i am able to retain the selection of DDLB (got solution in below thread:

[Regarding HTMLB Tableview iterator;

, but i need to controle the attribute of next column based on the value of selection in ddlb i.e.

for eg. if i select USD in DDLB , the next inputfiled should be disabled..

Hope my query is clear

Thanks,

Vivek.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 23, 2008 at 05:00 AM

    Do the problem still persists. If the problem is solved plz close the thread.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2008 at 07:25 AM

    Hi Vivek

    For doing this you need to code in the iterator class in the method RENDER_CELL_START.

    In this method you can find the data of the based on it you can disable you input field.

    1. Define local variables col_curr TYPE string,

    Field symbol as FIELD-SYMBOLS: <row> TYPE ANY,

    <col> TYPE ANY.

    Then ASSIGN p_row_data_ref->* TO <row>.

    //p_row_data_ref this will have the data of a row in the internal table at runtime.

    ASSIGN COMPONENT 'Curr' OF STRUCTURE <row> TO <col>.

    // So this will have the data of the "Curr" of the row now.

    col_curr = <col>.

    So now you will have the data of the Currency in your variable.

    Based on the value have a case stmt and disable the input filed(Which you have defined in the same method.(ex disabled = <your vairable in the logic>).

    Hope this will solve you problem.

    Vijay

    Add comment
    10|10000 characters needed characters exceeded