Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike 16 posts 32 karma points
    Jan 01, 2010 @ 21:25
    Mike
    0

    Document Webservice and special document properties

    Hi,

    I've got a document type, which has atwo properties, on a custom data type (a dropdown list with color values), the second of type upload.

    How can I fill these properties via the DocumentService..

     

     

     

    DocumentProperties =

     

    new ArrayOfDocumentProperty()

    {

     

     

    docPropFactory

     

    .Create("issue", "1234"), // works fine

     

     

    docPropFactory.Create("theme", "blue"), // this is the data type, it doesn't work

     

    docPropFactory.Create("image", File.ReadAllBytes(imagePath)), // this is the upload, it doesn't work either..

    Do you have any suggestions?

    thx!

  • Mike 16 posts 32 karma points
    Jan 01, 2010 @ 21:27
    Mike
    0

    Ah.. I forgot to mention.. docPropFactory is a custom helper class of mine..

     

     

     

     

    public static class docPropFactory

    {

     

    public static documentProperty Create(string key, object value)

    {

     

    return new documentProperty()

    {

    Key = key,

    PropertyValue = value

    };

    }

    }

    }

Please Sign in or register to post replies

Write your reply to:

Draft