Skip to Content
author's profile photo Former Member
Former Member

View Refreshing problem

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 01:56 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 02:23 PM

    Hi Rachel,

    If the filelist is within a particular folder then why use dynamic coding. The context could exist at design time and your drop downs could be bound to that. You can fill up the context node in the init method.

    I have one query for you in fact. How are you getting the file list from the server? I have a similar problem where I want to confirm that a file exists on the server before I actually display that to the user. Any help would be appreciated.

    Thanks,

    Deepak

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.