/ Forums / Advansys Formativ / Creating Solutions with Formativ / searching for document with formativ

  • Creator
    Topic
  • #4148
    G.Gentien
    Participant

      i am making a query with formative to search all the document where the type is modèle

      my query returns no résults,

      isyntax = “(DOCUMENT_TYPE CONTAINS ” + “””Modèle””” + “)”
      call GroupWise.ThrowToken(isyntax , iresults)

      When i look to the query the objet box was transform on text and contains my query

      how can i perfom this query ?
      thanks for help

      G.Gentien

    • Author
      Replies
    • #7276
      Support 1a
      Participant

        You cannot perform a query/find operation by using ThrowToken(). ThrowToken() is designed to accept a string representing a GroupWise token (such as ‘AboutDlg()’. You cannot pass it a query/find string and have it do anything.

        To perform a find, you need to pass the query string to one of the Find/Query methods, part of the Object API, which are exposed in Formativ via the GroupWise.Account() object.

        For example, the Messages() collection has a Find() method. This method accepts a query string. See the following for more information:

        http://developer.novell.com/ndk/doc/gwobjapi/gwobjenu/data/huyzfn9z.html#huyzfn9z

        I hope this helps clarify the issue.

        Advansys Support

      Viewing 1 replies (of 1 total)
      • You must be logged in to reply to this topic.