-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Salut,
Est-il possible d'ajouter un champ qui va chercher dans habref des habitats selon un cd_table et non un cd_typo ?
J'ai une typo qui n'est pas dans habref, je fourni donc le script pour l'ajouter, mais comme je ne peux prédire le cd_typo, je voudrais que le module aille filtrer sur cd_table.
Sur la base de ça :
"CodeHabitatPrincipal": {
"type_widget": "datalist",
"attribut_label": "Type d’habitat principal autour de la tente Malaise",
"api": "habref/habitats/autocomplete",
"application": "GeoNature",
"keyValue": "cd_hab",
"keyLabel": "search_name",
"type_util": "habitat",
"params": {
"cd_typo": 7,
"search_name": "",
"limit": "999999"
}
},
J'ai essayé de faire ça :
"CodeHabitatPrincipal": {
"type_widget": "datalist",
"attribut_label": "Type d’habitat principal autour de la tente Malaise",
"api": "habref/habitats/autocomplete",
"application": "GeoNature",
"keyValue": "cd_hab",
"keyLabel": "search_name",
"type_util": "habitat",
"params": {
"cd_table": "TYPO_STN",
"search_name": "",
"limit": "999999"
}
},
Mais ça ne marche pas.
Merci par avance !
Metadata
Metadata
Assignees
Labels
No labels