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

Opened 8 years ago

Closed 8 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:

Description

Example

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

naf2 is not updated when naf1 is changed.

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by catsoup

comment:1 Changed 8 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 8 years ago by laurentj

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

@catsoup: sorry, your patch is not enough.

comment:3 Changed 8 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.