Hi,
I am trying to implement a file control which is not working. I have done the following.
I have mapped the data attribute to a context node of type binary.
The content of the file is String array. I have converted the contents to byte and assigned it to data node. But I think the data node should not be assigned the content it is a place holder for the data while downloading. So I have tried by assigning data as well as without it.
And following mappping has been done in code
IWDModifiableBinaryType binaryTypeDownload;
IWDAttributeInfo attInfo = wdContext.nodeConfigFiles().getNodeInfo().getAttribute("DownloadData");
ISimpleTypeModifiable type1 = attInfo.getModifiableSimpleType();
binaryTypeDownload = (IWDModifiableBinaryType) type1;
binaryTypeDownload.setMimeType(new WDWebResourceType(type,"",false));
binaryTypeDownload.setFileName(FileNameSelected);
It gives me this exception :
com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(DetailsView.Device1.ConfigFiles.DownloadData): must not modify the datatype of a mapped attribute
Please help.
Regards,
Parminder