API Component.Property.SetFilter

From Flowcode Help
Revision as of 11:54, 16 January 2023 by Wiki bot (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Fc9-comp-macro.png SetFilter
Sets a components property filter string for lists, files, etc 
Fc9-h32-icon.png - HANDLE Handle
The component handle of the property owner 
Fc9-string-icon.png - STRING Property
The textual name of the property 
Fc9-string-icon.png - STRING Value
The value to update the property filter with 
Fc9-void-icon.png - NONE Return


Detailed description

Sets the filter field of a property. The filter field is a text block whose use in Flowcode is decided by the properties type.


The field, for example, may be used to hold a list of items in a list-type property, or a file-filter in a file selection property. See the list of property types for further details.


No checks are done for validation on the field, and any text desired may be entered into this. However, it is the callers responsibility to only add text with the correct format if a format is required..


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Component.Property.SetFilter(handle, "property", "value")