Applying Conditional Text with SetProps()
Hi all,
I'm using FM 11 on Windows 7.
I'm having trouble deciphering the scripting guide (http://help.adobe.com/en_US/framemaker/scripting/framemaker_10_scripting.pdf) in relation to the SetProps() function. Specifically, I haven't been able to find a good description of the TypedVal properties (p. 400). Does anyone know of a document that describes these properties and how to use them?
My current task is to apply a conditional format to a row, but I would also like to apply a condfmt to an entire table. Here is my most recent (unsuccessful) attempt:
function setRowConditional(row, condFmt)
{
var props = row.GetProps();
var prop = new PropVal();
prop.propIdent.num = Constants.FP_InCond;
prop.propVal.ival = condFmt.id;
prop.propVal.obj = condFmt;
props.push(prop);
row.SetProps(props);
}
Thanks,
Trevor
