History: Dynamic items list
Source of version: 5
Copy to clipboard
If somebody can figure out from the info I found - thanks to put an example So far I understand tracker ~~red:57~~ State with 2 fields *field ~~purple:193~~ Country, type drop down list, option: ~~green:USA,Canada~~ *field ~~orange:194~~ State, type text The items are ||USA|MA USA|CA Canada|Québec|| tracker 60 Customer *field ~~blue:186~~ Country, type Item Link, option: ~~red:57~~,~~purple:193~~ *field State, type dynamic items list , option : ~~red:57~~,~~purple:193~~,~~blue:186~~,~~orange:194~~ If I select the country USA, the state drop down is populated with CA and MA If I select the country Canada, the state is populated with Québec. __Documentation__ dynamic items list options: trackerId, filterFieldIdThere, filterFieldIdHere, listFieldIdThere, statusThere insert the list of listFieldIdThere from item in tracker trackerId where filterFieldIdThere matches filterFieldIdHere where status is statusThere. __fr_rodo on devel list__ dynamic items list (bad name ?) is to refresh "dynamically" a list based on another list. For example, when i select "Solaris" in the first list "Solaris, Windows, Linux, ...", the dynamic list does a request to obtains its items like "Solaris 2.9, Solaris 2.10, ...". If i select "Windows" in the first list, the second list change "dynamically" its content to "Windows 2000, Windows XP, ...". __mose on IRC__ 03:52:41 PM) sylvieg: does somebody know how dynamic item list (field type) work? (04:07:03 PM) mose: yes (04:07:08 PM) mose: it works nicely (04:07:17 PM) mose: but it's not adapted to every case (04:07:44 PM) mose: actually it changes a select menu depending the value given to another field (04:07:58 PM) mose: with a js thing (04:08:09 PM) mose: the code stinks, but it works (04:08:54 PM) mose: I tried it and had it working surprisingly the first try (04:10:49 PM) sylvieg: :-( I just sent a mess on devel (04:11:12 PM) sylvieg: .... do you have an example? (04:11:54 PM) sylvieg: I am not so lucky - it does not work the first time (04:12:18 PM) marclaporte: select menu depending the value given to another field -> ex.> province list after choosing from country list (04:13:24 PM) sylvieg: province and country are in the asme tracker? (04:13:27 PM) sylvieg: same (04:16:33 PM) marclaporte: I don't know (04:16:52 PM) marclaporte: I have never used (04:17:03 PM) marclaporte: but that's the goal, I think (04:25:06 PM) Caarrie is now known as Caarrie|away (04:36:24 PM) sylvieg: I am either too stupid, or dynamic list is broken (04:37:17 PM) mose: I don't find where I tried it actually, but I saw it work (04:37:24 PM) mose: I got to many tikis :/ (04:37:52 PM) sylvieg: What is the value of such a field ... a text? (04:38:25 PM) mose: yes, and a select menu in edit mode (04:38:26 PM) sylvieg: I am able to have a slect with different nb of elts - but each elt is empty (04:38:50 PM) mose: the options are numerous (04:39:02 PM) mose: maybe you miss one or one is not correct (04:39:44 PM) sylvieg: dynamic items list options: trackerId, filterFieldIdThere, filterFieldIdHere, listFieldIdThere, statusThere (04:40:00 PM) mose: the 4th is what field is displayed (04:40:11 PM) mose: take the french version, it's more explicit imho (04:40:29 PM) mose: IdFormulaire, ChampFiltreLàBas, ChampFiltreIci, ChampListéLàBas, statutLàBas (04:41:10 PM) marclaporte: multimose! (04:41:54 PM) sylvieg: I thought that if the options work for item list, they must work for dynamic items list (04:42:08 PM) sylvieg: except that you can display more fields (04:42:24 PM) mose: no it's not the same I think (04:43:15 PM) mose: ChampFiltreIci can be an item link, I think that's what I tested