-
Is there anyway of enabling infopath to populate a field with data from multiple lines within a repeating table.
I have a repeating table linked to sharepoint.
Fields 1 , 2 , and 3 submit to sharepoint but if i insert another item this data is not captured.
Can multiple lines of data populate one cell?
-
I'm glad the HowTo was helpful!
You can also get the namespace that InfoPath has generated by looking at the very top of your code. There will be some configuration information in [] there.
-
Many thanks guys works a charm
-
Glad you got yours working.
Incase anyone else wants to do similarly. Removing or adding sections can be done in javascript (not sure about C# but presumably in other languages aswell) with code like the ...
-
Thanks for the hint Greg, got my test one working now.
the filter still needs the preceding-sibling test:
not(. = ../preceding-sibling::dfs:Vehicles_-_Flat_data_Source/@Year)
similarly the next two dropdowns will be
not(. = ../preceding-sibling::dfs:Vehicles_-_Flat_data_Source[@Year = current()/my:Year]/@Make)
and
not(. = ...
-
The answer is at the following link: http://infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead
The example is for an external xml file, but fixing a database access is almost the same. I just used the debugger to find what namespace prefix InfoPath had generated.
-
I have a secondary data source based on a stored procedure. I'm using JScript to run the query on a button click. Data is returned fine and is displayed in the bound repeating table. Here is the xml from the debugger immediate window:
? XDocument.DataObjects(''spSelManualCharges'').DOM.xml
''<dfs:myFields ...
-
Once you delete the database connection there should be a red bang displayed on each of the fields that was tied to one of those database nodes. You will have to delete these controls manually.
-
This is actually a limitation when working with managed code.
Try this: make a button in the form that calls this code:
thisXDocument.UI.Alert( Environment.UserName );
and you will be able to see the error that InfoPath emits. We have talked about this and have not found a workaround.
-
I've reviewed the different security options and am confused why my user is having an issue. I have two InfoPath forms. Both have the same Security setting to ''Domain.'' Both are published to the same Sharepoint site with the same privileges. One the user can access without a problem. The other one he gets ''Insufficient Security ...