Highlighted

Numeric Fields not working the way I expected

Avatar

Guest

11-11-2008

I have tried both pieces of code in the click event, but nothing happens with the WearRing_CaseClearance (numeric field) Field.



var ringDiameter = topmostSubform.Page2.Span[7].WearRing_Case_Diameter.rawValue;

WearRing_CaseClearance.rawValue = ringDiameter;



------------------------------------------------------------------------



var ringDiameter = topmostSubform.Page2.Span[7].WearRing_Case_Diameter.rawValue - topmostSubform.Page2.Span[8].WearRing_ImpellerHub_Diameter.rawValue;



if (ringDiameter < PM_CaseClearanceMIN.rawValue || ringDiameter > PM_CaseClearanceMAX.rawValue)

{

//WearRing_CaseClearance.rawValue = ringDiameter;

///WearRing_CaseClearance.fillColor = '255, 0, 0';

}

else

{

//WearRing_CaseClearance.rawValue = ringDiameter;

//WearRing_CaseClearance.fillColor = '255, 255, 255';

}

Replies

Highlighted

Avatar

Guest

11-11-2008

The WearRing_CaseClearance field is shown like this -

topmostSubform.Page2.Span[11].P.WearRing_CaseClearance - in Designer.
Highlighted

Avatar

Guest

11-11-2008

I found an odd but working solution.



It seems when I converted the Word Document to a PDF, it made each section in my form a span block. Adobe seems to treat span blocks as subforms. So when I right-click (in the hierarchy tab), the span tags, an option of "unwrap subform" is available. Unwrapping all the subforms/spans allowed my fields to see each other regardless of which span block they were in.



Hope this helps anyone else.