cancel
Showing results for 
Search instead for 
Did you mean: 

FileUplaod UI : Object could not be found in cache, key is null!

Joseph_BERTHE
Active Contributor
0 Kudos

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,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

See this thread

Kind Regards

Mukesh

Answers (2)

Answers (2)

Joseph_BERTHE
Active Contributor
0 Kudos

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,

Former Member
0 Kudos

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