Xref

De moozaic
La revisió el 03:38, 15 des 2015 per Eugeni (Discussió | contribucions)

(dif) ←Versió més antiga | Versió actual (dif) | Versió més nova→ (dif)
Dreceres ràpides: navegació, cerca

Relaciona un registre amb altres amb una taula intermitja (xref)

        teachers:
            type: xref
            caption: teachers
            optionsSpan: 3
            span: 12
            table: 
              ado: DriveappointStudentsScheduledReportResourcesXrefAdo
              localId: periodicReportId
              xrefId: entityId
              fixedFields:
                  entityType: teacher   
              options: SELECT id, name as name, (SELECT GROUP_CONCAT(gridId) from driveappoint_teachers_grids_xref where driveappoint_teachers_grids_xref.status=1 and teacherId = driveappoint_teachers.id) as filter FROM driveappoint_teachers WHERE PERMANENT_CONDITIONS order by name