Question
FDK - Iterating list of conditional expressions in Frame 8/9 documents
Has anyone figured out a way to enumerate the list of user defined conditional expressions defined in a FrameMaker 8 or 9 document via the FDK? Adobe Partner support directed me to the forums.
Currently, our product ePublisher, scans for all defined conditions in a FrameMaker document with a loop similar to:
id = F_ApiGetId(..., FP_FirstCondFmtInDoc);
while (id > 0)
{
...
id = F_ApiGetId(..., FP_NextCondFmtInDoc);
}
This works great and allows us to display the complete list of document conditions in our UI.
For conditional expressions, we are about to retreieve only the active conditional expression as follows:
exprAsString = F_ApiGetString(FV_SessionId,
docId,
FP_BooleanConditionExpression);
Therefore, we can track only a single user defined conditional expression per source FrameMaker document.
Does anyone know if there a way to iterate the list of user-defined conditional expressions similar to the approached outlined for conditions?
Currently, our product ePublisher, scans for all defined conditions in a FrameMaker document with a loop similar to:
id = F_ApiGetId(..., FP_FirstCondFmtInDoc);
while (id > 0)
{
...
id = F_ApiGetId(..., FP_NextCondFmtInDoc);
}
This works great and allows us to display the complete list of document conditions in our UI.
For conditional expressions, we are about to retreieve only the active conditional expression as follows:
exprAsString = F_ApiGetString(FV_SessionId,
docId,
FP_BooleanConditionExpression);
Therefore, we can track only a single user defined conditional expression per source FrameMaker document.
Does anyone know if there a way to iterate the list of user-defined conditional expressions similar to the approached outlined for conditions?
Thanks!
Ben