Filters don't work with new row

J

Jody

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?
 
J

Jody

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]...
 
J

Jody

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?
.
.
 
J

Jody

WOW! That worked! You are amazing! Thank-you soooo much!
Is this documented anywhere?
-----Original Message-----
1. Make a backup of your form template.
2. Extract your form files to a folder.
3. Edit the manifest.xsf file in a text editor
4. Search for and delete any attribute useFilter="yes" on
an xsf:editWith element. Don't delete the element, just
the attribute.
5. Search for and delete any xsf:button elements with the
attribute action="xCollection::refreshFilter".
6. Save the manifest.xsf file and close the text editor.
7. Right-click the manifest.xsf file and choose Design.
8. Test the changes.

If there were no instances of the useFilter attribute,
then I'm not sure what might fix this.
--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



"Jody" <[email protected]> wrote in
message news:[email protected]...
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?
.
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top