Hi, I need to pick someone's brain for ideas. I have 2 hide formatting rules that I need to work together, with the possibility of some thing else to get this to work (maybe a qRules thing?). (InfoPath 2010, qRules 8.1). Attaching screenshots with more info in zip file.
I have a form with a repeating section that has a table with a "fake group header". So, the "group" is Customer, then the table records are details about the record. So normally the customer group would appear on every record, but the Customer does not repeat (is hidden with format rule on
the customer field) to records that have the same customer (d:Customer =
preceding-sibling::d:SharePointListItem_RW/d:Customer). So for all the records that apply to that customer, you only see the customer name once. This works great.
Next, I have added a keyword search for one field (Problem
Statement). I hide the records that don’t match the keyword by a format rule on
the repeating section (not(contains(d:Problem_x0020_Statement_Upper,
xdXDocument:get-DOM()/my:myFields/my:Search/my:txt_ProblemStmnt))). This works
to hide the applicable records.
However, if the first record of a given customer is hidden
(does not match) then I loose my Customer “group header”. Because technically
that is the first instance of the customer field and the rest are hidden (because of preceding sibling).
So, somehow I need to work the keyword format rule into the
customer field to work in conjunction with the preceeding sibling hiding of
that field. I wasn’t able to get the right combination of rules on the Customer
field, but did make headway by adding a second Customer field with different
rules (the second Customer field is in Red). I have it almost all the way…
This all will make sense better with screenshots, so I'm going to attach those (with further explanation).
I need help getting that one last hurdle... I've tried stuff with row counts (but can't even get an accurate row count to work, I think something about it either being a repeating section (as opposed to a repeating table) or maybe because this is reading a secondary data source? Not sure.
Any other ideas? Maybe I need to scap this and do something totally different?
Thanks!