![]() Lookup values are often used when executing a search for items that refer to other objects, or to value list items. MFDatatypeText, "hello world" ) Lookup values Note that the type must both match the property definition type, and be applicable for the // supplied value. MFConditionTypeContains // We want to search for items that are named "hello world". MFParentChildBehaviorNone ) // We want only items that contain the search string provided. MFBuiltInPropertyDefNameOrTitle, MFParentChildBehavior. SetPropertyValueExpression ( ( int ) MFBuiltInPropertyDef. Alternatively we could pass the ID of the property definition if it's not built-in. var searchCondition = new SearchCondition () // We want to search by property - in this case the built-in "name or title" property. Other options may include executing a full-text search or finding items that contain ( MFConditionType.MFConditionTypeContains) the supplied text: ![]() The most common method for searching for strings is to find items that match ( MFConditionType.MFConditionTypeEqual) the supplied text. MFConditionTypeEqual // We want to search for items that are named "hello world". MFParentChildBehaviorNone ) // We want only items that equal the search string provided. Excluding deleted itemsĭeleted items are included by default when using the COM API.īelow is an example of creating a SearchCondition which represents the exclusion of deleted items. When using the Vault Application Framework, the MFSearchBuilder class can be used to more easily construct otherwise-complex search conditions. These are typically combined into a collection of SearchConditions before being executed against the vault. To search for value list items within a value list, please see this page.ĭetailed below are methods of creating individual SearchCondition objects. This page is solely applicable to searching for objects within an M-Files vault.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |