官术网_书友最值得收藏!


Importing a theme>

The themes that come with APEX offer enough different styles and layouts to give your application a unique and satisfying look. However, if your application must conform to a specific corporate layout or your application must look the same as another APEX application, you can import a theme. APEX offers an easy way to import and use a theme. You can find several themes (free or commercial) on the Internet.

Getting ready

Make sure you have already downloaded the theme and put it on your filesystem.

How to do it...

  1. In the application builder, go to the application you are working on.
  2. Click on the Export/Import button.

    Select Import. In the next step, enter the name and path of the theme. You can also use the Find button to locate the file. An APEX import or export theme file is just a .sql file. You can even view the contents of the file. It should begin with something like this:

  3. In the file type radio group, select Theme Export. Optionally, you can select the file character set but most of the time Unicode UTF-8 is sufficient. Click on Next. The file will be imported.
  4. If the file has been successfully imported, you get a successful message. This does not mean that you can use it already. The theme has to be installed first. Click on Next to install now.
  5. In the next step, you can click on the Install into application listbox to select the application where it has to be installed. Click on the Install theme button.
  6. After successfully installing the theme, you will see the other installed themes. The active theme is marked with an asterisk (*). If you want to make the newly installed theme the current one, click on the Switch theme button in the upper-right corner.
  7. In the switch to theme listbox, select the desired theme. Click on Next.
  8. In the next step you get an overview of the templates and the status of the templates. If there is any problem check the templates and the classes. If everything is ok, click on the Next button.
  9. In the last step, click on Switch theme to confirm. You can now run your application to see what it looks like.

How it works...

A theme consists of templates. There are nine different types of templates:

  1. Breadcrumb
  2. Button
  3. Calendar
  4. Label
  5. List
  6. Page
  7. Popup lov
  8. Region
  9. Report

In the template you can edit the contents. You can make more templates of a certain type. For example, you can make two templates of type label. However, only one can be set as default for use in an application. Up till APEX 3.2, APEX makes use of an HTML table with the <td>, </td>, <tr> and the </tr> tags. As from version 4.0, APEX also uses div-based templates. It will load pages faster with better accessibility.

In a template you see substitution strings, keywords between pound signs (#), which Oracle replaces on rendering. Examples of substitution strings are title, user, and error message. The substitution strings appear in the form of:

#SUBSTITUTION STRING#

So with the pound signs at the beginning and the end of the string and in uppercase. For example the substitution string #TITLE# will be replaced with the title of the page, and #REGION_POSITION_02# will be replaced by the contents of the region where the display point (you can find it under the user interface section on the region definition) is set to region position 2.

主站蜘蛛池模板: 双辽市| 平安县| 永靖县| 元朗区| 西充县| 甘南县| 河池市| 探索| 从化市| 高邑县| 久治县| 中阳县| 韶关市| 宕昌县| 会昌县| 桂东县| 天柱县| 会泽县| 花垣县| 会理县| 金平| 陈巴尔虎旗| 河源市| 夹江县| 乌兰县| 乌什县| 南岸区| 鹤庆县| 通海县| 阳谷县| 卢湾区| 黎城县| 丹寨县| 河曲县| 云龙县| 凉城县| 墨脱县| 新津县| 霍林郭勒市| 深水埗区| 孝感市|