cancel
Showing results for 
Search instead for 
Did you mean: 

File upload sample program

Former Member
0 Kudos

hi all,

I am doing one sample example File upload and download

but it shows errror in the following line:

//@@end

public void onActionUploadFile ()

{

wdComponentAPI.getMessageManager().reportMessage(IMessageFileUpDownloadComp.SF_UPLOAD,

.......

}

problem in IMessageFileUpDownloadComp

how to rectify that one....

plz help me..

thanks

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Tony,

Go to the Message Pool and look for the entry i.e because


wdComponentAPI.getMessageManager().reportMessage(IMessageFileUpDownloadComp.SF_UPLOAD,true);
//IMessageFileUpDownloadComp.SF_UPLOAD indicates a key which must have 
// an entry in the Message Pool for the respective key.

Regards

Amit

Former Member
0 Kudos

Hi Tony,

I am looking for FileUpload/Download Examples, Can you send me how to do it.

raviinuk@gmail.com.

Thank You

Regards

Ravi

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

First,create Message Type in Message Pool.

Click Message Pool--->New then

Name=SF_UPLOAD

Type=Standard

Text=type some text

If u passing any arguments then mention in below{ } otherwise leav empty....

Try this code.....

wdComponentAPI.getMessageManager().reportMessage(IMessageFileUpDownloadComp.SF_UPLOAD,new Object[] { },true);

null