Is the date format of @IncidentDate the same as that of @MeetingDateReported?
Or do they differ? If they differ, the filter probably won't work. Try
entering a date manually instead of the
"xdXDocument:get-DOM()/dfs:myFields/dfs:queryFields/q:ptblMeeting/@MeetingDateReported"
part when setting up the "Filter Data" and try to find out what date format
is expected.
---
S.Y.M. Wong-A-Ton
> I have a secondary datasource that I would like to filter by what is entered
> in the main form.
[quoted text clipped - 28 lines]
> But i can not get it to show data, even though there are matching dates. If i
> don't filter, data populates - Any help would be greatly appreciated.
grizeen - 22 Mar 2006 00:35 GMT
One is a date picker (Meeting Date Reported) and One is a Text box. Both are
set to not display time. Do date pickers carry the dat eexactly as shown on
screen?
>Is the date format of @IncidentDate the same as that of @MeetingDateReported?
>Or do they differ? If they differ, the filter probably won't work. Try
[quoted text clipped - 10 lines]
>> But i can not get it to show data, even though there are matching dates. If i
>> don't filter, data populates - Any help would be greatly appreciated.
S.Y.M. Wong-A-Ton - 22 Mar 2006 14:18 GMT
No, what you see on screen is not the actual value used by InfoPath. InfoPath
uses a format like YYYY-MM-DDTHH:NN:SS.
---
S.Y.M. Wong-A-Ton
> One is a date picker (Meeting Date Reported) and One is a Text box. Both are
> set to not display time. Do date pickers carry the dat eexactly as shown on
[quoted text clipped - 14 lines]
> >> But i can not get it to show data, even though there are matching dates. If i
> >> don't filter, data populates - Any help would be greatly appreciated.
grizeen - 22 Mar 2006 04:15 GMT
I think you may have hit on it - I am still not sure how to fix it though -
I got a record for the incident section if I set the filter to "2006-03-
18T00:00:00".
I noticed the date picker does not put out time if you say show XML value. I
am not sure i can make the two fields equal
>Is the date format of @IncidentDate the same as that of @MeetingDateReported?
>Or do they differ? If they differ, the filter probably won't work. Try
[quoted text clipped - 10 lines]
>> But i can not get it to show data, even though there are matching dates. If i
>> don't filter, data populates - Any help would be greatly appreciated.
S.Y.M. Wong-A-Ton - 22 Mar 2006 14:21 GMT
You could try to get their formats equal using the substring() and concat()
functions. I'm not sure if these functions will work in a filter, though. For
information on dates in InfoPath and ways on manipulating them, take a look
at the date/time solutions I've written on my website:
http://enterprise-solutions.swits.net/infopath/solutions.htm#datetime
---
S.Y.M. Wong-A-Ton
> I think you may have hit on it - I am still not sure how to fix it though -
> I got a record for the incident section if I set the filter to "2006-03-
[quoted text clipped - 16 lines]
> >> But i can not get it to show data, even though there are matching dates. If i
> >> don't filter, data populates - Any help would be greatly appreciated.
grizeen - 22 Mar 2006 19:00 GMT
Thanks so much I got the concat to work and I can now filter the expression
boxes in the Incident Section that is supplied by the secondary data source -
the new problem is I get blank sections - looks like I am filtering the
expression boxes and not the sections (I tried conditional formating, but all
sections where hidden, not just the ones that did not have data) Any ideas?
>You could try to get their formats equal using the substring() and concat()
>functions. I'm not sure if these functions will work in a filter, though. For
[quoted text clipped - 9 lines]
>> >> But i can not get it to show data, even though there are matching dates. If i
>> >> don't filter, data populates - Any help would be greatly appreciated.
S.Y.M. Wong-A-Ton - 23 Mar 2006 18:59 GMT
I'm not sure whether I understand your scenario well enough to know what
could be going wrong. If you are using a repeating section that is bound to
your main data source the "Filter Data" option should be available on the
repeating section and you could use the same filter you previously used.
---
S.Y.M. Wong-A-Ton
> Thanks so much I got the concat to work and I can now filter the expression
> boxes in the Incident Section that is supplied by the secondary data source -
[quoted text clipped - 15 lines]
> >> >> But i can not get it to show data, even though there are matching dates. If i
> >> >> don't filter, data populates - Any help would be greatly appreciated.
grizeen - 24 Mar 2006 01:41 GMT
The repeating section is bound to my secondary data source. Therefore I can't
filter it
The repeating section is made up of expression boxes.
I tried mapping the repeating section to a field I created in main data
source so I could filter it, but it will not show repeating information from
the secondary source.
My overall goal with this is to show information from a second Access
Database - this data does not need to be modified so the secondary sourse is
a good choice - I just need to filter this repeating section to show data
from the secondary source that matches data retrieved from the main
>I'm not sure whether I understand your scenario well enough to know what
>could be going wrong. If you are using a repeating section that is bound to
[quoted text clipped - 8 lines]
>> >> >> But i can not get it to show data, even though there are matching dates. If i
>> >> >> don't filter, data populates - Any help would be greatly appreciated.
S.Y.M. Wong-A-Ton - 24 Mar 2006 15:24 GMT
Is coding an option?
I will mull it over the weekend, but I'm afraid that you will only be able
to get this done through code, dynamically adding a WHERE-clause to the
Command of the secondary data source using the queryField values.
---
S.Y.M. Wong-A-Ton
> The repeating section is bound to my secondary data source. Therefore I can't
> filter it
[quoted text clipped - 20 lines]
> >> >> >> But i can not get it to show data, even though there are matching dates. If i
> >> >> >> don't filter, data populates - Any help would be greatly appreciated.