I'm using infopath 2007 i will outline my setup below (i must note that i use filters elsewhere on the form and they work)
So i have a temp field called Temp and i have a repeating table that has a field in it called assetId my xml looks like this:
so my filter says
assetId is equal to temp
I have a button in the repeating table and when i click on the button i put the assetId of the record i clicked into temp and then the view changes to the view that contains my repeating table that has the filter applied on it. Sometimes it works properly but most of the time it doesn't.. i have NO idea why!
<InspectedAssets>
<inspectedAsset>
<assetName>Name</assetName>
<assetId>1234</assetId>
<inspectedAsset>
<inspectedAsset>
<assetName>Name 2</assetName>
<assetId>2345</assetId>
<inspectedAsset>
<inspectedAsset>
<assetName>Name 3</assetName>
<assetId>3456</assetId>
<inspectedAsset>
</InspectedAssets>