on 10-13-2009 11:14 AM
Hi experts,
I am using File Upload element and few input fields in my screen. The data is the File upload element gets refreshed even if i use seach help in the input field.
Scenario:
I choose the file which has to be uploaded and then I give input in the input field using search help.
As soon as the search help opens the value in the File Upload element is erased.
I donu2019t want the refreshing to happen. Any ideas on how to fix this?
Thanks in advance
Regards
Shanthi
Hi Shanthi,
Were you able to find workarround for display file in fileupload UI element after the user action?
Thanks
Depesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your problem persists, workaround is :
1. After you have uploaded the file, save the context attribute's value in some Attribute.
wd_this->Att1 = <filecontent>
2. After you have selected value in Input field, set the context attribute of file using Att1. This way even if your screen is refreshed, you will retain the values and thus can again populate it in context attribute.
Please make sure that you are not invalidating node after search help is triggered or in wddomodfy.
Edited by: Saurav Mago on Oct 13, 2009 3:54 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is not the case that set_atribute wont work for fileupload.
Get the attribute's of file : DATA, FILENAME, MIMETYPE using get_attribute.
Store the same in some attributes and finally bind all these context attributes using set_attribute.
It should work.
Please put a break point and debug it.
hi,
Due to browser restrictions that are unrelated to Web Dynpro ABAP, the previously entered data path might disappear when a FileUpload UI element is clicked. In newer versions of the browser, it is therefore impossible to enter the file name in the entry field. The field always remains empty. For more details, read the security-related information in Internet Explorer 6 about handling <input type=file>.
Refer SAP Online help : http://help.sap.com/saphelp_nw70/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm
Actually your view is not getting refreshed, but it is due to browser restrictions.
Your contexts binded with fileupload will be having all the values until you wash.
DATA lo_nd_ztest_fomr TYPE REF TO if_wd_context_node.
lo_nd_ztest_fomr = wd_context->get_child_node( name = wd_this->wdctx_ztest_fomr ). <ztest_fomr is my node>
lo_nd_ztest_fomr->invalidate( ) .
By above code, all your context attributes inside the node will be washed.
Hey, just check after uploading your file whether you attributes have value or not.
If all attributes binded to fileupload has value then you can proceed . Sometimes in input box close to Browse button dont show values but values are there in Attributes.
Due to browser restriction values only disappear from the input but not from context attributes.
Edited by: Saurav Mago on Oct 21, 2009 12:28 PM
hi Lekha,
I am using different context for both the UI elements.
Regards
Shanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you binding the same context to both the UI elements..
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.