on 11-21-2006 10:22 AM
Hi,
I get problem using FileUpload UI Element.
When I select a file (any file .) and push a button (uplaod bt), I get an error message below the FileUpload UI:
==> Object could not be found in cache, key is null!
There is something odd cause in the event linked to my upload button the function is completly emtpy. So it is not o Code error. And of course I've make the context attribute Modifiable :
IWDModifiableBinaryType type = (IWDModifiableBinaryType) wdContext.getNodeInfo().getAttribute(IPrivateExternalOrderCompView.IContextElement.FILE_RESOURCE).getModifiableSimpleType();
Any Idear ?
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Ok guys thanks for your answers, I fixed my problem.
The thing was I missused simple modify type.
So here is what I'm doing :
In my context View :
file type : Binary
wdInit of the View :
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateExternalOrderCompView.IContextElement.FILE);
ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
That's it !
Everything goes good.
Thanks
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Joseph,
The code to get the modifiable type seems correct.
Have you also set the filename property of the fileupload ui element?
BR,
Christophe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.