Skip to main content

SearchConditionArray

This struct contains an array of MF_SearchCondition structures.

NameDescriptionType
valueAn array of the MF_SearchCondition structures.SearchCondition[]

Helper Methods and Properties

⚠️ Note

These helper methods and properties are available when using the npm package @m-filescorporation/uix-vault-messages. Install it in your project to use these helpers. For more information, see Overview/VaultMessages/.

Factory Methods

MethodDescriptionParametersReturns
CreateCreates a new SearchConditionArray object.conditions: Array<SearchCondition>SearchConditionArray

Instance Methods

MethodDescriptionParametersReturns
TextCreates a text search condition and adds it to the array.options: FTSFLAGS
condition: ConditionType
value: string
SearchConditionArray
StatusCreates a status search condition and adds it to the array.type: StatusType
condition: ConditionType
dataType: Datatype
value: TypedValueValueMap[T]
SearchConditionArray
StatusWithTypedValueCreates a status search condition and adds it to the array.type: StatusType
condition: ConditionType
value: TypedValue
SearchConditionArray
PropertyCreates a property search condition and adds it to the array.propertyDef: number
condition: ConditionType
dataType: Datatype
value: TypedValueValueMap[T]
SearchConditionArray
PropertyWithTypedValueCreates a property search condition and adds it to the array.propertyDef: number
condition: ConditionType
value: TypedValue
SearchConditionArray
AnyLookupPropertyCreates an any lookup property search condition and adds it to the array.valueList: number
condition: ConditionType
value: Lookup | number | Array<Lookup | number>
SearchConditionArray

Creating Objects

// Creates a new SearchConditionArray object.
const result = SearchConditionArray.Create([]);

Working with Objects

// Extension helpers for SearchConditionArray instances
// Creates a text search condition and adds it to the array.
const result = searchconditionarrayInstance.Text({}, 0, "example string");

// Creates a status search condition and adds it to the array.
const result = searchconditionarrayInstance.Status(0, 0, 0);

// Creates a status search condition and adds it to the array.
const result = searchconditionarrayInstance.StatusWithTypedValue(
0,
0,
TypedValue.Text("example text"),
);

// Creates a property search condition and adds it to the array.
const result = searchconditionarrayInstance.Property(0, 0, 0);

// Creates a property search condition and adds it to the array.
const result = searchconditionarrayInstance.PropertyWithTypedValue(
0,
0,
TypedValue.Text("example text"),
);

// Creates an any lookup property search condition and adds it to the array.
const result = searchconditionarrayInstance.AnyLookupProperty(
0,
0,
new Lookup(),
);

Example

{
"value": [] /* Array of SearchCondition */
}