cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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:

[;

, 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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member416498
Active Participant
0 Kudos

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

Answers (1)

Answers (1)

former_member416498
Active Participant
0 Kudos

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