Translations:MyList/58/en
Aller à la navigation
Aller à la recherche
Management of specific keys (rowid
, fk_statut
)
- Rowid fields: rowid fields have a particular operation in myList, associated with parameters, they allow to create a link to the element of which they are the key.
- Making a field clickable is probably the most complex problem of myList because it involves understanding a little of the Dolibarr architecture.
- First of all, it is necessary to locate in the Dolibarr directories where the class of the element that we want to call is located and what it is named in the file
- If, for example, we want to make a supplier order clickable, we must find the file of the class associated with this element (
/fourn/class/fournisseur.commande.class.php
) then look at the name of the object class (CommandeFournisseur).
- fk_statut fields: the fk_statut fields are used to know the status of an element. However, the number and type of status is specific to each element. The selectable choices are therefore to be added to the additional parameters of the fields. As for the
rowid
, it is therefore advisable to identify the class used to define the element and add the states that you want to use by separating them with #.- example for tickets: Ticket:/ticket/class/ticket.class.php:0#1#2#3#5#7#8#9 )
- for invoices, there is a specific value "P" for the "paid" status of the invoice ( Invoice:/compta/facture/class/facture.class.php:0#1#2#P )