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 13 years ago

Closed 13 years ago

Last modified 13 years ago

#555 closed new feature (fixed)

Jforms : Ajouter parametres sur methodes dao

Reported by: yferp Owned by: laurentj
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:forms Version:
Severity: normal Keywords: jform dao
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

Pour remplir le contenu d'une liste avec un dao, il faudrait pouvoir appeler des méthodes demandant des paramètres

Change History (4)

comment:1 Changed 13 years ago by yferp

  • Owner set to yferp

comment:2 Changed 13 years ago by laurentj

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

comment:3 Changed 13 years ago by laurentj

  • Documentation needed set
  • Resolution set to fixed
  • Status changed from assigned to closed

Ok, I need this feature too, so I made it :-)

Feature landed in the trunk + new <datasource> element.

Example of use

<menulist ref="foo">
   <label>foo</label>
   <datasource dao="mydao" method="findByMaxPrice" labelproperty="label" valueproperty="id" criteria="15"/>
</menulist>

It will call the findByMaxPrice with 15 as argument. We can also use criteriafrom attribute instead of criteria attribute: a name of an other control should be set in this attribute. Then jForms will get the data of this control as the argument for the method. (this control can be an <hidden> control for example ;-) )

comment:4 Changed 13 years ago by laurentj

  • Documentation needed unset
Note: See TracTickets for help on using tickets.