Hi Greg.
I seem to have hit a problem actually.
The code thisXDocument.View.ExecuteAction("xCollection::insert", "group4_6"); did the trick on the form.
With all this working, I moved the layout of the form about, which includes sections.
And from now on the ExecuteAction method is failing with the error;
The specified bstrAction value for the View.ExecuteAction call is not applicable for the current selection.
I see from MSDN;
the ExecuteAction method of the View object is used to insert data using the xCollection editing component, based on the selected context
Am i correct that selected context means, what node is currently selected on the form?
Because what confuses me about this is ... what if i have no nodes in my repeating table. How can i select this to perform the ExecuteAction?
I think to summarise i am asking if you could explain the limitations to using ExecuteAction? By this i mean, say ExecuteAction for inserting a new record in a repeating table is being triggered from the OnAfterChanged event of a text box. Can the text box be located anywhere within the form Data Source / can the text box event just call ExecuteAction / what if the repeating table has no rows?
Thanks again. Scott.