I am developing a new app and have a question.
I have a view that displays the employees in my company. You can click on an employees name and
be transfered to a second view (see text below).
On the second view, I will display the employee's name and department,followed by two buttons that
allow you to choose what view to see next.
My question is how do I change the buttons so that I pass the employees badge number to the
next view?
<div data-role="view" data-title="Details" data-layout="main" data-init="onInit">
<div>
<ul data-role="listview" data-source="employee" data-template="employee-template" data-style="inset"></ul>
</div>
<div>
<a data-role="button">TRAINING COMPLETED</a>
<a data-role="button">TRAINING NEEDED</a>
</div>
</div>
<script id="employee-template" type="text/x-kendo-template">
<div>
<label>#: LastNameFirstName #</label>
<label>#: DepartmentName #</label>
</div>
</script>
<script>
// Load the Employee
var employee = new kendo.data.DataSource({
type: 'everlive',
transport: {
typeName: 'dbo_Employee'
},
schema: {
model: {
id: Everlive.idField,
fields: {
'LastNameFirstName': { defaultValue: '' },
'DepartmentName': { defaultValue: '' }
}
}
},
serverFiltering: true,
filter: {
logic: "and",
filters: [
{ field: 'CompanyId', operator: 'eq', value: sessionStorage.CompanyId },
{ field: 'IsActive', operator: 'eq', value: 1 },
{ field: 'Id', operator: 'eq', value: 1234 }
]
}
});
</script>