You are not logged in.
Bonjour groupe,
J'essaie de créé un plugin,
Voici ma déclaration des tables pour le plugin :
array_push($CFG_GLPI["specif_entities_tables"],"glpi_plugin_gestionmobilier");
array_push($CFG_GLPI["specif_entities_tables"],"glpi_dropdown_plugin_gestionmobilier_type");
array_push($CFG_GLPI["specif_entities_tables"],"glpi_dropdown_plugin_gestionmobilier_model");
array_push($CFG_GLPI["specif_entities_tables"],"glpi_dropdown_plugin_gestionmobilier_responsable");
array_push($CFG_GLPI["specif_entities_tables"],"glpi_dropdown_plugin_gestionmobilier_manufacturier");
array_push($CFG_GLPI["specif_entities_tables"],"glpi_dropdown_plugin_gestionmobilier_statut");
Voici maintenant la gestion des dropdowns.
function plugin_gestionmobilier_getDatabaseRelations(){
return array(
"glpi_dropdown_plugin_gestionmobilier_type"=>array("glpi_plugin_gestionmobilier"=>"FK_dropdown_gestionmobilier_type"),
"glpi_dropdown_plugin_gestionmobilier_model"=>array("glpi_plugin_gestionmobilier"=>"FK_dropdown_gestionmobilier_model"),
"glpi_dropdown_plugin_gestionmobilier_responsable"=>array("glpi_plugin_gestionmobilier"=>"FK_dropdown_gestionmobilier_responsable"),
"glpi_dropdown_plugin_gestionmobilier_manufacturier"=>array("glpi_plugin_gestionmobilier"=>"FK_dropdown_gestionmobilier_manufacturier"),
"glpi_dropdown_plugin_gestionmobilier_statut"=>array("glpi_plugin_gestionmobilier"=>"FK_dropdown_gestionmobilier_statut"),
);
}
function plugin_gestionmobilier_getDropdown(){
// Table => Name
return array(
"glpi_dropdown_plugin_gestionmobilier_type"=>"Plugin Gestion des mobiliers - Types",
"glpi_dropdown_plugin_gestionmobilier_model"=>"Plugin Gestion des mobiliers - Modèle",
"glpi_dropdown_plugin_gestionmobilier_responsable"=>"Plugin Gestion des mobiliers - Responsables",
"glpi_dropdown_plugin_gestionmobilier_manufacturier"=>"Plugin Gestion des mobiliers - Manufacturiers",
"glpi_dropdown_plugin_gestionmobilier_statut"=>"Plugin Gestion des mobiliers - Statut"
);
}
Bon premièrement, pour afficher mon dropdown j'utilise getDropDownValue();
Et j'ai bien mon dropdown a l'écran avec le contenue de la table et quand je submit tout se passe bien.
Il y a un genre de timestamp qui apparait à droite de mon dropdown.
Je ne comprend pas trop pourquoi il apparait la voici un example :
Imaginer deux manufactiruer dans un select html et a droite il y a le numéro qui apparait.
Ceci sert de ID au champ
Manufacturier : deux manufactiruer 1376968214
Deuxièmement mon édition automatique ne fonctionne pas ( ajax based ) et je ne comprend pas vraiment pourquoi tout semble en règles ?
Vous pouvez m'aider ?
Offline
Bonujour , j'ai trouvé mes erreurs,
Par conséquent je n'arrive toujours pas a enlver le chiffre aléatoire au bout de mes selects :S
Offline