I have solved this problem by opening the application XML in an editor and then putting a SECTION control below the table details. You can then set the data source ID of the SECTION = mainrecord and place your action button (to add the row + set values) w/in that section. Then, the button push will work 100% of the time, even if there are not yet any child rows in the table.