Development

Changeset 8526

You must first sign up to be able to contribute.

Changeset 8526

Show
Ignore:
Timestamp:
04/18/08 16:56:32 (7 months ago)
Author:
Leon.van.der.Ree
Message:

updated howto sandbox somewhat

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfExtjsThemePlugin/HowTo Sandbox.txt

    r5778 r8526  
    151151    model_class:      Assignment 
    152152    theme:            extjs 
    153  
     153   
     154   
    154155    sub_class: 
    155156      model_class:    Parcel 
    156       join_field:     assignment_id 
    157157      display:        [name] 
    158158      fields: 
    159         name: 
    160           name:       Parcel-Name 
     159       name: 
     160          name:     Parcel-Name 
    161161 
    162162    list: 
    163163      display:        [name] 
     164      actions: 
     165       _create: 
     166          name: Add new Assignment 
     167       _refresh: - 
     168       _print: - 
     169       _pdf: - 
    164170[/code] 
    165171I did find one bug. Unfortunately currently I haven't figured out how to automatically resolve the foreign-key-field between two tables, so you have to define the foreign-key-field yourself (I named it join_field). In my situation it went good, because of some lucky field-naming. 
     
    192198    model_class:      Parcel 
    193199    theme:            extjs 
    194  
     200    
     201    field: 
     202      name: 
     203         params: 
     204          editable: true   
     205     
    195206    list: 
    196       display:        [=id, assignment, name] 
    197       grouping: 
    198         field:        assignment 
     207      display:        [=id, assignment_id , name] 
    199208 
    200209    edit: