Other UI, code changes
Previous Topic  Next Topic 
The generated cloud apps offer great flexibility. The developers can modify UI and business logic completely by editing the generated code.
  • View is in index.html, styling in style.css and business logic in main.js.
  • For example, lets say you want to add a login form as the first screen. Just add a DIV with required HTML elements in the generated index.html.


  • Lets say the login form looks as shown below:


  • Now all you need to do is update javascript so that the login div is shown first. This can be done by simply calling a function on the ITAnyplace object: itaObject.switchDiv(newDiv).
  • Once the UI works as required, add a button click handler in javascript, which can authenticate against a webservice as required.


  • For hooking it up with a backend webservice, see how the generated code communicates with webservices and parses responses. doAction('sync') function of ITAnyplace object can be used to send any data to a url. Responses are parsed in parseServerXML in main.js