I have tried making the column in question initially hidden then conditionally showing it or letting the column be visible initially and hiding all other columns but Ebase does not hide or show the column correctly either way.
The repeater is organized this way:
DEPARTMENT NAME
Department child row 1
Department child row 2
Department child row 3
Department child row 4
NEXT DEPARTMENT NAME
Department child row 1
Department child row 2
Department child row 3
Department child row 4
Each child row has a cert hyperlink column. I want to hide this cert column for all departments except for 1 specific department.
The script that is supposed to do this looks like this:
Code: Select all
var allDepartments=tables.DEPARTMENT;
var allRows=tables.LOGS;
rows=allRows.getRows();
while (rows.next()) {
parentRow=allDepartments.findRow(allDepartments.DEPARTMENT,allRows.DEPARTMENT.value);
if (parentRow != -1) {
allDepartments.setCurrentRow(parentRow);
if (allRows.DEPARTMENT.value=="TE") {
// Show the column
allRows.Cert.columnControl.setHidden(false);
controls.CERTCOLUMN.show();
}
}
}
Update: I did something that's one step closer to what I want to do but not quite there. I made the cert column visible then changed the if loop
Code: Select all
if (allDepartments.CALIBRATIONLOGPREFIX.value != "TE") {
allRows.Cert.columnControl.setHidden(true);
controls.CERTCOLUMN.hide();
}