Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2006

Tip: Looking for answers? Try searching our database.

Filter repeating table for a date range or last 5 records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John S. - 24 Jan 2006 00:44 GMT
Hello,

I want to know if it is possible to filter a repeating table to show only
records between a specific date range and also to show only 5 of the latest
records. Any help is appreciated.

Thanks
Bojana Marjanovic [MSFT] - 24 Jan 2006 01:24 GMT
Hi John,

You can filter a repeating table to show only certain records by setting
some conditional formatting on the table itself (not one of the fields
within the table). You should be able to easily set the conditions for the
specific date range and then enable the 'Hide this control' checkbox.

As for showing only the five latest records, that will require some code.
You'll have to make sure that the XML is sorted by date and then show the
last five instances.

-Bojana

> Hello,
>
[quoted text clipped - 4 lines]
>
> Thanks
Albator - 24 Jan 2006 07:54 GMT
Hi,

For complete the answer of Bojana:

If your repeating table is a main dataource you can in properties of
the section (display tab) filter data.

this feature is only possible for a main datasource. So if you  use a
secondary datasource you need to make a filter before that enter in
infopath or by code like say Bojana

Thierry
John S. - 24 Jan 2006 16:30 GMT
Thanks for the quick replies, but I cannot filter the records for a date
range (e.g today() - 10 does not work).

> Hi,
>
[quoted text clipped - 8 lines]
>
> Thierry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.