-
Thank you for the screenshot. As far as I can think, what you describe is possible, but fairly complicated. I can think of two approaches:Manually modify the form's XSL file to generate the tables from your existing data source (requires a good understanding of XSL and HTML).Use code to organize your data into a tiered structure in ...
-
Would you mind attaching a screenshot of your data source (from the taskpane)? I have a feeling that there's no easy way to do this using just the InfoPath designer, but let's have a look at the data source first.
-
It looks like there is a semicolon after http. Did you mistype that here, or mistype it somewhere else and paste it here?
-
Your screenshot shows that each rightListItem node has two children: rightListItemName and rightListItemValue. I'm assuming that rightListItemName are the values that are displayed in the list box (the values the user can see), and rightListItemValue are the values "behind" the list box.
When you find the item you're ...
-
It sounds like my:rightListItem has the display values for the listbox and the actual values are in some other nearby field. Am I right?
If so, you need to set selectedItemNav to the "value value" that corresponds to the display value that matches your search.
-
You should be able to do:XPathNavigator listBoxField = domNav.SelectSingleNode(path to node bound to listbox, NamespaceManager);
listBoxField.SetValue(listItemNav.Current.Value); And you can remove the Clone() statement.
-
I understand better now.
What you can do is represent each of your various fields in its own repeating section, and then filter each repeating section to only display the relevant row (Control Properties->Display->Conditional Formatting), by hiding rows on the condition name != 'Relevant value'
-
This will do the trick: var group1 = XDocument.DOM.selectSingleNode("/my:myFields/my:group1");
var group2 = XDocument.DOM.createNode("element", "my:group2", "http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-10-26T11:56:24");
group1.appendChild(group2); You'll of course need to ...
-
It sounds like you should be able to use Tools->Default Values to hardcode the Name values. Am I mistaken?
-
Are you saying you're looking for the thisXDocument.UI.confirm() function?
In IP 2007 you should just use the usual System.Windows.Forms API:
DialogResult response = MessageBox.Show("Are you sure you want to do this?", string.Empty,
MessageBoxButtons.YesNo);
if (response == ...