Skip to Content
avatar image
Former Member

File upload sample program

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jun 08, 2007 at 07:12 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 08, 2007 at 08:32 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 08, 2007 at 08:40 AM

    Hi Tony,

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

    raviinuk@gmail.com.

    Thank You

    Regards

    Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 08, 2007 at 10:59 AM

    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

    Add comment
    10|10000 characters needed characters exceeded