Inherits from NSObject
Declared in expanz_model_FieldInstance.h

Overview

Represents an item within an expanz_model_ActivityInstance requiring user input.

Tasks

Properties

datatype

The field’s datatype.

@property (nonatomic, readonly) ExpanzDataType datatype

Discussion

The field’s datatype.

Declared In

expanz_model_FieldInstance.h

defaultValue

The value the field is initialized with, ie user is presented initially with this value.

@property (nonatomic, strong, readonly) NSString *defaultValue

Discussion

The value the field is initialized with, ie user is presented initially with this value.

Declared In

expanz_model_FieldInstance.h

dirty

Indicates the client model is not yet synchronized with the server model.

@property (nonatomic, readonly, getter=isDirty) BOOL dirty

Discussion

Indicates the client model is not yet synchronized with the server model.

Declared In

expanz_model_FieldInstance.h

disabled

Weather the field allows user input

@property (nonatomic, readwrite, getter=isDisabled) BOOL disabled

Discussion

Weather the field allows user input

Declared In

expanz_model_FieldInstance.h

fieldId

Unique identifier.

@property (nonatomic, strong, readonly) NSString *fieldId

Discussion

Unique identifier.

Declared In

expanz_model_FieldInstance.h

hint

Additional user instructions for the field.

@property (nonatomic, strong, readonly) NSString *hint

Discussion

Additional user instructions for the field.

Declared In

expanz_model_FieldInstance.h

label

Label to display next to the field

@property (nonatomic, strong, readonly) NSString *label

Discussion

Label to display next to the field

Declared In

expanz_model_FieldInstance.h

nullable

Indicates if the field is mandatory.

@property (nonatomic, readonly, getter=isNullable) BOOL nullable

Discussion

Indicates if the field is mandatory.

Declared In

expanz_model_FieldInstance.h

parentActivity

Reference to the activity this field belongs to.

@property (nonatomic, readwrite, assign) expanz_model_ActivityInstance *parentActivity

Discussion

Reference to the activity this field belongs to.

Declared In

expanz_model_FieldInstance.h

value

The value held by this field.

@property (nonatomic, readwrite, retain) NSString *value

Discussion

The value held by this field.

Declared In

expanz_model_FieldInstance.h

Instance Methods

didFinishEditWithValue:

Invoked when value is changed as a result of user edit. Marks the field as dirty.

- (void)didFinishEditWithValue:(NSString *)value

Discussion

Invoked when value is changed as a result of user edit. Marks the field as dirty.

Declared In

expanz_model_FieldInstance.h

didSynchronizeStateWithServerModel:

Invoked to indicate the server state has been synchronized with the client-side state. Marks the field as clean.

- (void)didSynchronizeStateWithServerModel:(NSString *)validatedValue

Discussion

Invoked to indicate the server state has been synchronized with the client-side state. Marks the field as clean.

Declared In

expanz_model_FieldInstance.h

initWithFieldId:nullable:defaultValue:dataType:label:hint: