cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPUI5 Table with navigation to details on same view

UweI
Explorer
0 Likes
291

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>

 

Accepted Solutions (0)

Answers (0)