So, I have a repeating table in a repeating section. The repeating section has some stuff from the main data source in it. The repeating table receives data from a SQL database.
I'm trying to use conditional formatting on the table to hide rows based on a value in the main data source. Every instance of the repeating section should have a unique repeating table in it (unless, of course, the same reference value is entered in more than one instance of the section).
Right now, I've tried "if valueB does not equal valueA, hide this control." The problem is if I insert an item to the repeating section, both versions of the reference value have to be the same for it to count it as equal, AND it copies the same repeating table into the other instance of the section.
However, every attempt I've made so far at using "current()" has only made it so that ALL results from the SQL database show up in the table in all instances of the repeating section, no matter what. I think I've tried all the usual stuff, but I could be totally off. I tried using "parent::" once or twice, but I just confused myself further.
The main data source looks like this:
myFields
-group1
--group2 (repeating section)
---valueA (reference value)
---valueX
---valueY
---valueZ
The secondary (SQL) source looks like this:
myFields
-dataFields
--d:testMatrix (repeating table)
---valueB (value being compared to ref value)
---valueQ
---valueR
---valueS
Let me know if I need to provide any additional information.
Thanks!
P.S. This is IP 2003.