I have created two textFrame which is threaded each otherinto this textframe I'll copy and paste table inside this textframe.. after that I'll add rows to that table.. and when there is no space in the textframe . The remaining rows needs to add into the next textframe.. is there any script to do this..
Is there a reason the table is in another text frame inside the text frame?
Table can be placed as a text item within a single text frame.
I'm not 100% sure what you're asking here - maybe some more info on the workflow... 😄
Exactly - why table is inside the TextFrame as AnchoredObject ?
This won't work - it won't reflow. You can't have multiple TextFrames linked together as AnchoredObjects in another Story.
That is I'm doing for paginating table into the textframe
Why do you want to do it like that? Why can't you place the table the "normal" way?
Look into setting the table's text frames as Primary Text Frames on a master page and enable Smart Text Reflow under your preferences.
[...] sorry, should have checked pictures first.
Oh! so you want to flow a table from one anchored text frame to another? Hmm. That's tricky. A script could do it in various ways (I have two ideas immediately), but it wouldn't actually be threaded—it would be static and any text reflow would probably wreck it and require running the script again.
My best idea off the top of my head would be to set up the anchored text frames the desired sizes with script labels and then set up the table in threaded text frames the same heights as the anchored frames. Then a script could potentially position those non-anchored text frames exactly over the anchored text frames. They would look perfect, but wouldn't reflow until the script was re-run.