Infopath 2007/SQL 2008 R2/stand alone no Sharepoint/NOT a browser form - using Infopath filler
Header/Detail situation. 2 databases. Keyed off an integer.
Making an edit form. If they just sort on the control or other numbers and bring up one record then everything is fine. But if they don't know what record they want then things get fun. I made a 2 stage form where there are parameters to search on.. hit run query and a list of record headers comes up. A button in front of each one. This is what is supposed to happen. Choose the record you want, hit the button and the view switches and prepops the record you want into the edit form. I have a 'hidden' field and an on click rule that 'in theory' sets the value of the hidden field to the control number. Then another rule that switches the view. And other rule that sets the control number from the hidden field.
The first part works... but when I choose a record and hit the button the view switches and the first header (from the previous query) loads and all of the details from all the query results load with it.
How do I tell what is being stored in that field? I have a number of ideas as to what could be wrong.. but I don't know how to troubleshoot and find the actual fail point.
I have spent the last 4 days reading web sites and forum posts... I'm obviously missing something really stupid simple