The easiest would be the usage of just one content area and placing the two tables side by side in one subform. This subform has to flow left to right and allow page breaks. Between the tables place an empty subform as spacer.
Well, that's because the calculation script returns false (= 0) if the expression is not met. var cResult = ""
if (DateField1.isNull eq 0) then
var nStartDate = Date2Num(Datefield1.formattedValue, "MM/DD/YYYY")
var nAddDays = ProjectLengthField.rawValue
var nEndDate = Sum(nStartDate, nAd...
You can set the selectedIndex property to change the value of a dropdown list. It takes a 0-based integer to select the nth item from the dropdown list. // Select the third item
DropdownList.selectedIndex = 2;
You can use FormCalcs Date2Num() method to convert a date into a number and Num2Date for the other way. Here an example:var nStartDate = Date2Num(Datefield1.formattedValue, "MM/DD/YYYY")
var nAddDays = ProjectLengthField.rawValue
var nEndDate = Sum(nStartDate, nAddDays)
DateField2 = Num2Date(nEndDat...
So you want to copy the information of each row unter DETAILS into the related row unter RETURN OF ITEMS I guess: Put this calculate script into the object "ReturnOfItems" an remove the other calculations script fromt the text fields.var nCount = _Enter1.count, // Count instances
oThat = this; // C...
Hi, there's another way to reset a form, which works better than resetData().Given the root node of you form is named "form1" than it looks this way.xfa.datasets.data.loadXML("<form1/>", true, true);
xfa.form.remerge();
You need to tell the form to start a recalculation, since this is only triggered automatically through changed values but not the presence of objects. Add this code to the existing script that controls the presence of your subforms. xfa.form.recalculate(true);