FILTRE 

LA RECHERCHE

La recherche permet de filtrer les données dans la plupart des fonctions 'lister' disponible . Toute recherche commence par 'condition:'

STRUCTURE D'UN BLOC DE RECHERCHE

RECHERCHE SIMPLE

Une recherche simple sert a effectuée des recherches faciles
PROTOTYPE condition:field:comparator:value
EXEMPLE condition:nom_contact:egal:Dupont
EXPLICATION Rechercher tout les contact dont le nom est Dupont
RESULTAT SERVEUR (nom_contact = 'Dupont')

RECHERCHE SUR PLUSIEURS CHAMPS OU PLUSIEURS VALEURS

on peut séparer des recherches avec un opérateur AND ou OR, exemple : condition1:operator:condition2
PROTOTYPE condition:field:comparator:value:OPERATOR:condition:field:comparator:value
EXEMPLE condition:nom_contact:startwith:a:AND:prenom:contain:b
EXPLICATION Rechercher tout les contact dont le nom commence par a et le prénom par b
RESULTAT SERVEUR nom_contact LIKE 'a%' AND prenom LIKE'%b%'

RECHERCHE COMPLEXE

Le :separator: suivit d'un opérateur va permettre de séparer deux requetes pour faire des recherches complexes.
PROTOTYPE condition:field:comparator:value:OPERATOR:condition:field:comparator:value:separator:OPERATOR:condition:field:comparator:value
EXEMPLE condition:nom_contact:startwith:a:AND:prenom:startwith:b:separator:OR:condition:nom_contact:EGAL:Dupont
EXPLICATION Rechercher tout les contact qui ont le nom qui commence par a et le prenom qui commence par b OU les contacts dont le nom est Dupont.
RESULTAT SERVEUR (nom_contact LIKE 'a%' AND prenom LIKE 'b%') or nom_contact = 'Dupont'

LES COMPARATEURS

COMPARATEUR PROTOTYPE EXEMPLE
between condition:field:between:startval:endval condition:date_action:between:2017-01-01:2017-01-31
lowerthan condition:field:lowerthan:value condition:date_action:lowerthan:2017-01-31
biggerthan condition:field:biggerthan:value condition:date_action:biggerthan:2017-01-31
lowerthanoregal condition:field:lowerthanoregal:value condition:date_action:lowerthanoregal:2017-01-31
biggerthanoregal condition:field:biggerthanoregal:value condition:date_action:biggerthanoregal:2017-01-31
egal condition:field::value condition:date_action:egal:2017-01-31
notegal condition:field:notegal:value condition:date_action:notegal:2017-01-31
isnull condition:field:isnull condition:idsociete:isnull
isnotnull condition:field:isnotnull condition:idsociete:isnotnull
startwith condition:field:startwith:value condition:date_action:startwith:2017
endwith condition:field:endwith:value condition:date_action:endwith:31
contain condition:field:contain:value:separator:value condition:date_action:contain:value:separator:2017

LES OPÉRATEURS

OPÉRATEUR PROTOTYPE EXEMPLE
AND condition1:AND:conditions2 condition:nom_contact:startwith:a:AND:nom_contact:contains:c
OR condition1:OR:conditions2 condition:nom_contact:startwith:a:OR:nom_contact:contains:c

LES CARACTÈRES SPÉCIAUX

CARACTÈRE SPÉCIAUX REMPLACEMENT EXEMPLE
/ :SLASH: condition:date_action:egal:21:SLASH:10:SLASH:1991
l'espace :SPACE: condition:nom_societe:egal:Simple:SPACE:CRM
: DOUBLEPOINT condition:nom_societe:egal:Simple:SPACE:CRM