blob: 50ab6ad0dd55620c46562b0a196cff7eefee0a09 [file] [log] [blame]
package ${{BASIC_PROJECT_NAME}}.uimodels
import ${{BASIC_PROJECT_NAME}}.dtos.*
ideview Employee {
datasource dsEmployee:EmployeeDto
horizontalLayout person {
textfield firstname
textfield lastname
}
bind dsEmployee.first_name <--> [this.person.firstname].value
bind dsEmployee.last_name <--> [this.person.lastname].value
}
mobile SupplierUi2 {
navRoot {
navPage SuppliersList { // Adding actions to the navigation bar.
navbarActions {
filter icon "" id org.eclipse.osbp.actions.filter
save icon "" id org.eclipse.osbp.actions.save
}
// the table
table SupplierTable {
type SupplierDto useBeanService
selectionType single
columns {
column company
column headquarter_city
} // Now lets bind the selection event from the table to a
// "navigateTo" command which will open the Detail-NavigationPage
bind [this].selection --> navigateTo navPage SupplierDetail {
type SupplierDto
// A navigationbar action to create new messages
navbarActions {
save icon "" id org.eclipse.osbp.actions.save
} // Using a vertical group to visualize the customer properties
mobileHorizontalLayout {
autowire source [this..SupplierDetail].value
}
bind [this].onNavigateBack --> [this..SupplierTable].refresh
}
}
}
}
align fill-fill
}