Hello everyone,

Question => I have the following shema

realestate:
  actAs: { Timestampable: ~ }  
  columns:
    id: { type: integer(9), primary: true, autoincrement: true }
    addressStreet:  { type: string(100), notnull: true, minlength: 2 }
    addressNr:  { type: string(10), notnull: true }
    adressBus:  { type: string(10) }
  relations:
    realestatePropertyValues: {type: many, local: id,foreign:
realestate_id, onDelete: CASCADE  }

realestateGroups:   #All the possible groups where a realestateProperty
can belong to (For example the bathroom)
  columns:
    id: { type: integer(9), primary: true, autoincrement: true }
    name: { type: string(100), notnull: true, unique: true, minlength:
2 }
  relations:
    realestateProperties:
      type: many
      class: realestateProperties
      local: id
      foreign: group_id
      onDelete: CASCADE

realestateProperties: #Possible properties belonging to a group (For
example the sink or the toilet)
  columns:
    id: { type: integer(9), primary: true, autoincrement: true }
    name: { type: string(100), notnull: true, unique: true, minlength:
2 }
    group_id: { type: integer(9) }

realestatePropertyValues: #The values of the realestateProperties
selected in the realestate form (Not included)
  columns:
    id: { type: integer(9), primary: true, autoincrement: true }
    realestatePropertyId: { type: integer(9) }
    remark: { type: string(2000) }
  relations:
    realestateProperties: { class:realestateProperties, local:
realestateProperty_id, foreign: id, foreignType: one }

Now I want to create a realestateForm where the user is able to select
all realestateProperties using check boxes (Grouped by
realestateGroups).  For example the user creates a new realestateForm
and looks for the bathroom group and selects the sink  and the shower.

How do I do this in Admin Generator ?
Is this even possible or do I have to create costum code, How do i
approach this.

Thanks

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to