These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

resolveNode in Multi occurence Form

cvanmech
Registered: Jan 9 2009
Posts: 17

ResolveNode in a Javascript.

I have following code in FormCalc written.
this is a multi instance form which checks that an starttime is smaller then the end time.
when this is not the case the time entered is blanked out.

var t3 = Time2Num(data.p1.Task.end_time[*].formattedValue, "HH:MM:SS" )
var t4 = Time2Num(data.p1.Task.start_time[*].formattedValue, "HH:MM:SS" )

//data.p1.#subform.Table3.Row1.start_time[*]
if ( ( t3 < t4 &( t3 <> 0)) or t4 == 0)then
$ = null
endif

I'm trying to translate this code to Javascript with a "resolveNode" but I don't succeed.

Can somebody help

My Product Information:
LiveCycle Designer, Windows
xrum
Registered: Feb 25 2009
Posts: 124
xfa.resolveNode("form1.formPage.mainSub.[" + auditCount + "]").start_time.rawValue

where

var auditCount = xfa.form.form1.formPage.mainSub.instanceManager.count-1;

hope this helps