Class: QgsRelationReferenceFieldFormatter¶
- class qgis.core.QgsRelationReferenceFieldFormatter¶
Bases:
QgsFieldFormatter
Default constructor of field formatter for a relation reference field.
QgsRelationReferenceFieldFormatter(
QgsRelationReferenceFieldFormatter
)Field formatter for a relation reference field.
A value relation field formatter looks up the values from features on another layer.
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