-
From Annie in Email
You asked me if I am trying to update the database or the infopath form.
I am actually trying to do both. I am trying to update the fields in the
infopath form and i assumed that once i click the submit button it will update
the database as well. But unfortunately it doesn't do either.
Please if you have any suggestions as ...
-
Hi Thierry,
You can use c# code to filter rows in the InfoPath form, you need to use xdExtension to call a c# method in the InfoPath form.
To call c# method in filter,
1. Go to filter Dialog.
2. Select ''Expression'' in the first dropdown.
3. Write the condition in the textbox, something similar to ( xdExtension:GetValue() = my:field1 ). ...
-
Hi chiablo,
My understanding is you always want to set values to the last row of your repeating table. If that is correct then your xpath needs to change accordingly,
your xpath should be
''my:SHPR/my:Feedback_option/my:Feedback/my:Feedback_repeat[last()]/my:Name'', this will get the last row of your repeating table.
Similarly your other xpath ...
-
Hi clochiani, Welcome to the Forum!
You can use
thisXDocument.View.Window.Close(true); to close Current InfoPath form.
Hope this Helps!
Agni
InfoPath Dev India
-
Hi Vasudha,
Fields(Controls)in InfoPath cannot be referred in c# code directly.
What you can do is create a seconadry dom variable,
use this secondary dom variable to conditionally make the InfoPath field readonly and
using the c# code set the seconadry dom variable.
Hope this Helps!
Agni
InfoPath Dev India
-
Here is the code for setting the attachment name,
//Get a refenrence to the email data connection
var oEmail = XDocument.DataAdapters(''Email Connection name'');
oEmail.To = ''To address'';
oEmail.CC = ''cc address'';
oEmail.Subject = ''subject'';
oEmail.Intro = ''Email body'';
//Setting the attachment name sends whole form xml as an attachment ...
-
If you set the attachment name to the Email connection then the form will be sent as an Attachment.
You can set attachment name when you create the Email data connection, it is the last textbox in the Email dataconnection wizard.
You can also do this in the code. EmailAdapter has an AttachmentName property, you can set the attachment name to ...
-
Hi Annie2002,
Welcome to the Forum!
I sorry I did not understand your problem fully, Do you want to update data in the InfoPath or the data in the database?
Agni
InfoPath Dev India
-
Hi Drobins,
Welcome to the Forum!
Yes you can do that. You need to maintain a field in the xml that says that, that particular section is already filled. For ex:- isFilled atribute to the first two sections. And set isFilled to true when user clicks on submit button.
Hope this Helps!
Agni
InfoPath Dev India
-
Hi Timo,
Welcome to the Forum!
Did you create an Email connection called ''main submit''?
If you dint create one you need to create an data connection email connection.
Note: Check for casing and spelling.
Agni
InfoPath Dev India