Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

resolveNode of a subform

Avatar

Level 4

hello, I have the problem of resolveNode of a subform to pass to a function

example


function test () {
     for (var i = 0; i <10; i + +) {
     var = oggettoSub xfa.resolveNode ("form1.body.subformA [" + i + "]");


     }
}

this works

now

how can I make become form1.body.subformA parametric?

I tried it with test.prova (form1.body.subformA.somexpression);

change function so

function test (objSubform) {
     for (var i = 0; i <MODULO.PAG.sub_serviziMilitari.sub_congedo.instanceManager.count; i + +) {
          var = oggettoSub xfa.resolveNode ("objSubform [" + i + "]");
     }
}

but does not work

0 Replies