I had a formula working well… (It creates a header at the top my roster. It generally reads…
**Seating List 26-27
Tuesday – K
Lead: Smith
"Music Seating List 26-27" + cr() + <size:5>"+cr()+"" +
lookup("Class Heading Information", "Teacher", gClHdgInfoDB_Teacher, "LongDay", "") + " — " +
lookup("Class Heading Information", "Teacher", gClHdgInfoDB_Teacher, "Grade", "") + cr() + "<size:5>"+cr()+"" +
"Music Lead: " + fieldvalue("Class Heading Information",MusicLeadLast)+""
but this formula, below, upon adding it to a different Text Display Object, makes the first formula fail (in that all the variables/fields don’t display, except MusicLeadLast, which I believe is from the “second teacher’s” record…but I need to be from the primary teacher’s record. Only the text strings display.). And it only happens when there is no “second teacher” in the formula below. It generally reads…
Jones
(Allen)
but it fails when it reads…
Jones
() ← notice the “second teacher” is blank; that’s intentional; I’ll eventually hid the parentheses as well. It’s when this “second teacher” is blank, that the formula above fails.
""+gClHdgInfoDB_Teacher+""
+cr()+"("+""+
superlookup("Class Heading Information",
{PeriodDayCombo=lookup("Class Heading Information", "Teacher", gClHdgInfoDB_Teacher, "PeriodDayCombo", "") and Teacher<>gClHdgInfoDB_Teacher},
{Teacher},
"default","")+""+")"
I previously wrote that I fixed it. I haven’t. In the formula at the top, MusicLeadLast field is displaying but I think it’s reading from the second teacher’s record. LongDay and Grade are still not displaying.
Note: I think a few bold tags got pulled off when I pasted the code here.
I feel like I’m not making myself very clear here. I will try to come back and make this clearer.