Warning: session_start(): open(/var/lib/php/sessions/sess_6l6aeff8u3kjhjr72rkl9vh069, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
concept Grouping {
S text, grouped;
}
module Groupings > DynCRUD {
*() { super(Grouping); }
afterVisualize {
replaceComponent(crud.tableSearcher.tfInput, func(JComponent c) -> JComponent {
centerAndEastWithMargin(c, jbutton("Group...", rThread {
define(searchTerm())
}))
});
onEnter(crud.tableSearcher.tfInput, rThread { define(searchTerm()) });
}
void define(fS text) enter {
final JTextField tfText = jtextfield(or2(text, dm_topInput())), tfGrouped = jtextfield();
showFormTitled("Add Grouping",
"Text:", tfText,
"Grouped:", tfGrouped,
rThread {
S text = gtt(tfText), grouped = gtt(tfGrouped);
uniq_sync(Grouping, +text, +grouped);
});
focus(nempty(text) ? tfGrouped : tfText);
}
}