Class DocumentCollection
The document-specific section of information about a document
There is always a corresponding appointment record; the relation between appointment and document is navigable in both directions. A document-type appointment record always has a corresponding document record.
Collection of Document. Each element of the collection represents one entity based on Document.Inheritance
Implements
Inherited Members
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public class DocumentCollection : EntityCollectionBase, INestedPersist, IEnumerable<INestedPersist>, ISoCollection, INotifyCollectionChanged, IBindingList, IList, ICollection, IEnumerable
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
Constructors
DocumentCollection(DocumentCollectionIdx)
Constructor for class DocumentCollection.
This object represents a collection of rows in table 'document'.
Table contact: Documents, this table is an extension of the Appointment table
Declaration
protected DocumentCollection(DocumentCollection.DocumentCollectionIdx idx)
Parameters
Type | Name | Description |
---|---|---|
DocumentCollection.DocumentCollectionIdx | idx |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
Fields
_idx
Fetcher class the collection is based on
Declaration
protected DocumentCollection.DocumentCollectionIdx _idx
Field Value
Type | Description |
---|---|
DocumentCollection.DocumentCollectionIdx |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
_rows
Row objects that the collection is based on.
Declaration
protected DocumentRows _rows
Field Value
Type | Description |
---|---|
DocumentRows |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
Properties
Index
Retrieve the index for DocumentCollection
Declaration
public DocumentCollection.DocumentCollectionIdx Index { get; }
Property Value
Type | Description |
---|---|
DocumentCollection.DocumentCollectionIdx |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
this[int]
Get a Document from the collection from its zero-based index.
Declaration
public Document this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | Zero-based index in the collection. |
Property Value
Type | Description |
---|---|
Document |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
Rows
The ecapsulated object DocumentRows.
Declaration
public DocumentRows Rows { get; }
Property Value
Type | Description |
---|---|
DocumentRows |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
Sentries
The collection of sentries that are guarding this collection of rows. This collection is used by RDB entities which return HDB collections.
For example, the contact.Faxes returns a PhoneRows collection in which each row will need to check the contact's sentry for permission to read/write their field
Declaration
public override SentryCollection Sentries { get; }
Property Value
Type | Description |
---|---|
SentryCollection |
Overrides
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
Methods
Add(Document)
Add one Document to the collection.
Declaration
public int Add(Document document)
Parameters
Type | Name | Description |
---|---|---|
Document | document | An instance of Document to be added to the collection. |
Returns
Type | Description |
---|---|
int | The index of the added Document. |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
AddNew()
Get a new instance of Document added to the collection.
Declaration
public Document AddNew()
Returns
Type | Description |
---|---|
Document | A new instance of Document added to the collection. |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
CreateChild()
Create a new instance of Document
Declaration
protected override EntityBase CreateChild()
Returns
Type | Description |
---|---|
EntityBase | New instance of Document |
Overrides
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
CreateNew()
Create a new instance of the DocumentCollection.
Declaration
public static DocumentCollection CreateNew()
Returns
Type | Description |
---|---|
DocumentCollection | A new instance of the DocumentCollection. |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
GetFromCustomSearch(CustomSearch)
Create a new instance of the DocumentCollection object, and populate it with data from a custom search. If the search returns no results, an empty collection will be returned; if the result contains rows, a collection of DocumentRow objects representing each row will be returned.
Declaration
public static DocumentCollection GetFromCustomSearch(DocumentCollection.CustomSearch query)
Parameters
Type | Name | Description |
---|---|---|
DocumentCollection.CustomSearch | query | The custom search to execute against the database |
Returns
Type | Description |
---|---|
DocumentCollection | A new instance of the DocumentCollection object, reflecting the result of the query. |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
GetFromIdxArchiveProvider(int)
Create a new instance of the DocumentRows object, and populate it with DocumentRow objects based on the result of a query on the table Document. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static DocumentCollection GetFromIdxArchiveProvider(int archiveProvider)
Parameters
Type | Name | Description |
---|---|---|
int | archiveProvider | Reference to archive provider; for future use, and the Notes Link |
Returns
Type | Description |
---|---|
DocumentCollection | New DocumentRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXDocArchiveProvider. Unique indexes have corresponding Create methods directly on the DocumentRow object, since such indexes always return zero or one rows.
GetFromIdxExtref(string)
Create a new instance of the DocumentRows object, and populate it with DocumentRow objects based on the result of a query on the table Document. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static DocumentCollection GetFromIdxExtref(string extref)
Parameters
Type | Name | Description |
---|---|---|
string | extref | External reference (notes ID, email ID, other ID used by the archive provider) |
Returns
Type | Description |
---|---|
DocumentCollection | New DocumentRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXDocExtref. Unique indexes have corresponding Create methods directly on the DocumentRow object, since such indexes always return zero or one rows.
GetFromIdxHeader(string)
Create a new instance of the DocumentRows object, and populate it with DocumentRow objects based on the result of a query on the table Document. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static DocumentCollection GetFromIdxHeader(string header)
Parameters
Type | Name | Description |
---|---|---|
string | header | Visible document name |
Returns
Type | Description |
---|---|
DocumentCollection | New DocumentRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXDocHeader. Unique indexes have corresponding Create methods directly on the DocumentRow object, since such indexes always return zero or one rows.
GetFromIdxOurRef(string)
Create a new instance of the DocumentRows object, and populate it with DocumentRow objects based on the result of a query on the table Document. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static DocumentCollection GetFromIdxOurRef(string ourRef)
Parameters
Type | Name | Description |
---|---|---|
string | ourRef | Our reference, searchable field from free-text search |
Returns
Type | Description |
---|---|
DocumentCollection | New DocumentRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXDocOur_ref. Unique indexes have corresponding Create methods directly on the DocumentRow object, since such indexes always return zero or one rows.
GetFromIdxSearchname(string)
Create a new instance of the DocumentRows object, and populate it with DocumentRow objects based on the result of a query on the table Document. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static DocumentCollection GetFromIdxSearchname(string searchname)
Parameters
Type | Name | Description |
---|---|---|
string | searchname | For future use |
Returns
Type | Description |
---|---|
DocumentCollection | New DocumentRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXDocSname. Unique indexes have corresponding Create methods directly on the DocumentRow object, since such indexes always return zero or one rows.
GetFromIdxUserdef2Id(int)
Create a new instance of the DocumentRows object, and populate it with DocumentRow objects based on the result of a query on the table Document. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static DocumentCollection GetFromIdxUserdef2Id(int userdef2Id)
Parameters
Type | Name | Description |
---|---|---|
int | userdef2Id | User-defined fields |
Returns
Type | Description |
---|---|
DocumentCollection | New DocumentRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXDocUdef2_id. Unique indexes have corresponding Create methods directly on the DocumentRow object, since such indexes always return zero or one rows.
GetFromIdxUserdefId(int)
Create a new instance of the DocumentRows object, and populate it with DocumentRow objects based on the result of a query on the table Document. This method is intended to make it easy to use efficient queries that match a database index.
Declaration
public static DocumentCollection GetFromIdxUserdefId(int userdefId)
Parameters
Type | Name | Description |
---|---|---|
int | userdefId | User-defined fields |
Returns
Type | Description |
---|---|
DocumentCollection | New DocumentRows collection containing the result of the index query. If no rows matched, the collection will be empty. |
Remarks
The query matches the fields on the non-unique index IDXDocUdef_id. Unique indexes have corresponding Create methods directly on the DocumentRow object, since such indexes always return zero or one rows.
Remove(Document)
Removes the given Document from the collection
Declaration
public void Remove(Document document)
Parameters
Type | Name | Description |
---|---|---|
Document | document | the Document to be removed |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
ToArray()
The document-specific section of information about a document
There is always a corresponding appointment record; the relation between appointment and document is navigable in both directions. A document-type appointment record always has a corresponding document record.
Collection of Document. Each element of the collection represents one entity based on Document.Declaration
public Document[] ToArray()
Returns
Type | Description |
---|---|
Document[] |
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |
ToString()
For debugging: Number of members, and the first (up to) 5 items
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Remarks
Entity collections can be created in several ways.
- Use the static CreateNew() method to create a new, empty collection. You can then add objects of type SuperOffice.CRM.Rows.Document to it, and use methods like Save to operate on the whole collection.
- You can create a (nested) DocumentCollection DocumentCollection.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(CustomSearch) method to apply the query to the database and obtain the result as an EntityCollection object, with one item for each table row that matched your query.
- For each non-unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy.
Index fields | Nested index class name |
---|---|
DocumentId | DocumentId: Primary key Nested index class: Document.IdxDocumentIdStatic Get method: GetFromIdxDocumentId(int) |
Index fields | Nested index class name |
---|---|
OurRef | OurRef: Our reference, searchable field from free-text search Nested index class: DocumentCollection.IdxOurRefStatic Get method: GetFromIdxOurRef(string) |
Userdef2Id | Userdef2Id: User-defined fields Nested index class: DocumentCollection.IdxUserdef2IdStatic Get method: GetFromIdxUserdef2Id(int) |
UserdefId | UserdefId: User-defined fields Nested index class: DocumentCollection.IdxUserdefIdStatic Get method: GetFromIdxUserdefId(int) |
Extref | Extref: External reference (notes ID, email ID, other ID used by the archive provider) Nested index class: DocumentCollection.IdxExtrefStatic Get method: GetFromIdxExtref(string) |
Header | Header: Visible document name Nested index class: DocumentCollection.IdxHeaderStatic Get method: GetFromIdxHeader(string) |
Searchname | Searchname: For future use Nested index class: DocumentCollection.IdxSearchnameStatic Get method: GetFromIdxSearchname(string) |
ArchiveProvider | ArchiveProvider: Reference to archive provider; for future use, and the Notes Link Nested index class: DocumentCollection.IdxArchiveProviderStatic Get method: GetFromIdxArchiveProvider(int) |