is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 9 years ago

Closed 9 years ago

#1456 closed bug (fixed)

jforms: listbox linked together are not updated automatically inside a <choice>

Reported by: laurentj Owned by: laurentj
Priority: normal Milestone: Jelix 1.2.9
Component: jelix:forms Version: 1.3.1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:



<choice ref="activitytype">
    <label locale="" />
    <item value="activity">
        <label locale="" />
        <menulist ref="naf1">
            <label locale="" />
            <datasource dao="company~naf" method="findByParent"
            criteria="0" labelproperty="keylabel" valueproperty="id" />
        <menulist ref="naf2">
            <label locale="" />
            <datasource dao="company~naf" method="findByParent"
            criteriafrom="naf1" labelproperty="keylabel" valueproperty="id" />

naf2 is not updated when naf1 is changed.

Attachments (1)

ticket1456.patch (1.3 KB) - added by catsoup 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by catsoup

comment:1 Changed 9 years ago by catsoup

Hello, I dived into jform code, and made a thing that works. It's not polished, and maybe not the good way to do it.

comment:2 Changed 9 years ago by laurentj

  • Owner set to laurentj
  • Status changed from new to assigned

@catsoup: sorry, your patch is not enough.

comment:3 Changed 9 years ago by laurentj

  • Milestone changed from Jelix 1.3.3 to Jelix 1.2.9
  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.