Documentation
Search in OMNILINKS
usage
<SEARCH>
<object>
<OMNILINKS>
<OMNILINK type="text" [operator="exist/not"]>
<object [ID="number"]>
[<INFO>...</INFO>, etc]
[<HITS [operator="{=,LT,LT=,GT,GT=,NE,!=,<>}"]> number </HITS>]
</object>
</OMNILINK>*
</OMNILINKS>
</object>
</SEARCH>
paramètres
type: the type of the link between the two objects
HITS: the number of links to this type of elements
exemples
Search all the contacts who have a note and return the content of these notes
<SEARCH>
<CONTACT>
<OMNILINKS>
<OMNILINK type="notes">
<MY:NOTE></MY:NOTE>
</OMNILINK>
</OMNILINKS>
</CONTACT>
<RETURN depth="1">
<OMNILINKS>
<OMNILINK type="notes">
<INFO>
<TEXT></TEXT>
</INFO>
</OMNILINK>
</OMNILINKS>
</RETURN>
</SEARCH>
Search all notes over contacts whose firstname is Boris :
<SEARCH>
<MY:NOTE>
<OMNILINKS>
<OMNILINK type="notes">
<CONTACT>
<INFO>
<FIRSTNAME>Boris</FIRSTNAME>
</INFO>
</MEDIA>
</OMNILINK>
</OMNILINKS>
</MY:NOTE>
</SEARCH>
Search all the contact in charge of less than 3 projects, having a comment :
<SEARCH>
<CONTACT>
<OMNILINKS>
<OMNILINK type="inCharge">
<MY:PROJECT>
<HITS operator="LT">3</HITS>
</MY:PROJECT>
</OMNILINK>
<OMNILINK type="comments" operator="exist"></OMNILINK>
</OMNILINKS>
</CONTACT>
</SEARCH>
Search all contacts that are NOT in charge of a project :
<SEARCH>
<CONTACT>
<OMNILINKS>
<OMNILINK type="inCharge" operator="not">
<MY:PROJECT/>
</OMNILINK>
</OMNILINKS>
</CONTACT>
</SEARCH>
Voir aussi :
OMNILINKTYPE
Allow to link an object to any other kind of object