

Standard pushbutton which reacts to clicks Object you can set to Rectangle, Line, Triangle, or Imageĭisplays a bar chart based on a list of values

The following components are available for JavaScript remote forms under the “JavaScript Components” tab (group button) in the Component Store, plus there are a few “native” components under the “JavaScript Native Components” tab (List, Slider & Switch), also listed here.Īnimated image to display during a long process or Omnis Server activity You can examine the remote forms and components in these example apps, and look at the code behind each component: you can double-click on a JavaScript component in design mode to see its code methods in the method editor. In addition, the Applets option under the Hub in the Studio Browser has several sample web apps that use many of the JavaScript Components, including a Contacts app, a Holidays app, and a Webshop app which has a product catalog and a prototype shopping cart. Many of the example apps in the online gallery are featured in the example code in this chapter, and many of them also appear under the Samples section in the Hub in the Studio Browser, so refer to this for example code and apps. Or you can use the shortcut: /jsgallery10

The JavaScript Apps Gallery on the Omnis website showcases many of the JavaScript Components and provides a sample app which you can download and run in the latest version of Omnis Studio. You can create your own custom JavaScript components, defined using JSON, which will appear under the JSON Components tab in the Component Store: these are described in the JSON Components chapter. The components are displayed under the JavaScript Components tab in the Component Store when a remote form is opened in design mode, while some are available under the JavaScript Native Components tab the standard JS components and Native components are listed in this chapter in alphabetical order, starting with the Activity Control. The Component Store contains over 40 ready-made components for use in Remote Forms and the JavaScript Client. Creating Web & Mobile Apps Chapter 3-JavaScript Components
