TWiki
>
WebXEO Web
>
XeoPrimer
>
XeoPrimerObjectModelReference
>
XeoPrimerObjectModelReferenceAttObjCol
(revision 3) (raw view)
Edit
Attach
Tags:
tag this topic
create new tag
,
view all tags
-- Main.PedroRio - 02 Mar 2011 ---+ Attribute Object Collection (bridge) Attribute Object Collections allow to establish a 1:N relationship with a given type of XEO Model (or Models). The specific options for this type of attribute are explained bellow: ---++++++ Type The target XEO Model of the relation. If you want to relate to several types of objects, use the generic boObject as the type and see the "Objects" options bellow. ---++++++ Min Occurs The minimum number of instances that must be in the relation (values are positive integers plus zero, the default) ---++++++ Max Occurs The maximum number of instances that can be in the relation (Values are integers from 1 to any, or "N" to represent "no limit", which is the default) ---++++++ SetParent Whether the parent attribute of a given instance is set to the current instance when adding that instance to this collection. ---++++++ Orphan Relation Whether the relation between the two instances is an orphan relation (default is true). =%ICON{todo}%= ---++++++ Objects This option is only applicable when the _Type_ option is _boObject_. This options allows you to choose a subset of the XEO Models in your application whose instances may be in this collection. You can, for example, choose two Object Models (A and B) and the visual components that represents a collection (typically a _xeo:bridge_ component) will adapt to allow you only to add instances of Object Models A and B. See also the Object Filters section bellow to know how to filter the objects that can be added to the collection. In the following figure an example setting of the Objects option is depicted. <img alt="BridgeObjects.png" src="%ATTACHURL%/BridgeObjects.png" /> <em><strong>Figure ObjCol.1 - Objects in Collection (in red the type is boObject as explained before and the list is in the "Objects" section)<br /></strong></em> _ ---++++++ Object Filters This option is only applicable when the <em>Objects </em>option has values. It allows you to filter the list of instances that will appear in the lookup window when adding a new instance to the collection, of a given XEO Model. If in the Objects option you have two XEO Models, (A and B), you can have filters to apply to both of them, so that only instances that match the filter are added. Filters are done using XEOQL (BOQL) expressions. You can use static expressions like "select A where title like 'A%' or you can use Java code to dynamically create the XEOQL expression to be used in the filtering. An example is depicted in figure ObjCol.2 <img width="800" alt="" src="%ATTACHURL%/BridgeObjectFilter.png" height="383" /> __Figure ObjCol.2 - Object Filter editing in XEO Studio__ _
Attachments
Attachments
Topic attachments
I
Attachment
Action
Size
Date
Who
Comment
png
BridgeObjectFilter.png
manage
84.4 K
2011-03-03 - 09:20
PedroRio
png
BridgeObjects.png
manage
22.1 K
2011-03-03 - 09:23
PedroRio
Edit
|
Attach
|
P
rint version
|
H
istory
:
r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r3 - 2011-03-15
-
PedroRio
WebXEO
XEO Primer
-
Instalation
-
Introduction
-
Concepts
-
Architecture
-
XEO Library
-
Deploy to EAR
-
PreferenceStore
XEO - Core
-
XEO Model Reference
-
Security
-
Java API
-
BOL
-
XEOQL (BOQL)
-
Administrating
-
Background Tasks
-
boConfig.xml
-
Web.xml
-
Known Issues
-
XEO Flags
XEO - XWC
- Web Components
- Java Samples
- Custom Components
- Component Plugins
- Internationalization
- Viewer Events
- Value Change Listeners
- XUIServlet
- XeoLocalization
- XvwTemplates
Create New Topic
WebXEO Web
No permission to view
TWiki.WebTopBar
No permission to view
TWiki.WebBottomBar