Skip to Content
0
Former Member
Oct 16, 2006 at 01:35 PM

View Refreshing problem

16 Views

Hi,

Im working on a web dynpro application where Im trying to achieve the functionality of filedownload.It consists of 2 views.The first view consists of 3 dropdowns.Based on the user's selection, the second view displays the list of files which are in the particular folder on the server system.On clicking a particular file, the user can download it.

I retrieve the files as a file array and for each file in the array, I create a dynamic attribute in the context of type binary like this,

for (int i = 0; i < (fileList.length); i++) {

IWDAttributeInfo FileAttrInfo = wdContext.getNodeInfo().addAttribute("FileData"+i,"ddic:com.sap.dictionary.binary");

}

where fileList is the file array.

This works fine for the first time I launch the application. I get the list of files and I can download them. But when I try to change the selection of the drop downs, the file list is not retrieved and displayed in the view.I get an empty view.

I have tried to refresh the view using view.resetView();

I have also tried to clear the context attributes, but no results.

Any help will be highly appreciated.

Regards,

Rachel