Navigation:  How to... > How to configure… >

Integration of a GUI Module representing News

Previous pageReturn to chapter overviewNext page

The WebOffice html client is able to integrate a GUI module representing news when calling the project. For that configure an external GUI module in the project configuration that refers to the file 'C:\Tomcat\webapps\<WebOffice-Applikation>\pub\custom_pages\news_check.jsp'.

 

Configuration of the external GUI module 'news_check.jsp'

Configuration of the external GUI module 'news_check.jsp'

 

Configure the window type 'Hidden' in the 'Display mode IFrame'.

 

Configuration Display mode IFrame - Window type 'Hidden'

Configuration Display mode IFrame - Window type 'Hidden'

 

In a next step create a file 'news.htm' and save it to 'C:\Tomcat\webapps\<WebOffice-Applikation>\pub\custom_pages\'. The file 'news.htm' contains the news, that should be presented when calling the project.

 

'news.htm' in the directory 'C:\TomCat\webapps\<WebOfficeApplikation>\pub\custom_pages\'

'news.htm' in the directory 'C:\TomCat\webapps\<WebOfficeApplikation>\pub\custom_pages\'

 

Next open the file 'news_check.jsp' in an editor an make some settings concerning the display of the news in the WebOffice 10 R3 HTML client:

String newsFilePath: path to the file representing the news (relative to the WebOffice root directory).

String displayMode: display mode for the news page (0=floating, 1-4=docked to quadrants 1 to 4, minimized=floating minimized)

String headline: headline of the module

String width: width of the module in pixel

String height: height of the module in pixel

boolean closeable: setting, if the module can be closed by the user (true/false).

boolean dockable: setting, if the module can be docked by the user (true/false).

 

Extract from 'news_check.jsp'

Extract from 'news_check.jsp'

 

The file 'news_check.jsp' checks, if the file 'news.htm' exists in the configured directory.

If the file exists, then an additional iFrame with the settings in 'news_check.jsp' will be opened when calling the project.

If the file does not exist, the project will be called without any iFrame with news.

So the administrator only has to delete the file 'news.htm' if there aren't any news respectively put the file into that directory to represent news.

 

Call the project with a GUI module representing news

Call the project with a GUI module representing news

 

Note: Although a file representing the news does not exist, the ScriptAPI (.js file) will be loaded at any call of the project.