# Tips and tricks

**URL:** https://community.simplicite.io/c/tips-and-tricks/35.md

[Latest](https://community.simplicite.io/latest.md) · [Categories](https://community.simplicite.io/categories.md) · [Tags](https://community.simplicite.io/tags.md)

---

## [Tips and tricks list](https://community.simplicite.io/t/tips-and-tricks-list/2112)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [February 3, 2020, 7:54pm UTC](https://community.simplicite.io/t/tips-and-tricks-list/2112 "2020-02-03T19:54:55Z")

</div>

Tips & Tricks list Custom UI components Custom chart embeding Custom confirm dialog Resources in External Objects Custom consent page after first logon Keep scroll position when saving object Serve a Vue.js application …

---

## [About the Tips and tricks category](https://community.simplicite.io/t/about-the-tips-and-tricks-category/577)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 0\
**Last updated:** [May 19, 2016, 1:54pm UTC](https://community.simplicite.io/t/about-the-tips-and-tricks-category/577 "2016-05-19T13:54:06Z")

</div>

Discover and post small tips and tricks to make it easy for you (and everyone) to develop applications on Simplicité. Summary

---

## [Couleur de progress bar en fonction de la valeur](https://community.simplicite.io/t/couleur-de-progress-bar-en-fonction-de-la-valeur/13105)

<div class="topic-metadata">

**Author:** [@Emmanuelle](https://community.simplicite.io/u/Emmanuelle)\
**Replies:** 2\
**Last updated:** [September 10, 2026, 2:38pm UTC](https://community.simplicite.io/t/couleur-de-progress-bar-en-fonction-de-la-valeur/13105 "2026-09-10T14:38:53Z")

</div>

Bonjour, On m’a demandé de colorer différemment les progress bar en fonction de leur avancement (rouge jusqu’à 75, orange jusqu’à 95, vert sinon) Comme j’ai fait tout stackoverflow sans trouver de solution, je poste mo…

---

## [Custom User Object](https://community.simplicite.io/t/custom-user-object/3400)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [June 7, 2021, 4:09pm UTC](https://community.simplicite.io/t/custom-user-object/3400 "2021-06-07T16:09:48Z")

</div>

---

## [Update licence key](https://community.simplicite.io/t/update-licence-key/3677)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 3:35pm UTC](https://community.simplicite.io/t/update-licence-key/3677 "2021-08-11T15:35:36Z")

</div>

Move to Docs

---

## [Custom publication of objects and fields](https://community.simplicite.io/t/custom-publication-of-objects-and-fields/2830)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 0\
**Last updated:** [December 17, 2020, 11:24pm UTC](https://community.simplicite.io/t/custom-publication-of-objects-and-fields/2830 "2020-12-17T23:24:34Z")

</div>

The canonical example on CSV publications is available on the documentation ▶ Publication of objects and fields example

---

## [CSV Adapter Example](https://community.simplicite.io/t/csv-adapter-example/2110)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [January 30, 2020, 4:17pm UTC](https://community.simplicite.io/t/csv-adapter-example/2110 "2020-01-30T16:17:08Z")

</div>

Moved to CSV line based adapter lesson

---

## [Deciding how to implement a data parser](https://community.simplicite.io/t/deciding-how-to-implement-a-data-parser/4586)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [March 24, 2022, 2:17pm UTC](https://community.simplicite.io/t/deciding-how-to-implement-a-data-parser/4586 "2022-03-24T14:17:15Z")

</div>

Moved to adapters lesson

---

## [Add custom Maven-assisted dependencies to your custom images](https://community.simplicite.io/t/add-custom-maven-assisted-dependencies-to-your-custom-images/4669)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 1\
**Last updated:** [October 18, 2023, 4:40pm UTC](https://community.simplicite.io/t/add-custom-maven-assisted-dependencies-to-your-custom-images/4669 "2023-10-18T16:40:12Z")

</div>

The latest Docker images allows building custom images with additonal Maven dependencies added to the platform’s libs. The typical Dockerfile for building these custom images is this one: Dockerfile-add-custom-dependen…

---

## [\[TIP\] Positionnement automatique des links dans un modèle](https://community.simplicite.io/t/tip-positionnement-automatique-des-links-dans-un-modele/6904)

<div class="topic-metadata">

**Author:** [@Emmanuelle](https://community.simplicite.io/u/Emmanuelle)\
**Replies:** 0\
**Last updated:** [September 20, 2023, 9:24am UTC](https://community.simplicite.io/t/tip-positionnement-automatique-des-links-dans-un-modele/6904 "2023-09-20T09:24:31Z")

</div>

Request description Bonjour, Lorsqu’on a plusieurs liens entre deux nodes, il apparaissent empilés. J’ai modifié le OnDrawNode pour les courber automatiquement à l’ouverture. C’est sûrement améliorable mais je partage…

---

## [Quick Adapter Configuration](https://community.simplicite.io/t/quick-adapter-configuration/6504)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [June 7, 2023, 1:37pm UTC](https://community.simplicite.io/t/quick-adapter-configuration/6504 "2023-06-07T13:37:43Z")

</div>

The Quick Adapters are a way to inject models fast, and also a way to let a non technical user work on the data model. This tool should only be used by seasoned Simplicité developers. They are provided as a platform add…

---

## [XXL publications](https://community.simplicite.io/t/xxl-publications/6017)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [March 10, 2023, 2:38pm UTC](https://community.simplicite.io/t/xxl-publications/6017 "2023-03-10T14:38:09Z")

</div>

When generating large files, two issues have to be considered carefully: the app memory must be cared for: if the whole file is, at some point in the algorithm, loaded in memory, we might saturate the app’s allocated …

---

## [Limiter le nombre de pillbox en liste](https://community.simplicite.io/t/limiter-le-nombre-de-pillbox-en-liste/5927)

<div class="topic-metadata">

**Author:** [@Emmanuelle](https://community.simplicite.io/u/Emmanuelle)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 10:59am UTC](https://community.simplicite.io/t/limiter-le-nombre-de-pillbox-en-liste/5927 "2023-02-22T10:59:55Z")

</div>

Request description Bonjour, Je partage une solution custom pour limiter le nombre d’étiquettes pillbox affichées en ligne. Car pour les instances contenant beaucoup de données, nous obtenions des lignes beaucoup trop h…

---

## [Thème état (France) inspiré du DSFR](https://community.simplicite.io/t/theme-etat-france-inspire-du-dsfr/5764)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 0\
**Last updated:** [January 18, 2023, 8:27pm UTC](https://community.simplicite.io/t/theme-etat-france-inspire-du-dsfr/5764 "2023-01-18T20:27:47Z")

</div>

Pour installer le thème Simplicité “état (France)” inspiré du Système de Design de l’Etat (DSFR): Créez manuellement un module ThemeEtat avec les settings suivant: { "type": "git", "origin": { "uri": "https://gith…

---

## [Default filtering on object](https://community.simplicite.io/t/default-filtering-on-object/2955)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [February 17, 2021, 4:15pm UTC](https://community.simplicite.io/t/default-filtering-on-object/2955 "2021-02-17T16:15:20Z")

</div>

This allows to properly add some default filters that the user can remove public class DemoSupplier extends ObjectDB { private static final long serialVersionUID = 1L; private static final String INIT\_FILTER\_FLAG="sup…

---

## [How to add an extra Java library](https://community.simplicite.io/t/how-to-add-an-extra-java-library/5626)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [December 15, 2022, 5:26pm UTC](https://community.simplicite.io/t/how-to-add-an-extra-java-library/5626 "2022-12-15T17:26:06Z")

</div>

1- Identify the library you need on maven 2- Check the compatibility with Simplicité’s librabries Add the maven-enforcer-plugin to your project’s pom.xml : \<plugin\> \<groupId\>org.apache.maven.plugins\</groupId\> \<arti…

---

## [Input suggestions](https://community.simplicite.io/t/input-suggestions/5371)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [October 13, 2022, 3:17pm UTC](https://community.simplicite.io/t/input-suggestions/5371 "2022-10-13T15:17:46Z")

</div>

You might have seen errors with suggestions in the platform. Did you know that you could use this same system in your own app? ▶ Click to see example in action Good to know there are two type of suggestions: blocking (…

---

## [Serve a Vue.js application from a Simplicité instance](https://community.simplicite.io/t/serve-a-vue-js-application-from-a-simplicite-instance/5361)

<div class="topic-metadata">

**Author:** [@Alistair](https://community.simplicite.io/u/Alistair)\
**Replies:** 0\
**Last updated:** [October 11, 2022, 3:12pm UTC](https://community.simplicite.io/t/serve-a-vue-js-application-from-a-simplicite-instance/5361 "2022-10-11T15:12:28Z")

</div>

The following example will explain how to serve a Vue.js application on the “/” endpoint of your instance. It also provides a method to properly redirect URL paths in the event of a vue-router based application. 1. Pre…

---

## [Keep current scroll position at object save](https://community.simplicite.io/t/keep-current-scroll-position-at-object-save/2916)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 4\
**Last updated:** [March 11, 2022, 11:13am UTC](https://community.simplicite.io/t/keep-current-scroll-position-at-object-save/2916 "2022-03-11T11:13:12Z")

</div>

Use following script to keep current scroll position at object save : (function(ui) { // ========= SIMPLICITE BOILERPLATE =========== if (!ui) return; var app = ui.getAjax(); Simplicite.UI.hooks.MyObject = fun…

---

## [Use the NPM JS client lib within the generic web UI](https://community.simplicite.io/t/use-the-npm-js-client-lib-within-the-generic-web-ui/4425)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 0\
**Last updated:** [February 18, 2022, 1:31pm UTC](https://community.simplicite.io/t/use-the-npm-js-client-lib-within-the-generic-web-ui/4425 "2022-02-18T13:31:25Z")

</div>

This example module is for those who are interested in using the Simplicite® NPM JS lib from within the generic web UI. Note: this modules requires a Simplicité platform instance in version 5.2.0 and above

---

## [Basic Azure AD Config](https://community.simplicite.io/t/basic-azure-ad-config/4283)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [January 10, 2022, 12:49pm UTC](https://community.simplicite.io/t/basic-azure-ad-config/4283 "2022-01-10T12:49:03Z")

</div>

---

## [Blocking/limiting brute force attacks](https://community.simplicite.io/t/blocking-limiting-brute-force-attacks/4196)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 2\
**Last updated:** [December 13, 2021, 6:35pm UTC](https://community.simplicite.io/t/blocking-limiting-brute-force-attacks/4196 "2021-12-13T18:35:38Z")

</div>

As of revision 5.1.16 it is possible to implement a logic for blocking/limiting “brute force” attacks or any abusive number of attempts to log in using the internal authentication. A typical implémentation relies on the…

---

## [Comment arrêter une tache trop longue?](https://community.simplicite.io/t/comment-arreter-une-tache-trop-longue/4082)

<div class="topic-metadata">

**Author:** [@Francois](https://community.simplicite.io/u/Francois)\
**Replies:** 0\
**Last updated:** [November 12, 2021, 4:36pm UTC](https://community.simplicite.io/t/comment-arreter-une-tache-trop-longue/4082 "2021-11-12T16:36:27Z")

</div>

Dans Simplicité, il existe un mécanisme de demande d’arrêt d’une tache longue / lancée par Action asynchrone ou via Crontab. Dans le code de la méthode, il faut vérifier de temps en temps qu’il n’y a pas une demande d’a…

---

## [\[CI/CD\] Automatic module imports at platform startup](https://community.simplicite.io/t/ci-cd-automatic-module-imports-at-platform-startup/3919)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 3:15pm UTC](https://community.simplicite.io/t/ci-cd-automatic-module-imports-at-platform-startup/3919 "2021-10-06T15:15:35Z")

</div>

As of version 5.1.6, a new delivery method is offered by the platform, as documented here. It allows to pass a specification file telling the platform to import modules at startup. In a docker context, the file can be bi…

---

## [Use of resources in external object](https://community.simplicite.io/t/use-of-resources-in-external-object/3807)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 2:11pm UTC](https://community.simplicite.io/t/use-of-resources-in-external-object/3807 "2021-09-13T14:11:58Z")

</div>

Question: how to use a resource in my (often external) object Problem: to use an image / font / etc in CSS / HTML, we need the URL of the file if we directly get the URL of a added as an object’s resource, we can see …

---

## [MFA on internal authentication](https://community.simplicite.io/t/mfa-on-internal-authentication/3790)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 1\
**Last updated:** [September 10, 2021, 9:24am UTC](https://community.simplicite.io/t/mfa-on-internal-authentication/3790 "2021-09-10T09:24:04Z")

</div>

As of version 5.1 (starting with revision 5.1.1) an basic MFA (multi factors authentication) will be available on the internal UI authentication. Warning : As it is still an experimental feature, the principles decribe…

---

## [Custom consent page after first logon](https://community.simplicite.io/t/custom-consent-page-after-first-logon/3711)

<div class="topic-metadata">

**Author:** [@Alistair](https://community.simplicite.io/u/Alistair)\
**Replies:** 0\
**Last updated:** [August 17, 2021, 12:19pm UTC](https://community.simplicite.io/t/custom-consent-page-after-first-logon/3711 "2021-08-17T12:19:46Z")

</div>

The following example will show you one of the ways to implement a custom temporary page after the user has logged on for the first time. One of the use-cases is : The user needs to agree to the terms and conditions bef…

---

## [Database access with Docker / Docker compose](https://community.simplicite.io/t/database-access-with-docker-docker-compose/3325)

<div class="topic-metadata">

**Author:** [@david](https://community.simplicite.io/u/david)\
**Replies:** 0\
**Last updated:** [May 18, 2021, 4:56pm UTC](https://community.simplicite.io/t/database-access-with-docker-docker-compose/3325 "2021-05-18T16:56:59Z")

</div>

The new Docker images (built as of May 19th 2021) will include a script /usr/local/tomcat/db.sh that connects you to the configured database with the appropriate native database client (mysql for a MySQL database, psql f…

---

## [Restore backup with Docker](https://community.simplicite.io/t/restore-backup-with-docker/3156)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 10:28pm UTC](https://community.simplicite.io/t/restore-backup-with-docker/3156 "2021-04-13T22:28:05Z")

</div>

This quick tutorial shows how to quickly restore a Simplicité Backup. It shows an example with a PostgreSQL database and a dbdoc on a CentOS 7 instance. Pre-requisites Docker Registry Access Simplicité backup (database…

---

## [Sending an email with attachments](https://community.simplicite.io/t/sending-an-email-with-attachments/2172)

<div class="topic-metadata">

**Author:** [@scampano](https://community.simplicite.io/u/scampano)\
**Replies:** 0\
**Last updated:** [February 20, 2020, 10:06am UTC](https://community.simplicite.io/t/sending-an-email-with-attachments/2172 "2020-02-20T10:06:33Z")

</div>

ObjectDB obj = getGrant().getTmpObject("myObject"); ObjectField myObjectFile = obj.getField("myObjFile"); // must be of type file // https://www.simplicite.io/resources/4.0/javadoc/com/simplicite/util/tools/MailTool.htm…

[Next page](https://community.simplicite.io/c/tips-and-tricks/35.md?page=1)
