on 10-24-2006 5:42 AM
Hi All,
when uploading a file i got a Exception
<b>"Parse method is not possible for this type"</b>
1)i used only two UIs in view
2)FileUpload UI and Button
3)For FileUpload UI i assigned the FileResource context attribute value for data property
4)action onActionUpload() is assigned for the Button UI. in this action simply displayed a success message
Problem: After choosing the file through the ChooseFile window, when i click on the button an exceptio of above type was raised
please help me
Thanks in advance
Siva Sankar N
i had forgotten one thing,
if i take the FileResource as a String type then the sucess message was printed, if i take it as a Binary type then only the Exceptio was comming,
Please any one help me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Siva,
You must apply modifiable binary type in wdDoInit of controller:
ISimpleType stype =
wdContext
.node<YourNode>()
.getNodeInfo()
.getAttribute("FileResource")
.getModifiableSimpleType();
IWDModifiableBinaryType mtype = (IWDModifiableBinaryType)stype;
/* Optional steps: affects only FileDownload control */
/* mtype.setMimeType( WDWebResourceType.JPG_IMAGE); */
/* mtype.setFileName( "picture.jpg" ); */
Sure, to make above work you must use binary type in context designer.
Valery Silaev
SaM Solutions
Hi siva,
are you working with NW 2004 or with 2004s? Which SP?
Kind Regards
Stefanie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.