-
Okay, thanks. I'm on the right track now...but still getting some errors. See my comments to the right of the code.
The xml file is called PatientData.xml and I created a datasource called PatientData that references the xml file. ...
-
Hi All,
I am trying programatically load text to the Rich Text Box in a Infopath 2003 form using C# (I am not looking for a solution loading data using WebServices)
normally seperate lines and text formatings are saved as <div> and <strong> tags.
I need to bind these formating tags into Infopath ...
-
You just need to go through all the data inside your dataset with a foreach loop and then populate your list with the AddItems function.
foreach (DataRow dataRow in patientTable.Rows)
{
string approver = dataRow.Item[<the ID of the data you want to recover>].toString();
string ...
-
In the spirit of full disclosure, this is a current customer so the request is being handled via our support email. =)
-
Okay, I've finally been able to get back to this and I'm having trouble. I have created the empty xml file (PatientData.xml), now I need to populate it with my dataset. It looks like in this example this is getting its data from a sharepoint list, but my datasource is a SQL Stored Procedure. I'm not sure how ...
-
To get the XPath for your SelectSingleNode, right click the node and select "Copy XPath". Then paste that in your quotes (though what you have in your post does look correct). Perhaps before getting the value, create another XPathNavigator variable for the node itself, so you can see if that returns null?
XPathNavigator surnameNode = ...
-
Just to clarify - group2 is the name of the repeating group and field1 is the name of the drop down list box inside the repeating group.
DataSource is like this: myFields -> group1 -> group2 -> field1
-
Problem sorted! Found this formula on another forum for rounding numbers and used it in my balance field as per below:
round((sum(value)) * 100) * .01
So the formula I put in the "Balance" field is now round((sum(TotalDue)) * 100) * .01 - round((sum(TotalPaid)) * 100) * .01
The data validation no longer flags up any errors when ...
-
Do you have an open rule on your status field? The rule on your status field to blank the comment will run whenever the status field changes, so something else must be changing your status field. You may want to look at the status field using the logic inspector to see what all may be affecting it -- in the Data Source task pane, right click on ...
-
I'm trying to select the value from a textbox but it keeps returning NULL, I can't for the life of me figure out why. Here's some info:
My code:
XmlNamespaceManager ns = this.NamespaceManager;
XPathNavigator xnDoc = this.MainDataSource.CreateNavigator();
string surname = ...