on 09-20-2005 6:31 AM
Hi,
In Attachment view, if no file is added and ADD button is clicked, it results in an error. The next time, if a file is added and then ADD button is clicked, even now the file is not getting added.
I checked the code and found that in the method IF_HTMLB_DATA~RESTORE_FROM_REQUEST of class CL_HTMLB_FILEUPLOAD, in line 8, num_multiparts is always returned as 0 (the first time no file was added). How can this be avoided, if a file is added and then ADD button is clicked?
Thanks & Regards
G.Raja
if <b>Attachment view</b> is your custom page, you could write a check routine to see whether the input field (for file) is blank or not .
or if its a standard application, give us the application name , may be we can have a look at it.
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the code given below. i am just alterting the value of the input field, you could extend the code to write logic for cancel submit when the filed is empty
<htmlb:fileUpload id = "myUpload"
onUpload = "HandleUpload"
upload_text = "Display"
size = "90" />
<script>
function test()
{
alert(document.forms[0].myUpload.value);
}
var obj = document.forms[0].myUpload ;
obj.attachEvent('onblur',test);
</script>
Regards
Raja
hi raja,
check this link:
/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
hope this will help you.
if it doesnt help can you kindly send the code tyou have written on the click event of add.
regards,
Hemendra
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.