Ticket #555 (closed new feature: fixed)

Opened 7 months ago

Last modified 7 months ago

Jforms : Ajouter parametres sur methodes dao

Reported by: yferp Assigned to: laurentj
Priority: normal Milestone: Jelix 1.1 beta 1
Component: jelix:forms Version:
Severity: normal Keywords: jform dao
Cc: Php version:
Review: Hosting Provider:
Documentation needed: 0 Blocking:

Description

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

Change History

04/23/08 16:52:33 changed by yferp

  • owner set to yferp.

04/23/08 23:28:26 changed by laurentj

  • status changed from new to assigned.
  • owner changed from yferp to laurentj.

04/24/08 01:14:51 changed by laurentj

  • status changed from assigned to closed.
  • docneeded set to 1.
  • resolution set to fixed.

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 ;-) )

04/27/08 00:33:06 changed by laurentj

  • docneeded deleted.
Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed