on 09-20-2007 9:44 AM
Hi All,
I do have a table in the Layout of a view! This table is binded to a table in the context....
The fact is that @ Runtime i'd like to hide some fields of the table is it doable ? How ????
Thanks for the help!
Stephna
Hi Stephan,
Yeah you can do this. Create a context attribute 'show_field' of type char01. In the view layout, bind the 'Visible' property of your table cell editor for the particular column(which you wish to hide) to this context attribute. Whenever you want to hide the field, do a set_attribute passing abap_false. Set the attribute to true when you want to make the field visible.
Regards
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephan,
You can bind the visibility of your column to an attribute in the context. Depending on your business logic, you can just set this attribute to true or false.
Regards,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why do you want to create the table dynamically? Dynamic creation is necessary only if the structure of the context node itself is unknown. Otherwise you can simply create it at design time and manipulate only the columns at run time.
Anyway, you can create a table dynamically. You should do it in the modifyview method.
Regards
Nithya
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.