Skip to content

lucasbraum/HCPtrainingFrontEnd

Repository files navigation

USeful links

Donwload Application https://mdocs.sap.com/mcm/public/v1/open?shr=dofdgMOS54kkJW04zEJOz21I59_wN4kddPC9VRFx5WE&obj=iwVq4zD5Ovgnl8K0zfY0AatMvXl69c98bjom622fpq8

UI5 Documentation https://sapui5.hana.ondemand.com/sdk/#content/Overview.html

UI5 mobile library explored https://sapui5.hana.ondemand.com/sdk/explored.html

UI5 icons explorer https://openui5.hana.ondemand.com/iconExplorer.html

BACKEND URL https://hcptrainingi845130trial.hanatrial.ondemand.com/SAPTaskTrackerBackEnd/rest/task

FRONT-END DEVELOPMENT

Access the HCP Cockpit > Subscriptions > webide > Click in the Application URL

Creating a new UI5 project

  • File > New > Project from Template > SAPUI5 Application Project
  • Select the initial view to be XML and name it Tasks

Developing the main view

  • Open the file Tasks.view.xml
  • Change the page title
  • Add a List with a CustomListItem containing a CheckBox
  • Add a footer with a toolbar and a button to add new tasks

Developing the creation view

  • Right click on view folder > new > SAPUI5 View
  • Name it TaskCreation and select view type XML
  • Open the index.html > add an id pro the App > instantiate a new View and add it to the App
  • Open the TaskCreation.view.xml > add a Label and an Input > Add a footer with a button

Navigating between views

  • Open the Tasks controller and implement the button press
  • Open the TaskCreation view and add the back button to the page
  • Open the TaskCreation controller and implement the back button press

Creating a destination

  • Go to the cockpit > destinations > new destination
  • Fill the name field >Fill the URL field with your backend URL > Save
  • In the webide, go to the neo-app.json and declare the destination

Binding the list

  • Open the Tasks controller
  • Declare a JSON model and the destination name
  • Go to the onInit method > set the model data > set the model to the view

Creating tasks

  • Open the TaskCreation controller
  • Implement the save button press to get the value of the input field
  • Implement a function to make an ajax call to the backend in order to create a new Task
  • Call the ajax function from the button press function, passing the input value

Loading the tasks from the backend

Updating the tasks

Deleting the tasks

Refresh the list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published