Class: QgsRelationReferenceFieldFormatter¶
- class qgis.core.QgsRelationReferenceFieldFormatter¶
Bases:
QgsFieldFormatter
Field formatter for a relation reference field.
A value relation field formatter looks up the values from features on another layer.
New in version 3.0.
QgsRelationReferenceFieldFormatter() Default constructor of field formatter for a relation reference field.
QgsRelationReferenceFieldFormatter(
QgsRelationReferenceFieldFormatter
)Methods
- param config:
- param layer:
- rtype:
str
- param layer:
- param layer:
- availableValues(self, config: Dict[str, Any], countLimit: int, context: QgsFieldFormatterContext) List[Any] ¶
- Parameters:
config (Dict[str) –
countLimit (int) –
context (QgsFieldFormatterContext) –
- Return type:
List[Any]
- createCache(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any]) Any ¶
- Parameters:
layer (QgsVectorLayer) –
fieldIndex (int) –
config (Dict[str) –
- Return type:
Any
- id(self) str ¶
- Return type:
str
- representValue(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any], cache: Any, value: Any) str ¶
- Parameters:
layer (QgsVectorLayer) –
fieldIndex (int) –
config (Dict[str) –
cache (Any) –
value (Any) –
- Return type:
str
- sortValue(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any], cache: Any, value: Any) Any ¶
- Parameters:
layer (QgsVectorLayer) –
fieldIndex (int) –
config (Dict[str) –
cache (Any) –
value (Any) –
- Return type:
Any