Hello all. I have written a code generator which displays data in a
grid. I use this for master-detail data editing and I think it
might be useful to others too. I'd like to integrate this with symfony
somehow but for this I need some help. If someone who knows more about
symfony's internals and likes what I've done could help me on this.
A demo can be found at url:
http://mathind.csd.auth.gr:7777/hydrochem/edit/hydro_id/1
Note that I have written no code for the retrieval, display and
saving of modified data on the grids. This is done by the code
generator
which reads a yaml file.
he javascript component which displayes the data is taken from yui-ext

This is a sample of the yaml file which shows the configuration of the
first grid:
options:
  object: hydrochemistry
grid1:
  class_name: WaterAnalysis
  criteria:
    field: wa_hydro_id
    param: hydro_id
  show_delete: true
  show_add: true
  height: 100px
  fields:
    wa_id: {name: ID, type: int, hidden: true}
    wa_depth: {name: Depth, type: double, precision: 5, blank: on,
blank_msg: 'Provide the depth'}
    wa_color: {name: Color, options: [0, without changes, 1, with
changes]}
    wa_smell: {name: Smell, options: [0, oudurless, 1, unplessant]}
    wa_transparency: {name: Transparency, options: [1, 4 - 5m, 2, 1m,
3, 10cm]}
    wa_taste: {name: Taste, options: [0, insipid, 1, salty, 2,
salty/bitter, 3, piquant, 4, unpleasant]}
    wa_ph: {name: pH, type: double}
    wa_temperature: {name: Temperature, type: double}
    wa_conductivity: {name: Conductivity, type: double}
    wa_oxygen: {name: Disolved Oxygen(%), type: double}
    wa_salinity: {name: Salinity(%), type: double}
    wa_hcarbons: {name: Hidrocarbonets, options: [0, absent, 1,
present]}
    wa_tensio_active: {name: Tensioactive substances, options: [0,
absent, 1, present]}
    wa_fenols: {name: Fenols, options: [0, absent, 1, present]}

Note that this is a work in progress.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs
-~----------~----~----~----~------~----~------~--~---

Reply via email to