Scripted changes to table content is not registered until clicking into content

Originator:jalkut
Number:rdar://23143519 Date Originated:16-Oct-2015 10:40 AM
Status:Open Resolved:
Product:iWork Product Version:5.6 (2553)
Classification:Serious Bug Reproducible:Always
 
Summary:
Changes to the content of text placeholders embedded in a table will not be reflected in the visible content of a document, or for that matter in e.g. a printed version of the document, until the table content has been clicked into as if to edit it.

Steps to Reproduce:
1. Unzip attached PlaceholderScripting.zip
2. Open TestPlaceholder document in Pages.
3. Open PlaceholderScript in Script Editor.
4. Run the script.


Expected Results:
The content of columns 2 and 3 of the table in document 1 should have been updated to contain values "6/13/15" and "Booyeah" respectively.


Actual Results:
The original placeholder values persist in the table.

To get the updated values to appear, double click into any cell of the table as if to edit it.

As a side note: now click outside the table and Cmd-Z undo to reverse the scripted changes. Again, the model data have been updated but the UI doesn't reflect it. Double click in a cell again to get the changes to register.



Version:
Pages 5.6 (2553)
10.11 (15A284)

Notes:


Configuration:


Attachments:
'PlaceholderScripting.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!