-
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 ). ...
-
You are a genius... thank you so much!
^_^
-
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
-
(Reported by Ben Walters)
Suppose you want to Export a form to Web format (HTM) but your form has a picture control that is disabled ...
Repro steps:
1. Start InfoPath
2. Design a Form
3. New Blank Form
4. Controls
5. Click Picture and choose to Include in form.
6. Click Data Source
7. Drag field1 into view underneath first picture. Choose ...
-
Hi,
Is there a way to set an InfoPath field property to ReadOnly in code.
Thank You
-Vasudha
-
Try storing the return value of resources.GetObject(...) to see what is being returned. It might help determining what's going on.
Jim Cantwell
InfoPathDev - Redmond
-
Just some background... The purpose of my form is to act as a problem report that can be passed around to different people in my company. I have a feedback section where someone can add feedback to the form before moving it onto the next person.
With our current outlook form, we've had problems with people modifying feedback that they've ...
-
I have a couple of questions regarding infopath in conjunction with c# code.
1. How do u close an infopath form using c# code behind (service pack).
I tried the following methods that didn't work (mostly security exception or com exceptions):
using WIN = ...