cancel
Showing results for 
Search instead for 
Did you mean: 

LSO Webinar disable a label in table in standard application.

supriya_karale
Explorer
0 Kudos

Hello All,

I am working on standard LSO application.

As shown in attachment I want to grey out location label if location is empty.

Additionally, the label is inside table .

I tried using the code as bellow.

loop at blanklocation condition .

container ?= view->get_element(location label ).

container->set_vissible('01').

endloop.

Now problem I am facing is all location label are grey out.

Can anybody guide me how can I disable label depending upon the condition of binded table.

This is standard application so I am not able to make any changes in layout of application.

Accepted Solutions (0)

Answers (1)

Answers (1)

Szczerbowski
Active Participant
0 Kudos

Not sure that is doable in a standard app, but for single item control in tables it's best to bind the control field (visibility, design etc) to a reference field and context attribute, like..

ls_column-r_column->set_cell_design_fieldname( 'CELLDESIGN' )


so you would require a visibility fieldname maybe?

supriya_karale
Explorer
0 Kudos

Hello Michal,

Even if I bind control field as suggested by you ,all label will disapper.I want to know how binded table data and table control can be compared to meet the requirement.

If you know any other option to do this ,it will be appreciable.

Thanks,

Supriya

Szczerbowski
Active Participant
0 Kudos

If the label has it's value in the same context element as the bound contro field, than you can control which label is visible by controlling the value of that control field

Or in other words , by saying which field holds the visibility attribute you can use that field in the row to control which line behaves differently