Expression binding to a sub-collection in a collection
Tagged: Bindingsubcollection
-
PatrickHas successfully completed the online course Introduction1 year ago #38073
Hi,
we created a collection with some parameters (strings, integers, etc.). One of these parameters is also a collection itself, meaning a sub-collection of that collection. For a TabContainer, we’ve set the binding to the collection (green text in screenshot).
But how to set a binding to the sub-collection that is inside such a collection (red text in screenshot)?
The sub-collection should contain its own objects.
regards
Attachments:
You must be logged in to view attached files.Jennifer HäfnerHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)Has successfully completed the online course Advanced (310)Has successfully completed the online course Advanced (320)Has successfully completed the Intermediate CertificationHas successfully completed the Advanced Certification1 year ago #38076::Hi Patrick,
For nested binding, you have to use a manual binding in the inner binding. So here are the steps:
- For the outer binding (in your case, the tabs), you can use the data source feature to configure the source of your binding (e.g., business object or global variable)
- For the inner binding (in your case, the list inside a tab), you have to use a manual binding:
- Click on the list and search for ‘items’. Next to the property ‘itemsPath’, click on the binding icon and select ‘Manual’. Then, enter the binding in the form ‘Screenname>SubCollectionName’ (without any brackets, as this is a string value). Set the property ‘itemsTemplate’ to true
- For the widgets inside the list items, you also have to use a manual binding: Click on the binding icon next to the property that you want to bind. Select ‘Manual’. Then, enter the binding in the form ‘{Screenname>SubCollectionPropertyName}’
- If you are using a global variable as the data source, use ‘variableHolder’ instead of the screen name in the manual binding
Let me know if you have any further questions.
Attachments:
You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.