Set Property of Book Component
I am trying to set the Page Numbering property of a book component using this script:
var book = app.ActiveBook;
var bookComp = book.FirstComponentInBook;
bookComp = bookComp.NextBookComponentInDFSOrder;
var compProps, i;
compProps= bookComp.GetProps();
i = GetPropIndex(compProps, Constants.FP_PageNumStyle);
compProps.propVal.ival = Constants.FV_PAGE_NUM_ROMAN_LC;
bookComp.SetProps(compProps);
When stepping through the script in debug it gets to the last line and then hangs forever and Framemaker becomes unresponsive.
I am able to change the PageNumStyle using this line:
bookComp.PageNumStyle = Constants.FV_PAGE_NUM_ROMAN_LC;
But that does not apply the setting to the component.
How do I apply the setting once I have changed it?
