...
Code Block |
---|
|
<div data-ex-bind="field" data-ex-fieldid="DriverNotes">
<h3>Notes</h3>
<textarea data-ex-attribute="value" style="width: 100%; height: 50px; resize: none;"></textarea>
<button class="btn btn-primary">Save</button>
</div> |
Menu app is used for Meal selections. Who would be supplier? How many guests are there? What are the selections of menu items?
To build Menu page, we need to see traffic debug and XML request to identify activity name and style.
Image Added
Code Block |
---|
|
<div class="row" data-ex-bind="activity" data-ex-activityname="ERP.TourRun" data-ex-activitystyle="MealMenu">
</div> |
Please note that Menu app is still in-progress. But still we will explain the fields that are displayed in Menu app. We will explain how these data fields are bound.
Image Added
To fetch data for all menu items, we need to build request and bind fields and display data in table as follows:
Code Block |
---|
|
<div>
<table class="table" id="mealMenuSelections" data-ex-bind="data" data-ex-populatemethod="listMenuSelections"></table>
</div> |
To fetch data for only work meal menu items, we need to build request and bind fields and display data in table as follows:
Code Block |
---|
|
<div>
<table class="table mealMenuSelectionSummary" id="mealMenuSelectionSummary" data-ex-contextobject="WorkMealMenu" data-ex-bind="data" data-ex-populatemethod="publishSelectionsSummary">
</table>
</div> |
To add Notes field to Menu app, use data-ex-bind="field" data-ex-fieldid="WorkMealMenu.Notes".
Code Block |
---|
|
<di data-ex-bind="field" data-ex-fieldid="WorkMealMenu.Notes">
<h3>Notes</h3>
<textarea style="width: 100%; height: 50px;" data-ex-attribute="value"></textarea>
</di> |
To add ETA field to Menu app, use data-ex-bind="field" data-ex-fieldid="WorkMealMenu.ETA".
Code Block |
---|
|
<div data-ex-bind="field" data-ex-fieldid="WorkMealMenu.ETA">
<span>ETA</span>
<input id="mealMenuEta" tabindex="1" data-ex-attribute="value" type="number" class="form-control" />
</div> |
To add Send Email button to Menu app, specify type="button" data-ex-bind="method" data-ex-method="sendSelectionsEmail".
Code Block |
---|
|
<button id="passengerNoShowButton" type="button" data-ex-bind="method" data-ex-method="sendSelectionsEmail" class="btn btn-lg btn-primary">
Send Email
</button> |
Return Manifest