I have a form in which I connect to a SQL Server 2005 database using a SQL Server endpoint as the web service (it's not a .NET web service). I'm using
stored procedures with input parameters for SELECT's, UPDATE's, INSERT's and DELETE's. The stored procedures for the SELECT's work fine -- I use them in
drop-down list boxes and repeating tables or repeating sections.
However, I'm not able to click on or highlight a row to get the values of fields in that row to use for the input parameters for the UPDATE, INSERT and
DELETE stored procedures. For example the stored procedure for DELETE's uses the primary key of that row, but it will only use the primary key of the first
row in the repeating table/section and delete that row from the database, even if I click on another row (I have a "Delete" button to submit the stored
procedure).
I read articles on the current() function and tried this, but it either didn't like the way I put it in, or still used the primary key from the first row.
Is there something I'm missing, is there another function I could try, or is there something about bringing a resultset into InfoPath using an endpoint
and/or a stored procedure that is causing the problem?
I'm not a programmer, so is there a way to do this without coding (hence, the endpoint instead of a .NET webservice)? If coding needs to be used, can
someone supply an example.