I have an InfoPath form with 4 views to the same xml data
set. 3 of the views have filters to show only selected
data rows. When a user adds a row in the unfiltered view,
that row should be filtered out of the other 3 views.
But, if the user switches to any of the 3 filtered views
the new row gets included although it shouldn't.
Now, if the user saves and exits InfoPath and then reopens
it, the new row is filtered properly in all views - so I
know that the filters are working as intended. How can I
force the filter to work properly?
-----Original Message-----
Jody,
I still don't fully understand your scenario. I need
more
details on what exactly you are trying to do, what you
have already done, what is actually happening as a result,
and what you are expecting to have happen.
There could be an easier way then using code... but I
can't give an answer yet until I understand more.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
"Jody" <
[email protected]> wrote in
message news:
[email protected]...
Do you know if there is way to it programmatically
in .net? I don't want my users to have to worry about it.
-----Original Message-----
What type of control is the filter on? Is there a
Refresh
Filter command in the shortcut menu on the left of the
table? Does it get filtered when you choose that command
from the menu?
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
"Jody" <
[email protected]> wrote in
message news:
[email protected]...
I have several views - each with a filter. When a new row
is inserted in the default view (the default veiw does not
have a filter), it does not immediately get filtered out
in the other views - only after the InfoPath form is
closed and reopened does it get filtered properly.
I tried to issue a thisXDocument.View.ForceUpdate() and it
does not help.
Any ideas?
.
.
.