|
Version
WORK in PROGRESS
Table of Contents 1.2 What do you need to understand this book 6 3 Adapting the openCRX HTML GUI to Your Needs 8 3.1 Overview openCRX GUI Types 8 3.2 Customizing Options openCRX HTML GUI 9 3.3 Things to do before you start Customizing openCRX 10 3.4 Limitations of the generic HTML GUI 11 4.1.1 File Overloading at the Project Level 13 4.1.2 UI Configuration Overloading 13 4.1.3 Code Table Overloading 13 4.2 “Adding” Fields / Extending Objects 14 4.2.1 User-definable attributes of CrxObject 14 4.2.2 Property Data Bindings 15 5.1 Enabling/Disabling Packages at the Application Level 16 5.2 Enabling/Disabling Packages at the User Level 17 6.1 Enabling/Disabling Locales at the Application Level 18 6.2 Setting the Default Locale at the User Level 19 7 CSS, Headers, Footers, etc. 20 7.2 HTML Header and Footer Files 21 8.2 UI Configuration Overloading 23 8.5.1 Expanding/Collapsing Tabs 27 8.5.2 AdditionalElementDefinition 28 8.5.3 Base Filter for Grid Tabs 29 8.5.4 Selection of Filterable Attributes (maxMember) 30 8.5.5 Selection of Visible Attributes (showMaxMember) 30 8.5.6 Advanced Attribute Selection (showMemberRange) 30 8.6 Various XML Tags Explained 31 8.6.20 orderObjectContainer 36 8.7.1.1 A comprehensive example with PropertyDataBindings 37 8.7.1.2 BooleanPropertyDataBinding 44 8.7.1.3 IntegerPropertyDataBinding 45 8.7.1.4 DecimalPropertyDataBinding 45 8.7.1.5 StringPropertyDataBinding 45 8.7.1.6 DatePropertyDataBinding 46 8.7.1.7 DateTimePropertyDataBinding 46 8.7.1.8 ReferencePropertyDataBinding 46 8.7.2 DataBinding ProductConfigurationSet 46 8.7.3 DataBinding ProductConfigurationTypeSet 46 8.7.4 DataBindings with Referenced Objects 46 8.7.5 DataBindungs with Composite Objects 46 8.7.6 DataBindings for Addresses 47 8.7.6.1 EmailAddressDataBinding 47 8.7.6.2 PhoneNumberDataBinding 47 8.7.6.3 WebAddressDataBinding 47 8.7.7 DataBinding AssignedActivityGroupsDataBinding 48 8.7.8 DataBinding DocumentFolderAssignmentsDataBinding 48 8.7.9 DataBinding FilteredActivitiesDataBinding 49 8.7.10 DataBinding FormattedFollowUpDataBinding 50 8.7.11 DataBinding FormattedNoteDataBinding 51 8.7.12 DataBinding JoiningListDataBinding 51 9.2.1 Adding Codes to Existing Code Tables 52 9.2.2 Disabling Existing Codes 52 9.2.3 Replacing Existing Code Tables 52 9.3 Segment-Specific Code Tables 52 10.1 MenuOps – openCRX Operations Menu 53 10.2 Navigation – openCRX Breadcrum 53 10.3 North – openCRX Header 53 10.4 RootMenu – openCRX Top Level Tabbed Menu 53 10.5 RootPanel – openCRX Top Level PopUp Menu 53 10.6 Search – openCRX Index-based Search 53 14 Advanced Customizing Options 57 14.5 Application Logic Extensions 57
List of Figures Figure 1: Types of openCRX GUIs 8 Figure 2: Non-Java GUIs for openCRX 8 Figure 3: openCRX Servlets enabling access with third-party clients 9 Figure 4: Customizing Options – openCRX Standard HTML GUI 9 Figure 5: openCRX Development and Customizing with Custom Project 12 Figure 6: UML Model - CrxObject 14 Figure 7: Add the string field Y!M nick to Contact objects 14 Figure 8: Launch Wizard User Settings 17 Figure 9: Wizard User Settings – enable/disable Root Menu Entries 17 Figure 10: Set Default Locale by Saving User Settings 19 Figure 11: Placement of attributes in the attribute pane (Tab, Group, Position) 25 Figure 12: Placement of grid tabs (Pane, -, Position) 26 Figure 13: Placement of attributes in grids (Level 0, Level 1, Level 2) 27 Figure 14: Sample Extension of class Product with PropertyDataBindings 42 Figure 15: Sample Extension of class Product with PropertyDataBindings 43 Figure 16: Property Set Extension 44
List of Listings Listing 1: UI Customizing File zorder_contact.xml 15 Listing 2: List of Packages in web.xml 16 Listing 3: Enabling/Disabling Packages in web.xml 16 Listing 4: Locales in web.xml 18 Listing 5: Activating/Deactivating Locales in web.xml 18 Listing 6: Active Locales in Login.jsp 19 Listing 7: UI Customizing File zorder_product.xml 38 Listing 8: Example AssignedActivityGroupsDataBinding 48 Listing 9: Example AssignedActivityGroupsDataBinding 49 Listing 10: Example FormattedFollowUpDataBinding 50 Listing 11: Example FormattedNoteDataBinding 51 Listing 12: Example JoiningListDataBinding 51 Listing 13: uiRefreshRate in web.xml 58 Listing 14: load-on-startup in web.xml 58 Listing 15: sesstion-timeout in web.xml 59 Listing 16: transport-guarantee in web.xml 59
1 About this BookThis book describes various ways of customizing the openCRX AJAX HTML GUI to adapt the look and feel to your personal tastes and preferences or to your company's CI (corporate identity). openCRX is the leading enterprise-class open source CRM suite. openCRX is based on openMDX, an open source MDA framework based on the OMG's model driven architecture (MDA) standards. This guarantees total openness, standards compliance, a state-of-the-art component-based architecture, and virtually unlimited scalability. 1.1 Who this book is forThe intended audience are openCRX administrators and advanced users. 1.2 What do you need to understand this bookIt is helpful to have a good understanding of the openCRX architecture. We assume that you are able to read/understand the openCRX UML models and the openCRX Javadoc (Java API). It is also assumed that you are familiar with XML files and you should know how to program JSPs. 1.3 Tips, Warnings, etc.We make use the following pictograms:
2 PrerequisitesTo work through some of the examples and in particular to build your own customized openCRX, there are some prerequisites:
You can either follow the openCRX Server Installer documentation at http://www.opencrx.org/server.htm or you can do a manual installation of openCRX following the guide openCRX Manual Installation Tomcat 6.
Follow the openCRX SDK Installer documentation at http://www.opencrx.org/sdk.htm.
If you decide to
manipulate files directly in the apps folder, the same files are
contained in one of the subdirectories of the
directory 3 Adapting the openCRX HTML GUI to Your Needs3.1 Overview openCRX GUI TypesopenCRX is distributed with a generic HTML GUI (based on openMDX/portal) that connects to the openCRX API as shown below: Figure 1: Types of openCRX GUIs This Ajax-enabled HTML GUI supports a wide range of modern browsers, including Firefox, Opera, Safari, Chrome, KDE Konqueror, and IE. It goes without saying that you can also program your own custom GUI. openCRX/store is an example DHTML GUI consisting of a set of manually programmed JSPs connecting to the openCRX API. It is also possible to develop non-Java-based GUIs for openCRX. You could – for example – write an XML-RRC Adapter (see Apache XML-RPC): Figure 2: Non-Java GUIs for openCRX Another option you might consider is REST (Representational State Transfer); see also http://www.opencrx.org/opencrx/2.3/new.htm#REST and the openCRX Wiki (“How to use the REST servlet”). openCRX includes a set of servlets (caldav, ical, imap, vcard, rest, news, ...) allowing you to connect to openCRX with a wide range of specialized third-party clients like Mozilla Thunderbird, MS Outlook, SmartPhones, and others: Figure 3: openCRX Servlets enabling access with third-party clients 3.2 Customizing Options openCRX HTML GUIThe openCRX Standard HTML GUI can be customized in many ways to suit your needs: Figure 4: Customizing Options – openCRX Standard HTML GUI Basic customizing options are relatively straight-forward and require no (or only moderate) programming know how. Advanced customizing options, however, require a good understanding of the openCRX architecture. This guide covers basic customizing options. If you're interested in advanced customizing options, have a look at the source code or consider attending an openCRX Developer Workshop (see www.opencrx.org for more information). 3.3 Things to do before you start Customizing openCRXAdapting openCRX to your needs typically involves the following steps:
Obviously, if you're only interested in changing some of the colors, there is not much to do in step 2 above. However, if you plan to capture your companies business objects, business processes, forms, etc. with openCRX, it pays off to spend some time on collecting the requirements and then properly map them to openCRX before you get down to customizing...
3.4 Limitations of the generic HTML GUIEven though the openCRX HTML GUI is extremely flexible, we would like to point out a few limitations (not due to bad design, but rather we are looking at advanced features that have not been implemented yet). 3.4.1 Role-based UIopenCRX features UI perspectives, a mechanism that enables users to have different UI customizations based on the current role (e.g. one GUI for sales and another GUI for the back office). More information is available from http://www.opencrx.org/opencrx/2.3/new.htm#UIPerspectives. Obviously, the same goal can also be achieved with multiple web applications. Simply create a custom project for each role / customization and then deploy multiple web applications. 3.4.2 Model PermissionsModel permissions are not implemented yet. Hence you cannot control access to individual attributes of an object with simple customization (the openCRX security plugin controls access to complete objects, not to individual attributes of an object). You can, however, deploy multiple web applications or work with Layout JSPs to achieve the same goal. Alternatively, once the root admin (admin-Root) has defined a security policy, segment administrators can grant and/or revoke various GUI-level permissions . More information is available in the openCRX Admin Guide at http://www.opencrx.org/documents.htm. 4 Important HintsThe following information is so important that it deserves its own chapter! 4.1 OverloadingOverloading is a concept that allows you to selectively enhance (or even replace) features of the standard distribution of openCRX with your own changes and/or extensions.
Figure 5: openCRX Development and Customizing with Custom Project
4.1.1 File Overloading at the Project LevelTypically, files in your custom project will be added to the custom EARs. However, if a file in your custom project has the same name as a file of the standard distribution, your file will actually replace the respective file of the standard distribution when you build custom EARs.
4.1.2 UI Configuration OverloadingIt is likely that you want to change some of the default customizing. Quite possibly, however, (a) you want to make a few changes only and (b) you want to keep these changes if you upgrade to a new version of openCRX. This is where UI configuration overloading can add value. Instead of changing the original UI configuration files provided with the standard distribution you create a new configuration file (or multiple configuration files) containing all your changes. Make sure that you name your file(s) containing changed UI Element Definitions such that your changes are loaded AFTER the default configuration files, thereby overloading the original configuration. More information is available in chapter 8.2 UI Configuration Overloading. 4.1.3 Code Table OverloadingSimilar to UI configuration overloading, you can also overload code tables. Instead of changing original code tables you create new code table files that contain your changes/extensions. It is also possible to deactivate codes of the standard distribution. Make sure that you name your file(s) containing changed code tables such that your changes are loaded AFTER the default code tables, thereby overloading the code tables. More information is available in chapter 9.2 Code Table Overloading.
4.2 “Adding” Fields / Extending ObjectsEven though the openCRX UML Model covers a wide range of use cases, you may still come to the conclusion that you have to “add” a field to a particular object. While the newbie's approach would be to add a field to the appropriate database table and then patch the code a bit here and there, take our advice and make use of the advanced extension mechanisms provided by openCRX. 4.2.1 User-definable attributes of CrxObject
To make an example, let's assume your Contacts absolutely need another String field to store the Yahoo! Messenger Nickname as shown below: Figure 7: Add the string field Y!M nick to Contact objects All you have to do to “add” the field Y!M nick to Contacts is to deploy the following UI customizing file zorder_contact.xml to the directory {TOMCAT_INSTALL_DIR}/apps/opencrx-core-CRX/opencrx-core-CRX/WEB-INF/config/ui/Root/en_US and then restart Tomcat. Listing 1: UI Customizing File zorder_contact.xml <?xml version="1.0" encoding="UTF-8"?> <org.openmdx.base.Authority
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="org:openmdx:ui1"
xsi:noNamespaceSchemaLocation="xri://+resource/org/openmdx/ui1/xmi1/ui1.xsd">
The above file is – strictly speaking – not adding a field to the class Contact, it is rather activating the attribute userString0 of the class Contact (which it inherits from the class CrxObject). The field userString0 is already available in the standard distribution of openCRX, it's just not visible by default.
4.2.2 Property Data BindingsWhat can you do if you need even more user-definable attributes, i.e. more than the ones provided by CrxObject? This is where the PropertyDataBinding concept comes in handy. With PropertyDataBindings you get access to a virtually unlimited pool of user-definable attributes. See chapter 8.7.1 PropertyDataBinding for a detailed introduction into this topic). 5 Managing Packages5.1 Enabling/Disabling Packages at the Application LevelWith the openCRX standard distribution all available packages are enabled. The openCRX administrator may wish to disable certain packages at the application level if they are not used. This chapter shows how you can achieve this. In the custom project sample, the package list is contained in the file: opencrx—custom\sample\src\data\org.opencrx.sample\WEB-INF\web.xml Once deployed on Tomcat, the package list is contained in the file apps\opencrx-core-CRX\opencrx-core-CRX\WEB-INF\web.xml Look for the section <!-- Admin --> to find a list of available packages: Listing 2: List of Packages in web.xml <!-- Admin
-->
You can disable packages by commenting them out (<!-- to open a comment and --> to close a comment). The following example shows how to deactivate the package depot1: Listing 3: Enabling/Disabling Packages in web.xml
...
5.2 Enabling/Disabling Packages at the User LevelIndividual user can enable/disable root menu entries with the wizard User Settings (available on a user's Homage): Figure 8: Launch Wizard User Settings Once the wizard has loaded, uncheck entries you don't need: Figure 9: Wizard User Settings – enable/disable Root Menu Entries
6 Managing LocalesThe default installation of openCRX activates all locales that are included in the Open Source distribution. The openCRX administrator may wish to deactivate certain locales from the locale list. This chapter shows how you can achieve this. 6.1 Enabling/Disabling Locales at the Application LevelThe locale list is contained in the file opencrx-core-CRX.ear\opencrx-core-CRX.war\WEB-INF\web.xml Look for the section <!-- locales --> to find a list of available locales: Listing 4: Locales in web.xml <!-- locales
-->
You can deactivate locales by simply commenting them out. The following example shows how to deactivate the locale de_CH. Listing 5: Activating/Deactivating Locales in web.xml <!-- locales
-->
As the Login page is displayed before the authentication of the user has taken place, Login.jsp cannot access the above information. That is why the list of available and active locales are maintained in the file localeSettings.jsp as well. Changing the list of active locales is straightforward. Comment out any of the lines in the following code segment of localeSettings.jsp to disable the respective locale: Listing 6: Active Locales in Login.jsp ...
The above example shows how to disable the locales fa_IR and nl_NL in the Login page of openCRX.
6.2 Setting the Default Locale at the User LevelA user's default locale can be set by choosing/activating the desired locale and then clicking on [Save Settings] in the header of the application as shown below: Figure 10: Set Default Locale by Saving User Settings If the login page supports a user's preferred locale xx_YY, you can request the login page in that locale xx_YY by appending the string "?locale=xx_YY" to the default login URL. Example: the following URL loads the German login page: http://demo.opencrx.org/opencrx-core-CRX/Login.jsp?locale=de_CH 7 CSS, Headers, Footers, etc.7.1 Cascading Style SheetsThe directory ...\opencrx-core-CRX\_style contains various CSS files:
Please note that various third-party modules (e.g. WYMeditor, wiky) may also load CSS files. Those files are typically located within the respective modules directory structure (e.g. .../javascript/wymeditor, .../javascript/wiky).
7.2 HTML Header and Footer FilesThe Layout JSPs and the login page (Login.jsp) by default include various HTML files. They are located in the directory ...\opencrx-core-CRX and you can adapt them to your liking:
See also chapter 13 Layout JSPs for additional information.
8 UI XML Files8.1 Overview8.2 UI Configuration Overloading8.3 InspectorThe inspector shows an object with its attributes:
8.4 Attribute Pane8.4.1 TabsThe ui file common.xml contains tab definitions that apply to all objects :
You can define your own tabs. The following example shows the definition of the tab [Accounts] of the attribute pane of accounts (ui file account.xml):
8.4.2 Field GroupsIn the ui file common.xml there are various default field groups defined that apply to all objects, e.g. Field Groups 0, 10, 20, and 30 in the the tabs [General] and [Details]. You can define your own field groups like shown in the following example:
8.4.3 Fields / AttributesWith order (or more specifically orderFieldGroup) you can define the positioning of an object's attribute in the attribute pane. You must provide three values in the form of <_item>xxx</item> where the first value corresponds to the id of the Tab, the second value to the FieldGroup and the third value to the position within the respective FieldGroup. The following example explains the placement of a contact's salutation: Figure 11: Placement of attributes in the attribute pane (Tab, Group, Position) With the tag <columnBreak>true</columnBreak> you can place the current attribute in a new column within the given Field Group.
8.5 Grid PanesShared and composite associations as well as multi-valued references are mapped to grids. Such grids can be positioned by providing three values in the form of <_item>xxx</item> where the first value corresponds to the id of the Grid Pane and the third value to the position within the respective Pane (the second value is not used). The following example explains the placement of an accounts composite association “member”: Figure 12: Placement of grid tabs (Pane, -, Position)
With order (or more specifically orderObjectContainer) you can define the positioning of an object's attribute within grids. You must provide three values in the form of <_item>xxx</item> where these values will used to define an (alphabetical) order. The following example explains the placement of a an address's usage: Figure 13: Placement of attributes in grids (Level 0, Level 1, Level 2) 8.5.1 Expanding/Collapsing TabsGrid Tabs are rendered collapsed if the label starts with a “»” character:
8.5.2 AdditionalElementDefinitionWith AdditionalElementDefinitions you can define additional grid tabs (optionally with base filters). Have a look at the UI XML file accounts.xml which makes use of this feature to create various additional grid tabs:
The respective base filters (see chapter 8.5.3 Base Filter for Grid Tabs for additional information) are defined in the following file: ...\filters\org.opencrx.kernel.account1.Segment.account.xml 8.5.3 Base Filter for Grid TabsYou can (optionally) define base filters for grid tabs. That is, for example, an elegant way of splitting up the tab [All Accounts] into [Accounts] (that are active) and [Accounts (disabled)]. The following example assumes that you have created an accounts tab with id 10000 (with an AdditionalElementDefinition) and shows how to create a base filter that selects only accounts that have a an address with a postal code equal to 8000. Create a file named org.opencrx.kernel.account1.Account.postal.xml with the following content and then move the file to the directory ...\WEB-INF\config\filters:
See also the discussion
at 8.5.4 Selection of Filterable Attributes (maxMember)With maxMember you can define the number of attributes that are available for filtering/sorting in the openCRX GUI. Setting maxMember to a value “n” implies that (at most) n attributes are available for filtering/searching even though more attributes would be available given the model. 8.5.5 Selection of Visible Attributes (showMaxMember)With showMaxMember you can define the number of attributes (at most “maxNumber” attributes) that are visible in a grid. If all the attributes that are filterable/searchable should also be visible, there is no need to set showMaxMember. 8.5.6 Advanced Attribute Selection (showMemberRange)There are quite a number of grids that contain objects with quite different attribute sets (think of subclasses), e.g. the address grid contains web addresses, phone numbers, e-mail addresses, etc. As it does not make a lot of sense to display the complete (sparse) matrix, you can selectively pick individual attributes (or even ranges of attributes) to display in a grid. The following example shows how showMemberRange is used to define the grid “Groups” as it is available in the standard openCRX distribution:
8.6 Various XML Tags Explained8.6.1 active
8.6.2 backColor
8.6.3 changeable
8.6.4 color
8.6.5 columnBreak
8.6.6 defaultValue
8.6.7 eventHandler8.6.8 filterable
8.6.9 iconKey
8.6.10 inPlace
8.6.11 isPassword
8.6.12 label
8.6.13 mandatory
8.6.14 minValue
8.6.15 maxLength
8.6.16 maxMember
8.6.17 maxValue
8.6.18 order8.6.19 orderFieldGroup8.6.20 orderObjectContainer8.6.21 showMaxMember8.6.22 showMemberRange8.6.23 skipRow8.6.24 spanRow8.6.25 sortable8.6.26 toolTipTitle tag for labels are created automatically if the contents of the toolTip differs from the contents of the name tag. The following screen shot shows the toop tip of the attribute salutationCode as displayed in a browser: 8.7 DataBindingsData bindings are interceptors which allow to perform any kind of transformation on data retrieved from the backend. The default data binding org.openmdx.portal.servlet.DefaultDataBinding is trivial, i.e. it is a simple delegator. 8.7.1 PropertyDataBindingPropertyDataBindings provide you with access to a virtually unlimited pool of user-definable attributes to extend CrxObjects. From a performance point of view, PropertyDataBindings are not quite as efficient as the User-definable attributes of CrxObject because the latter are always stored in the same table as the extended object, whereas attributes based on PropertyDataBindings are stored in a separate table (leading to additional SELECT statements). Nevertheless, whenever you need additional attributes that cannot be mapped to user-definable attributes, you should still consider PropertyDataBindings before you jump at extending the openCRX core model.
8.7.1.1 A comprehensive example with PropertyDataBindingsThe following UI customizing file demonstrates how to extend the Product class with a set of attributes, one of each type. Deploy the file zorder_product.xml to the directory {TOMCAT_INSTALL_DIR}/apps/opencrx-core-CRX/opencrx-core-CRX/WEB-INF/config/ui/Root/en_US and then restart Tomcat. Listing 7: UI Customizing File zorder_product.xml <?xml
version="1.0"
encoding="UTF-8"?>
Once Tomcat is up and running, navigate to the tab [Products] and create a new product as shown below: The screen for entering new products should now include a new field group labeled Extended Attributes (PropertyDateBinding) containing additional fields as shown below: Figure 14: Sample Extension of class Product with PropertyDataBindings Enter some data as follows:
Save to new product and then navigate to it. Expand the grid tabs in the first grid pane by clicking on the tab [>>]. You will see additional tabs like [Notes], [Folders], etc. Click on the tab [Property Sets] to see the entry Extension as shown below: Figure 15: Sample Extension of class Product with PropertyDataBindings
The PropertySet Extension was created automatically when you saved the new product. It is called Extension because that is what was customized in the file zorder_product.xml. The PropertySet Extension contains all the attributes defined with PropertyDataBindings, i.e. myBoolean, myInteger, myDecimal, myString, myDate, myDateTime, and myReference. Let's verify this by clicking on the icon of the respective Property Set. You should see the following: Figure 16: Property Set Extension While all of these properties could be edited right within the Property Set, it is definitely more comfortable (and natural) to edit them within the attribute pane of products. Note that thi extension of the class Product did not require any modifications of the openCRX UML Model. We did not even have to modify the database schema. The whole extension is done with customizing features only! 8.7.1.2 BooleanPropertyDataBinding
8.7.1.3 IntegerPropertyDataBinding
8.7.1.4 DecimalPropertyDataBinding
8.7.1.5 StringPropertyDataBinding
8.7.1.6 DatePropertyDataBinding
8.7.1.7 DateTimePropertyDataBinding
8.7.1.8 ReferencePropertyDataBinding
8.7.2 DataBinding ProductConfigurationSet
8.7.3 DataBinding ProductConfigurationTypeSet
8.7.4 DataBindings with Referenced Objects
8.7.5 DataBindungs with Composite Objects
8.7.6 DataBindings for Addresses8.7.6.1 EmailAddressDataBinding
8.7.6.2 PhoneNumberDataBinding
8.7.6.3 WebAddressDataBinding
8.7.7 DataBinding AssignedActivityGroupsDataBindingListing 8: Example AssignedActivityGroupsDataBinding <featureDefinition>
Optional Parameter type: Syntax: ?type={ [tracker|milestone|category] "," } If you omit the optional parameter type all assigned activity groups are shown. The above example selects ActivityTrackers only. You can also provide a comma-separated list of types, e.g. ?type=tracker,milestone. 8.7.8 DataBinding DocumentFolderAssignmentsDataBindingOptional Parameter name: Syntax: ?name={ name prefix "," } If you omit the optional parameter type all document folder assignments are shown.
8.7.9 DataBinding FilteredActivitiesDataBindingThe org.opencrx.kernel.portal.FilteredActivitiesDataBinding allows to specify a (possibly user-specific) activity tracker, milestone, category or activity filter and returns the corresponding collection of filtered activities. These activities can be shown as grid wherever you like. Listing 9: Example AssignedActivityGroupsDataBinding <featureDefinition>
8.7.10 DataBinding FormattedFollowUpDataBindingListing 10: Example FormattedFollowUpDataBinding <featureDefinition>
8.7.11 DataBinding FormattedNoteDataBindingListing 11: Example FormattedNoteDataBinding <featureDefinition>
8.7.12 DataBinding JoiningListDataBindingThe JoiningListDataBinding allows to collect objects from a specified set of reference features and display them in a unified grid. Listing 12: Example JoiningListDataBinding <org.openmdx.ui1.ElementDefinition
name="org:opencrx:kernel:activity1:Activity:summary">
9 Code Table XML Files9.1 Overview9.2 Code Table Overloading9.2.1 Adding Codes to Existing Code Tables9.2.2 Disabling Existing Codes9.2.3 Replacing Existing Code Tables9.3 Segment-Specific Code Tables
10 Groovy Controls10.1 MenuOps – openCRX Operations Menu10.2 Navigation – openCRX Breadcrum10.3 North – openCRX Header10.4 RootMenu – openCRX Top Level Tabbed Menu10.5 RootPanel – openCRX Top Level PopUp Menu10.6 Search – openCRX Index-based Search
11 JSP WizardsSee the various examples in the directory ...\opencrx-core-CRX\wizards\en_US
12 FormsForms were introduced with openCRX v2.4. Have a look at the following examples included in the distribution:
13 Layout JSPsopenCRX is distributed with 2 default layout JSPs located in the directory ...\opencrx-core-CRX\WEB-INF\config\layout\en_US. 13.1 show-Default.jspThis layout JSP renders all pages that show information (typically an Inspector containing information about the current object and all the grids containing associated information). This layout JSP is generic and can handle any object. It is provided by openMDX/portal. 13.2 edit-Default.jspSimilarly, this layout JSP renders all pages that are used to edit objects and create new objects. This layout JSP is generic and can handle any object. It is provided by openMDX/portal. 13.3 Custom Layout JSPsIf you have a need for specialized screens for a particular object in edit and/or show mode, you can write your own layout JSP and deploy it to the above-mentioned directory. The file name of your custom layout JSP determines which objects (or rather: objects of which class) will be handled by your custom layout JSP. Example: Let's assume you want to replace the default edit screen for openCRX Contacts (i.e. class org.opencrx.kernel.account1.Contact) with a custom layout JSP. Name your file edit-org.opencrx.kernel.account1.Contact.jsp and deploy it to the directory ...\WEB-INF\config\layout\en_US. After restarting Tomcat or your application server your new layout JSP will be active.
14 Advanced Customizing Options14.1 Workflows14.2 Java Controls14.3 Portal Extensions14.4 UML Model Extensions14.5 Application Logic Extensions
15 Other Customizing OptionsA collection of useful configuration and customizing options. 15.1 web.xmlAll of the following settings can be made in the
file 15.1.1 uiRefreshRateBy default, the UI configuration is loaded at startup only. If you are changing customizing files during a customization session you might want to reload the UI periodically to verify your changes without restarting the servlet container. You can do so by setting the respective value to something else than 0. The refresh period is measured in milliseconds, i.e. the following example would cause the UI configuration to reload once per minute: Listing 13: uiRefreshRate in web.xml ...
15.1.2 load-on-startupBy default, the ObjectInspectorServlet is initialized with the first login (and hence the first login can take some time). If you prefer to initialize the ObjectInspectorServlet right after the deployment of the respective EAR, uncomment the following section in web.xml: Listing 14: load-on-startup in web.xml ...
15.1.3 session-timeoutBy default, the session timeout is set to 30 minutes. If you want to shorten or lengthen the session timeout you can do so by changing the value of session-timeout (measured in minutes) in web.xml. The following example shows how to change the timeout to 2 hours: Listing 15: sesstion-timeout in web.xml ...
15.1.4 transport-guaranteeIf you want to force your users to connect with SSL you can require a transport guarantee and replace the default value NONE with CONFIDENTIAL. The following example shows how to require the application admin (admin-Root) to connect with SSL: Listing 16: transport-guarantee in web.xml ...
16 Next StepsYou might want to have a look at some of the additional documentation published at http://www.opencrx.org/documents.htm. The openCRX Admin Guide might be of particular interest to you. License
The contents of this file are
subject to a BSD license (the "License"); you may not use
this file except in compliance with the License. You may obtain a
copy of the License at http:// Copyright 2013 © CRIXP Corp. All rights reserved. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||