Skip to Content
author's profile photo
Former Member

FileUploading problem

Can any one tell me the full steps of fileuploading. i have read all the related docs but still there are some problems, i will be of great help if code is provided.

thanks & regards,

kavita.M

Message was edited by:

kavitha harika

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Jan 23, 2007 at 10:37 AM

    It will make sense if you tell us what is your problem. Just cut and paste will not solve the problem.

    Regards,

    Subramanian V.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jan 23, 2007 at 12:11 PM

    thanks for ur answer, but still i have problem

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jan 24, 2007 at 05:44 AM

    Hi

    Do the following

    1. Create a <b>binary</b> variable in context(Say MyVar)

    2. Create a fileupolad element and bind data pty of element with MyVar

    3. Create a button for upolad and associate an action to that.

    4. Add the following code to the action

    IWDAttributeInfo attrInfo=wdContext.getNodeInfo()..getAttribute(IPrivate<ViewName>.IContextElement.MYVAR);

    attrInfo.getModifiableSimpleType();

    IWDModifiableBinaryType bType=(IWDModifiableBinaryType)attrInfo.getModifiableSimpleType();

    byte file[]=wdContext.currentContextElement().getMyVar();//This will return the uploaded file as byte array

    Regards

    Fahad Hamsa

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 24, 2007 at 08:53 AM

    Hallo Kavitha,

    which SAP NetWeaver release do you use? NetWeaver 04 or NetWeaver 04s? The best solution for file upload depends on the used release.

    Regards, Bertram

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jan 24, 2007 at 09:05 AM

    Hi,

    Check this i have uploaded the excel file.

    Excel download... and upload?

    Regards,

    Vijai

    Add comment
    10|10000 characters needed characters exceeded