Oracle Magazine, September/October 2017
Database Developer LOW CODE condition is true namely when the Toggle button is clicked 7 In the properties on the right change Action to Execute JavaScript Code ORACLE MAGAZINE SEPTEMBER OCTOBER 2017 66 For the Code attribute enter if linechart_ jet ojChart option orientation vertical linechart_ jet ojChart orientation horizontal else linechart_ jet ojChart orientation vertical 8 Click the Run icon in the upper right of Page Designer to run your page Click the Toggle button Your application page now provides a button for toggling the orientation of the line chart from vertical to horizontal The static ID attribute you entered in the Creating the Application section gives you the ability to reference the Oracle JET object in JavaScript by appending _ jet to the static ID attribute and employ all elements of the Oracle JET API Using a very small amount of JavaScript you quickly and easily added interactivity to your application Your application should look similar to Figure 2 ADDING A SECOND CHART AND A CUSTOM LEGEND With Oracle Application Express you can also go outside the bounds of the framework and achieve high control by including large amounts of code where necessary This code can include CSS JavaScript HTML SQL or PL SQL
You must have JavaScript enabled to view digital editions.