cancel
Showing results for 
Search instead for 
Did you mean: 

Create event on click of FileDownLoad UI Element

Former Member
0 Kudos

Hi,

I have created an interactive form whose initial visibility is set the false. I have a

FileDownload UI element. Ideally on the click of the FileDownload UI, I should

be able to see the interactive form in the same view. Please help me out.

Thanks,

Prasanna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Prasanna,

Unfortunately, no way -- you have to add Button or LinkToAction to UI.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

FileDownload UI does not have any action property.

In this case you have to have a UI element with which you can assocaite an action.

In that action set the visibility of the InteractiveForm UI element to visible.

For the visiblity

1. First create a context attribute visibility of data type com.sap.ide.webdynpro.uielementdefinitions.Visibility

2. Bind the context attribute with visible property of the InteractiveForm UI element.3. In wdDoInit of the view

wdContext.CurrentnContextElement.setVisibility(IWDVisibility.Blank);

3. In the action wdContext.CurrentnContextElement.setVisibility(IWDVisibility.visible);