|
|
Recent News
|
Hotel Software DocumentationCreating HTML Frames
IntroductionThis program allows using a web-window instead of the regular controls:
On this figure, you can see that instead of the standard folder list and the folder contents the window displays a Web page specified in the html code. Besides the regular HTML objects (text, links, tables, images, flash, etc.), you can call User Functions to integrate the Web page with a database. For example, by double-clicking on a link you can to some record, run a query, print a report, run a script, etc. In the current version, you can define the Web content for the following objects:
Editing HTML contentIt is recommended that you use a special Web-page editing program for creating an html page for your database. Once the Web page is created, copy the code between the <body> and </body> tags to the html-content editor window to add it to the database:
Close the editor, and you will see that the Web page you just created appears instead of the content of the folder:
To make the HTML interactive, use Text Formula Editor. With that editor, you can insert values of database variables, call of user function, formulas, constants, etc. to the content. Here we are going to take a look only at the insertion of a user function call in the code; to see the rest - please see the chapter Text Formula Editor. Adding User Function to HTML contentBefore adding a User Function call, we will need to create it with Script Designer. Suppose, we have a user function with the name Run Report and a single parameter report_name. To insert it in the code, click on the HTML UF Link... button:
In the window that appears, select the user function you just created and the parameter value (e.g., "customers"). The following text will be generated: <!Run Report Unknown block: CUSTOMERS!>Link Text</a> Replace the Link Text with the text to appear in the user function call link; for example, "Checked-In customers". The call of a user function must be completed with the </a> tag. So, our html code now looks as follows:
In the program, the Web page will appear as follows:
Clicking on the link will call "Run Report" with the parameter "customers".
See Also: |
Today"s Poll What software do use for your inn/b&b/hotel/etc? |
Home Page | Contacs | Terms and Conditions | Copyright (C) 2001-2010 Binary Brilliant Inc | |