cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide the table's lead selection?

Former Member
0 Kudos

I had a request to hide the lead selection of a table both in a normal table UI and in the ALV.

But there's not such attribute for tables to do it..

How to HIDE it???

Regards.

Fisher.

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi,

I din't get ur question correctly , but if u want to avoid the table or alv to display the lead selection for the first time then unmark the node property Initial Lead Selection , then until unless u select a row from table the row will not be displayed as selected .

Regards

Yash

Former Member
0 Kudos

Hi,Yashpal

My description's no good yah.

I want to hide the column of the lead selection.

Regards.

Former Member
0 Kudos

Hi,

If you want to Hide the table through the leadselection,

Create an attribute as flag ( forexample) and bind that attribute to UI elemnet through which u want to select as visible in visibility property, and write the code as

Example:

IF lt_flights is NOT INITIAL.

WD_CONTEXT->SET_ATTRIBUTE(

EXPORTING

NAME = 'FLAG'

VALUE = ABAP_TRUE ).

Else.

WD_CONTEXT->SET_ATTRIBUTE(

EXPORTING

NAME = 'FLAG'

VALUE = ABAP_FALSE ).

Yashpal
Active Contributor
0 Kudos

Hi ,

Mark the property ReadOnly of table ,so that rows will not be selectable.

and for alv in interface if_salv_wd_table_settings , method set_read_only isp present to achieve the same.

Regards

Yash

Former Member
0 Kudos

Hi Yashpal

the read_only property do no effect to lead selection, it will turn all cells into text.

While the rowSelectable property will disable the lead selection,but my request is to hide it,to make it invisible.

here's an example but i cant get the brief.

Web Dynpro Component: MASTERMIND

Thank you

Yashpal
Active Contributor
0 Kudos

Hi ,

for that set the Selection Mode property to none ......

Regards

Yash

Former Member
0 Kudos

ahahaha, it's works

thanks a lot Yash~

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In order to not have lead selection for that particular node for which table is bound keep the

cardinality as 0:n and selection 1:n(if single selction you want) else

have selection 1:n(for multi section )of table.

In the table set the property selectionmode to singlenolead or multinolead

according to your requirement.