RetrievePage.qml Example File
databasecrud/assets/RetrievePage.qml
import bb.cascades 1.0
Container {
bottomPadding: 30
ListView {
horizontalAlignment: HorizontalAlignment.Fill
dataModel: _app.dataModel
listItemComponents: [
ListItemComponent {
type: "item"
StandardListItem {
imageSource: "asset:///images/icon1.png"
title: qsTr("%1 %2").arg(ListItemData.firstName).arg(ListItemData.lastName)
description: qsTr("Unique Key: %1").arg(ListItemData.customerID)
}
}
]
}
Button {
horizontalAlignment: HorizontalAlignment.Center
text: qsTr("Retrieve")
onClicked: {
_app.readRecords();
}
}
}