cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic content display by Visible / Invisible.

Former Member
0 Kudos

Hi,

I have a requirement as follows.

1. we have various links at left side ( from BAPI ).

2. once the user clicks on each link, the corresponding bapi should call from R/3 system and display the

content at right side( dynamically ).

I have done getting the links from BAPI and display at left side. Now How to do on clicking each link and display corresponding content dynamically at right side ?

I heared there is a Visible/Invisible property . Is this helpful to use in my application. If so , how to use.

thanks

Jyothi.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

http://www.bus.ucf.edu/rhightower/ism4154/Readings/WD/Concepts%20of%20Web%20DynPro%20for%20Java.pdf

go through this link .Hope it will helpful for u

Regards

Ruturaj

Former Member
0 Kudos

Hi Jyothi,

refere to the following for a tutorial on visible/invisible (in the tutorial it is refered to as show/hide):

http://saptechnical.com/Tutorials/WebDynproJava/EnableHide/page1.htm

Edited by: Aishwarya Sharma on Oct 13, 2008 1:40 PM

DeeptiChavare
Active Participant
0 Kudos

Hi,

Check cardinality of ValueNode in context. You can make it 1:1 if only one element is required.

Regards,

Deepti

former_member197348
Active Contributor
0 Kudos

Hi Jyothi,

Go to Layout tab. Create one group UI element for each BAPI link. And embed the content into the respected groups.

Create attributes group<X>Visibility of type com.sap.ide.webdynpro.uielementdefinitions.Visibility .

(After creating the context attributes go to type property.

Click on ... button.

Wizard opens.

Expand Local Dictionary .

Expand com.sap.ide.webdynpro.uielementdefinitions

Select Visibility- last but one property. )

And bind each attributes to the visible property of the respected group.

onAction of the BAPI link make visible the respected group and hide remaining all groups. e.g. group1

//Display
wdContext.currentContextElement().setGroup1Visibility(WDVisibility.VISIBLE);
//Hide
wdContext.currentContextElement().setGroup2Visibility(WDVisibility.NONE);
wdContext.currentContextElement().setGroup3Visibility(WDVisibility.NONE);

etc.

Regards,

Siva

Former Member
0 Kudos

Hi Ramakrishna,

I created as you said , but ! I created the ValudeNode in the context and put the value attributes in the node. When I try to use in this way I am getting the NullPointerExeception.

I don't know why it is happening , Can u guide me ?

thanks

Jyothi.

Former Member
0 Kudos

The cardinality of the node should be at least 1..1 (it can be 1..n also)

Former Member
0 Kudos

One possibility is to create different views for the different content on the right side and navigate to the corresponding view when a link is clicked. Use a ViewContainerUIElement for the content area.

Armin