-
Hi, I try this I can make it work on an attachment file but not on a picture, I don't know why. You can do something a little different with a Rich text field. you save your file somewhere and you modify the inner xml of your RT field like that:
<IMG xmlns=\"http://www.w3.org/1999/xhtml\" SRC=\"" + ...
-
Ok with your Xpath replace the function field239 by this onepublic void field239_Changed(object sender, XmlEventArgs e)
{
// Write your code here to change the main data source.
string MyURL = ...
-
Put your code here :public void field239_Changed(object sender, XmlEventArgs e)
{
// Write your code here to change the main data source.
string MyURL = this.MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:test",this.NamespaceManager).Value;
...
-
I just check, you have to encode your field here a good exemple:
http://www.bizsupportonline.net/blog/2010/04/top-10-questions-infopath-file-attachments/
-
Have you try to convert to byte [] to base64 and put it in your field ?
http://www.exampledepot.com/egs/java.net/base64.html
-
You have a remove button :
After you do that just select C#.
-
-
Yes it'normal, you have to click on Remove code to delete your old code files.
-
hum, it seem that you choose VB.... my code is in C#, so
On Tools, form Option, Go to programming and click remove code, and then choose C#, and recreate your code project
-After that right clic on your drop down, programing, changed event, it will open VSTA
And put the code on this function
-
Ok, it's really weird... I think you have to do your last idea extract the data from a Secondary Datasource, iterate through the Nodes and populate arrays. I can then manipulate the arrays to filter out the data I do not want. I think it's working