-
Well, not quite. You see, you are still using the full xpath, which takes you back to the first item. So instead of this:
valueField1 += xn.SelectSingleNode("/my:myFields/my:myGroup/my:Field1", NamespaceManager).Value + "\n";
You'd want this:
valueField1 += xn.SelectSingleNode("../my:Field1", ...
-
This is much nastier than I thought it would be. After passing a paramer and calling the execute method (no problem), I am having a bunch of problems retrieving the string array.
Here is the sec. data source (can't paste it) - anyway it ends like this:
datafields - tns:GetRequesterResponse - GetRequesterResult - ...
-
Sorry Hilary,
Would this be what you mean?public void btnSend_Clicked(object sender, ClickedEventArgs e)
{
// Write your code here.string valueField1 = null;
string valueField2 = null;string valueField3 = null;
string subject = null;string body = null;
XPathNavigator mds = MainDataSource.CreateNavigator();EmailSubmitConnection esc; ...
-
You are selecting the first row when you use:
mds.SelectSingleNode("/my:myFields/my:myGroup/my:Field1", NamespaceManager).Value
for example. Instead, you could use:
xn.SelectSingleNode("../my:Field1", NamespaceManager).Value
to get the value of Field1 for the same Group instance as the Field4 that is 'True'.
-
Hello Hilary!
Thank you for your quick respond!
Here is the code:
using Microsoft.Office.InfoPath;
using System;
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using mshtml;namespace TestEmail
{
public partial class FormCode
{
// Member variables are not supported in browser-enabled forms.
// Instead, write and ...
-
Hi:
Does the button have code on it to do this? Can you post your code?
-
Well..dang if it still needs to be published, ( hence having InfoPath client on some machine in the production domain), it's not even worth it ( to me at any rate) having to go into Visual Studio, learning all that stuff bla bla bla. I mean it's really simple deploying after it's published.... .{ copy to network, Verify, ...
-
I am trying to do the same thing, only with an access database and no share point. Is this possible? Thank you.
-
Well, whenever you build an InfoPath form in Visual Studio, you have to package it and deploy it, so I imagine you can do it with a regular form, but I don't know the steps. I still needs to be published so that the template knows its references and so that it can be uploaded to Central Admin - can't upload templates that weren't ...
-
Hello All!
Wondering if anyone would be able to help me.
I've a simple form with a repeating table inside, there are only 4 columns.
The last column is a checkbox where if the box is checked, it'll send an email of the data on that row to someone when the button is clicked.
What it's happening right now is that, it ...