Sorry more questions:
As you can see in attached screenshot, I have a repeating table that lists contacts for each database I manage. For each row of the table, I put a Delete button for users to remove the contact. In preview form, when I click on Delete button, I always see the first row being deleted even when I click on Delete button in 2nd and third rows. Here is the code I use to delete. What am I doing wrong?
function btnDeleteAppContact::OnClick(eventObj)
{ var AppContactID = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:SQLComplexDBList/@AppContactID").text;
if(AppContactID != null) {
XDocument.QueryAdapter.Command = "delete dbo.AppContact where AppContactID = " + AppContactID;
XDocument.Query(); } }
--------------------
How can I add a Confirm Delete popup window before actually deleting a row? I am new to JScript?
Thanks
Ali