on 2019 Jun 03 8:25 AM
Hi Team,
I'm new to sapui5 and I want to use any repeating container like a list in an ObjectHeader, in which I can display ObjectAttributes. Instead of adding them manually I want to display it dynamically, similarly to a List-Control, where you can set path for items. I tried several things, but did not succeed. I can't put a List in the attributes directly, as it is no aggregation of it. Can anyone help?
This is what's it now:
<ObjectHeader title="{temp>message}" responsive="true">
<attributes>
<ObjectAttribute title="..." text="{temp>objectGroup}"/>
<ObjectAttribute title="..." text="{temp>object}"/>
<ObjectAttribute title="..." text="{temp>eventDate}"/>
<ObjectAttribute title="..." text="{temp>eventTime}"/>
<ObjectAttribute title="..." text="{temp>message}"/>
<ObjectAttribute title="..." text="{temp>date}"/>
</attributes>
</ObjectHeader>
And this is what I want:
<ObjectHeader title="{temp>message}" responsive="true">
<attributes>
<ObjectAttribute title="{temp>key}" text="{temp>value}"/> <-- only one for all
</attributes>
</ObjectHeader>
Best regards!
<ObjectHeader title="{temp>message}" responsive="true" attributes={bind to collection}><ObjectAttribute title="{temp>key}" text="{temp>value}"/> <-- only one for all</ObjectHeader>
give it a try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.