cancel
Showing results for 
Search instead for 
Did you mean: 

disabling rows in table view

former_member189406
Active Participant
0 Kudos

Hi

How can v disable particular rows in table view.....

thanks in advance...........

Accepted Solutions (0)

Answers (3)

Answers (3)

raja_thangamani
Active Contributor
0 Kudos

If your issue is resolved, please reward & close the thread..

Raja T

Former Member
0 Kudos

Hi,

You can use following java scrpit as well:

<script type-"text/javascript">

sTableId = tvName; //tableview name

str_row = sapUrMapi_SapTable_getRow(sTableId, i);

str_row.firstChild.firstChild.disabled = "true";

</script>

Regards,

raja_thangamani
Active Contributor
0 Kudos

Are you using iterator? If so you can disable based on the condition in interator method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START

Raja T

former_member189406
Active Participant
0 Kudos

Raja,

ya am using iterator.....

wat do v do in tat method........

raja_thangamani
Active Contributor
0 Kudos

Sorry, i mean to say in IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START

You can do something similar as follows:

If your_condition is successful.
v_disable = 'true'
else.
v_disable = 'false'
endif.
CASE p_column_index.

        WHEN 'your_column'.
 
          CREATE OBJECT COL2_INPUTFIELD.
          COL2_INPUTFIELD->ID    = P_CELL_ID.
          COL2_INPUTFIELD->maxlenght = '20'.
          COL2_INPUTFIELD->disabled = v_disable.
 
          P_REPLACEMENT_BEE =  COL2_INPUTFIELD.

<i>* Reward each useful answer</i>

Raja T

former_member189406
Active Participant
0 Kudos

raja,

tnx for quick reply...

but can v implement the same for rows.....

raja_thangamani
Active Contributor
0 Kudos

The code which i posted above will help you to disable the Rows...Just disable all the elements in that Row..

<b>* Reward each useful answer</b>

Raja T