Documentation
VIRTUALMODULE
usage
<VIRTUALMODULE ID="number">
<INFO>
<ID>number</ID>
<ACTIVITY>1</ACTIVITY>
<ISLOCKED>0</ISLOCKED>
<CREATORID>contactID</CREATORID>
<OWNERID>contactID</OWNERID>
<GROUPID>groupID</GROUPID>
<MODIFIERID>contactID</MODIFIERID>
<CREATIONDATE>YYYY-MM-DD hh:mm:ss</CREATIONDATE><!-- automatically filled by Sushee -->
<MODIFICATIONDATE>YYYY-MM-DD hh:mm:ss</MODIFICATIONDATE><!-- automatically filled by Sushee -->
<DENOMINATION>text</DENOMINATION>
<VIEWXML>xml</VIEWXML>
<CREATIONTEMPLATEXML>xml</CREATIONTEMPLATEXML>
</INFO>
</VIRTUALMODULE>
paramètres
DENOMINATION: the name of the virtual module
VIEWXML: the xSushee SEARCH command allowing to find elements of the virtual module
CREATIONTEMPLATEXML: the xSushee CREATE command allowing to create an element of the virtual module
Defines a virtual object that is a subset of another object and has a couple of common properties (info, categories, dependencies). The virtual module can be searched if a VIEWXML is defined (equivalent to a SQL view) and created if a CREATIONTEMPLATEXML is defined.
If new content is added inside the virtual command, the new comment will be merged with the one defined in the prototype of the virtual module.
exemples
To create a virtual module allowing to retrieve easily the content of your mail inbox :
<CREATE>
<VIRTUALMODULE>
<INFO>
<DENOMINATION>MailInbox</DENOMINATION>
<VIEWXML>
<SEARCH>
<MAIL>
<INFO>
<TYPE operator="=">in</TYPE>
<TRASH>0</TRASH>
<JUNK operator="NE">1</JUNK>
</INFO>
</MAIL>
<SORT select="INFO/RECEIVINGDATE" ordering="descending"/>
<PAGINATE display="25" page="last"/>
</SEARCH>
</VIEWXML>
<CREATIONTEMPLATEXML/>
</INFO>
</VIRTUALMODULE>
</CREATE>
and the commands that can now be used in xSushee :
<SEARCH>
<MAILINBOX/>
</SEARCH>
<SEARCH>
<MAILINBOX>
<INFO>
<FROM>Robert</FROM>
</INFO>
</MAILINBOX>
</SEARCH>
To create a subset of contact, only with the companies :
<CREATE>
<VIRTUALMODULE>
<INFO>
<VIEWXML>
<SEARCH>
<CONTACT>
<INFO>
<CONTACTTYPE operator="=">PM</CONTACTTYPE>
</INFO>
</CONTACT>
</SEARCH>
</VIEWXML>
<CREATIONTEMPLATEXML>
<CREATE>
<CONTACT>
<INFO>
<CONTACTTYPE>PM</CONTACTTYPE>
</INFO>
</CONTACT>
</CREATE>
</CREATIONTEMPLATEXML>
</INFO>
</VIRTUALMODULE>
</CREATE>
and the commands that can now be used in xSushee:
<CREATE>
<COMPANY>
<INFO>
<DENOMINATION>Nectil SA</DENOMINATION>
</INFO>
</COMPANY>
</CREATE>
<SEARCH>
<COMPANY/>
</SEARCH>
<SEARCH>
<COMPANY>
<INFO>
<DENOMINATION>Nectil</DENOMINATION>
</INFO>
</COMPANY>
</SEARCH>
Voir aussi :
CUSTOMCOMMAND
Create your own command