

Since I have the Event ID available in the detail view by retrieving the argument in the onRouteMatched function, I can query the API for more specific information about that event. The model that is bound to the table is available by using the getBindingContext(“modelName”) function on the event source. In order to replace the array index with the event id in the navigation functions in your controller, I updated the navTo parameter to be a property from my model.

My detail view uses the Event ID to complete the navigation. This status is preset based on which Icon Tab I want my app to start on when the page initializes, so you need to updated your onInit function to initialize the selected tab attribute in the Icon Tab Filter as well as call the initial status version of the API call. To accomplish this, I added a new parameter for status to my main loadEvents function. My Icon Tab Filter function calls my main loadEvents function. You will need to add a new function in your main controller to handle the Icon Tab press. Selecting a different status calls the Eventbrite service with that status’s filter applied. However, you do not need to do it this way.īecause there are several different statuses for events and our team puts on a lot of CodeJams, I added an Icon Tab filter at the top to view events by status. Since the Eventbrite event has some nested JSON and my main table model contains multiple API call, I found this easier to manage. I also updated my model to create a new data structure using a JSON Model that only has the properties I need from the API response. Eventbrite can handle a “TOKEN” parameter in the request, or you can use the “HEADERS” method I discussed in the API Call tutorial (see Step 9) for your authentication.

In your controller, you will need to update your AJAX call as well. Update the XML view table bindings to the Eventbrite event properties you want to display. In my application’s case, this is our SAP CodeJam admin. This method call returns all the events owned by a specific user in Eventbrite.

In my example, I used the name, icon, date, status, and capacity attributes from the users owned event method call on the main view of the application. To better understand how we can use an Eventbrite event in place of the Slack message, take a look at the Eventbrite API documentation for the Event object.īased on the structure of the Event object, you will have to update some of your bindings in your view. The same table can be used to display an Eventbrite event. Need to get some of your Eventbrite data into UI5 application? My latest tutorial series (start with creating a destination) guides you through creating a table with Slack messages for your application.
