Skip to Content
avatar image
Former Member

Dynamic content display by Visible / Invisible.

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Sep 21, 2008 at 05:39 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2008 at 04:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2008 at 11:16 AM

    Hi,

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

    Regards,

    Deepti

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 11:39 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 02:13 PM

    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

    Add comment
    10|10000 characters needed characters exceeded