on 2007 Jul 09 3:37 PM
How can i deactivate or make a view invisible dynamically based on and input parameter coming from an RFC. Please advice.
Thanks,
Suri
Hi Suri,
Use a view container in your main view and embed this view(the one in which you have to set visibilty dynamically) in the view container.
Now cerate a attribute of type visibilty in the context.
Depending on your condition, set this attribute to visible or none in the code whereever you have to handle visibilty.
Bind this attribute to the visibity property of the view container.
Regards
Reema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suri,
In your context, have an attribute 'view_visible' of type char01.
In the wddoinit method of your view, put the following code to make the view visible initially.
data: elem_context type ref to if_wd_context_element.
elem_context = wd_context->get_element( ).
elem_context->set_attribute(
exporting
name = 'VIEW_VISIBLE'
value = abap_true
).
In the event handler where you want to set the view as invisible, just put the same coding setting the attribute as False. Bind this attribute to the 'Visible' property of the view container. You can see in the properties tab.
Regards
Nithya
hi,
you can set an attribute in your context type wdy_boolean
and depending on the importing parameters you can set it to abap_true abap_false,
bind that attribute to the visible attribute of the view ui element where the view is in
grtz,
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.