on ‎2025 Mar 07 3:41 PM
Hello together,
I have a simple view on which I want to display a table with claims (see XML Code).
Below that I want to display details when the user clicks on a row.
Is this possible?
We are using oData V4 so it is not possible to use the read method of the model in Java Script controller...
<mvc:View id="zXML" controllerName="test.ext.main.Claims" xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:l="sap.ui.layout">
<Table id="xmlTable" inset="false" items="{ToClaims}">
<columns>
<Column>
<Text text="Claim"/>
</Column>
<Column>
<Text text="ClaimPos"/>
</Column>
</columns>
<items>
<ColumnListItem type="Navigation" press="onItemPress">
<cells>
<Text text="{Claim}"/>
<Text text="{ClaimPos}"/>
</cells>
</ColumnListItem>
</items>
</Table>
<!-- Hidden Container - will be displaye weh onItemPress -->
<VBox id="AdditionalData" visible="false">
<Title text="Details"/>
<VBox>
<HBox>
<Label text="Claim"/>
<!--Input value="{Claim}" editable="false" /-->
</HBox>
<HBox>
<Label text="ClaimPos"/>
<!--Input value="{ClaimPos}" editable="false" /-->
</HBox>
</VBox>
</VBox>
</mvc:View>
Request clarification before answering.
| User | Count |
|---|---|
| 13 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.