Hi All.
I am fairly new to using infopath. Basically I have a form is to be opened using web form sevices by users. My challenge is that in one of the fields I want users to select the date using a date picker on the infopath form which is the submitted to a Sharepoint 2007 list. When a User enters a date in datePickerField, a separate Week No field on the form should be updated with with a week value that corresponds to the date that has been entered. This date is compared to date values in a Share Point 2007 list which has corresponding week number values relevant to each date in order to retrieve the correct Week No from the Share Point list. In total there is 365 rows in the list made up of Date Form Is Completed column and Year_Week_Day column- (which is the value is used to update Week No field in InfoPath form)
My challenge is that when datePickerField sets the Week No, it picks up the first Week Number value from Share Point list always, ignoring fact that should be value corresponding to date that has been selected. Ideally, a different Week No value should come up depending on the date that has been selected as shown in attachment
I have set a rule on the datePickerField give me a week number value whose date form completed on the sharepoint list is equal to the date picker field - this does not update the week number.
When I set the week number field with a rule which says get me the a week number value without a filter - the first week numnber value on the SharePoint list updates the Week No field on the InfoPath form
I am sure this has to do with the way the way my rules for comparing the DateEnteredOnForm and the DateInSharePointList.
I am using version 2007 of both SharePoint and InfoPath