A pretty frequent request, so use the search page to find how it's been done before.

If you cannot find what you are looking for, then update this post and add some more information, like the version of KiXtart, the domain model you are using and the versions of operating systems involved.