I figured it out.
As reference for any that also need to do this -
I have a subform inside a page. Both are set to Flowed, Western Text. Call the subform "EOC". Inside EOC I have a text field where a user inputs an entry, call it "InputEOC". Under InputEOC is a dynamic table, call it "tblOne". tblOne has "Add" and "Delete" buttons to add and delete rows as needed. I needed the ability to add in another instance of EOC, which includes InputEOC and tblOne.
My issue was creating a new number reference for each row that took into account a new instance of EOC. I have a cell in tblOne that is a textfield set to calculated - read only. The code I created (calculated) was:
var pos1 = EOC.index + 1;
var pos2 = this.parent.index + 1;
pos1 + "-" + pos2 + "-EOC";
This creates a 1-1-EOC, 1-2-EOC, 1-3-EOC, etc for each row under the first instance of the subform EOC, and if another instance of EOC is added the new rows begin 2-1-EOC, 2-2-EOC, etc.