Tags on User Entry
Product line
Standard
|Expert
Operating mode
CLOUD ABO
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
In Vertec, objects (e.g. projects, services) are often categorized using Boolean custom fields. The resulting OCL queries of the type
leistungen->select(zusatzfeldbool('istmarkiert'))
are not performant, because for each item in the list the custom fields have to be loaded.
In order to be able to map this requirement efficiently, Vertec version 6.1.0.10 made it possible to provide user entries with tags that can be filtered by.
For this there is a Tags
field on each user entry (user entries are all objects in Vertec that can be stored in folders, such as addresses, projects, users, services, etc.), which can be filled with arbitrary keywords (tags) via Python or COM.
Via Custom Renderer you can set tags directly in the list or via checkbox. The instructions for this can be found in the section Use cases – set a day .
The tags are set with the COM or Python method addtag(tagname), e.g.
argobject.addtag('mytag')
Spacing in tag names is allowed. Quotation marks and commas should not be used, otherwise there may be problems with the query due to escaping.
If a tag already exists, it will not be added again.
The maximum length of all tags set on a user entry is 1000 symbols. If this length is exceeded, an error message will appear.
The tags can be queried via COM, Python or OCL via hasTag:
hastag(tagname): boolean/integer
The return value is
For example, lists containing queries of the type leistungen->select(hasTag('istmarkiert'))
can be filtered quickly and efficiently.
Tags can also be queried via SQL, e.g. in SQL folders. The corresponding query is done with a comparison, e.g.
tags like '%tagname%'
To delete tags, the COM or Python method removetag(tagname) is available, e.g.
argobject.removetag('mytag')