on 06-04-2009 8:43 AM
Hi,
I had a view with three parts say part-1, part-2 and part-3.
During the start of the view initially, I need to display only part-1. Later on some action I need to display the whole view. So can anyone help me in displaying the part of a view? How can I do this?
Regards
MQ
Hi,
Put part-1 in a container, part-2 in a contaner and part-3 in another container.
create 3 context variables of type Visibility(com.sap.ide.webdynpro.uielementdefinitions.Visibility) and map these three variables with the visibility property of the corrosponding containeers.
in the view's do init method,
set the visibility of the container which you want to display as visible and other as NONE or BLANK, later on when ever required change the visibility...
Coding will look like...
For example you mapped Va_Vis1 with Container1's Visibility and similarly for Va_Vis2 and Va_Vis3,
then in DoInIt()
wdContext.currentContextElement().setVa_Vis1(WDVisibility.VISIBLE);
wdContext.currentContextElement().setVa_Vis2(WDVisibility.NONE);
wdContext.currentContextElement().setVa_Vis3(WDVisibility.NONE);
Regards,
SrinivaS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can devide the three parts of View into three Transparent Containers.
TransparentContainter1,TransparentContainter2,TransparentContainter3
Create three context attributes of type "com.sap.ide.webdynpro.uielementdefinitions.Visibility".
Part1Visibility,Part2Visibility,Part3Visibility
Now assign these context attributes to the transaparent container visibility property.
Now add these three context attributes to the three Transparent Containers.
In the code in the wdDoModify method within the "firstTime" if block initially make visibile of first transparent container as below.
wdContext.currentContextElement().setPart1Visibility(WDVisibility.VISIBILE);
wdContext.currentContextElement().setPart2Visibility(WDVisibility.NONE);
wdContext.currentContextElement().setPart3Visibility(WDVisibility.NONE);
In the button action write this code:
wdContext.currentContextElement().setPart1Visibility(WDVisibility.VISIBLE);
wdContext.currentContextElement().setPart2Visibility(WDVisibility.VISIBLE);
wdContext.currentContextElement().setPart3Visibility(WDVisibility.VISIBLE);
Hope this will help to solve your problem.
Thanks
Ritushree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can devide the three parts of View into three Transparent Containers.
TransparentContainter1
TransparentContainter2
TransparentContainter3
Create three context attributes of type "com.sap.ide.webdynpro.uielementdefinitions.Visibility".
TransparentContainter1Visibility
TransparentContainter2Visibility
TransparentContainter3Visibility
Now add these three context attributes to the three Transparent Containers.
In the code in the wdDoInit() method initially make visibile of first transparent container as below.
wdContext.currentContextElement().setTransparentContainter1Visibility(WDVisibility.VISIBILE);
wdContext.currentContextElement().setTransparentContainter2Visibility(WDVisibility.NONE);
wdContext.currentContextElement().setTransparentContainter3Visibility(WDVisibility.NONE);
In the button action write this code:
wdContext.currentContextElement().setTransparentContainter1Visibility(WDVisibility.VISIBLE);
wdContext.currentContextElement().setTransparentContainter2Visibility(WDVisibility.VISIBLE);
wdContext.currentContextElement().setTransparentContainter3Visibility(WDVisibility.VISIBLE);
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create three context attributes for 3 different with type "com.sap.ide.webdynpro.uielementdefinitions.Visibility"
and bind to the visble property of three parts (part1,part2 and part3)
In the init method you can write the code for first part visibilty as
wdContext.currentContextElement().setpart11Visibility(WDVisibility.VISIBLE)
wdContext.currentContextElement().setpart21Visibility(WDVisibility.NONE)
wdContext.currentContextElement().setpart31Visibility(WDVisibility.NONE)
And in the action of some button you can make the other 2 parts as visible
wdContext.currentContextElement().setpart21Visibility(WDVisibility.VISIBLE)
wdContext.currentContextElement().setpart31Visibility(WDVisibility.VISIBLE)
Hope this helps you..
Regrads,
saleem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.