on 06-07-2016 7:49 AM
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.