Bonjour,
Je me retrouve avec la problématique suivante :
voici ma table
CREATE TABLE `test_attribut`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`attribut_id` INTEGER NOT NULL,
`template_id` INTEGER NOT NULL,
`position` INTEGER,
....
chaque template est composé de différents attributs
j'aimerai pourvoir changer la position d'un attribut
Si je m'appuie sur les class existantes
cela me change bien la position de mon attribut mais sans tenir compte de template_id
et donc réorganise la position de chaque attribut.
Je ne vois pas ou intervenir pour que dans
changeAbsolutePosition
movePositionUp
movePositionDown
il prenne en compte template_id et ainsi réorganise que les attributs appartenant à tel template_id