-
Hi Kathryn,
The xdImage namespace is most likely buried within one of the DLLs Microsoft has made to make InfoPath run. You could try searching around to see where it is stored and try to use that DLL in your project, but my guess is that it will be fairly difficult. If you can get it reverse engineered, let us know! I'd sure be impressed!
-
For sections, you can specify not to include the XML by default from within their properties dialog box. Try checking there.
-
Actually, this would be pretty easy to do with just expression boxes.
1. Drop the A structure on the view as a repeating table.
2. Add 2 blank columns to the table (InfoPath might try to create new nodes in the data source for this, but don't let it)
3. In the first column add an expression box that has an XPath like ...
-
Nukkumati has the right idea if you're just looking to generate a random number (as is the basis of this thread), but if you're trying to grab the SharePoint ID (which is also a GUID), you will have to do that by checking out the Address Bar in a web browser. Check out my blog post on Adding SharePoint List Items from InfoPath and you should find ...
-
Nukkumati is correct. There is no position 0 in XML. Weird, huh?
To avoid these problems, use the preffered method of looping:
var list = XDocument.DOM.selectNodes( ''_xpath_to_repeating_structure_'' );
var node;
while( ( node = list.nextNode()) != null )
{
XDocument.UI.Alert( node.text );
}
If ...
-
Hi Soham,
I really don't think you need to be using code in this situation. I think what happens is that you are always comparing to the first row of the repeating table. You need to make use of the current() or position() xpath functions. Is the section outside of the first repeating section also repeating? If so, you should compare where ...
-
Hi virmax,
Here's how I would do it:
0. Add an image control to your form. When it asks if you want the image to be included in the form or simply linked, choose LINKED.
1. Put all of your images in 1 folder, preferably accessible over the internet
2. Fill your drop-down with name/value pairs. The values should be the filename ...
-
Hi soham10,
Unfortunately, this isn't too easy. The only way you can do this is to insert a ''Please Select'' value into the data source that is populating the list, and then set that as the default selection.
-
Hi gwk2bust,
If you can get all of the projects to load, it looks like you have gotten everything. Can you please elaborate here?
-
Hi angie,
Your solution will have to be Full Trust in order to use SqlClient.