Filter binding annotations

'has filters' = 'yes' (
	'filters' = [
		(
			'label' = "Service Provider"
			'type' = text .'Relation' ( )
		)
	]
)

I’m trying to add a row filter within the annotations.alan. I am receiving the following error:
state constraint violation for ‘binding’. Unexpected state for ‘type’:

annotations.alan(494, 21): - expected: ‘binding’

features.alan(1, 1): - but found: ‘configuration’

features.alan(1, 1): defined by .‘filters’.‘filters’.‘type’ of type ‘generator_contract’!‘properties’.‘properties’

.‘full screen planning’.‘plannings’.‘windows’.‘rows’.‘rows’.‘has children’.‘rows’.‘options’.‘has filters’.‘filters’.‘type’

Can anybody guide me towards the right direction? :slight_smile:

Given the snippet I assume your auto-webclient version is yar.15. Then it should be something like this:

'has filters' = 'yes' (
	'filters' = [
		(
			'label' = "Service Provider"
			'type' = 'text' (
				'text' = text .'Relation' ( )
			)
		)
	]
)

When upgrading to yar.17 it is different though and more closely resembles your code.

Also see the docs at: auto-webclient/generator_annotations grammar - Alan Platform - Model-Driven Software Development Platform