Ticket #401 (closed task: fixed)
Unable to lookup specific case in case-control
|Reported by:||idbr||Owned by:||mpo|
It's not possible to retrieve cases of a case-cotrol by using findControl() function.
For example, change the case-control sample as follows:
var form = new $.org.kauriproject.forms.Form("form1", fconf1); console.log(form.findControl('/tn')); console.log(form.findControl('/tn/case')); console.log(form.findControl('/tn/value')); console.log(form.findControl('/tn/case-t')); console.log(form.findControl('/tn/case-n'));
The first log statement shows the case-control, the second one shows the selection-control, as expected.
The third one shows the control behind the current selected case (an input-control).
The fourth and fifth are both undefined, is there another way to get these form elements?