attemptsEl.select("" + attemptsKeys[0], true);======> after this line i have added below code and after that am not able to sve data with modifications in Learning content tab.
resetCount = uifactory.addCheckboxesVertical("reset", "count.reset", formLayout, new String[]{"xx"}, new String[]{null}, null, 1);
resetCount.addActionListener(listener, FormEvent.ONCLICK);
empId = uifactory.addIntegerElement("
emp.id" ,0, formLayout);
empId.setDisplaySize(10);
empId.setVisible(false);
attemptsEl.setEnabled(false);
// </OLATCE-289>
uifactory.addFormSubmitButton("save", formLayout);
.....
formInnerEvent (....) is here below.
protected void formInnerEvent (UserRequest ureq, FormItem source, FormEvent event) {
if(event.getCommand().equals("ONCLICK"))
{
if(resetCount.isSelected(0))
{
empId.setVisible(true);
empId.setMandatory(true);
// clearForm();
}else {
empId.setVisible(false);
}
}
Please suggest on this..