Skip to Content
avatar image
Former Member

Load DocType from IDocuments/Documents

Hallo,

Is there a way to extract the DocType from the IDocuments object? I have to do it in java, but I think IDocuments the equivalent of Documents in VB.

On IDocuments there is an a method called getProperty(), but it returns an Integer... I would expected a String with valuse I o S. I would avoid to make specific query like

 SELECT DocType FROM OINV WHERE DocEntry=... 

Is there a way?

Thanks

Giu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 15, 2016 at 11:47 AM

    Hi Giu,

    You are correct, the property return an integer, but there is two constants with the values:

    0 = 'I' = Items

    1 = 'S' = Service

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 15, 2016 at 12:44 PM

    Great,

    Thanks Diego

    Add comment
    10|10000 characters needed characters exceeded