Formula Field Not growing when in the same page footer as a sub-report -


basically, have formula runs while printing records, can print 0-3 rows using chr(13) , global stringvars form final string (tried chr(10) , chr(13)), in same page footer sub report can have anywhere 0 rows above 3. both set "can grow" formula field never grows past sub-report.

i'm using crystal reports 9.

i tried using box around formula leading previous page footer page footer.

here's formula

whileprintingrecords; global stringvar wd; global stringvar adv; global stringvar nasc; stringvar final :="";  if wd <> "" , adv <> "" , nasc <> "" final := wd  + chr(13) + chr(10) +  nasc + chr(13) + chr(10) + adv else if wd = "" , adv <> "" , nasc <> "" final := nasc + chr(13) + chr(10) + adv else if wd <> "" , adv = "" , nasc <> "" final := wd + chr(13) + chr(10) + nasc else if wd <> "" , adv <> "" , nasc = "" final := wd + chr(13) + chr(10) + adv else if wd = "" , adv = "" , nasc = "" final := ""; final 

and here's sample of 1 of 1 of formulas set stringvars, follow same method.

whileprintingrecords; global stringvar adv; global stringvar status;  if({column1}="ex"    or {column1}="adv"    or {column1}="cr"    or {column1} = "des" )  ( adv := "#     - exempt";  status := "status"; "#") else "" 

each subreport has it's own details section , if fields set there, shows results of rows, if put in footer. conversely, formula set in footer (page or report) works in aggregate form, because footer supposed used aggregate result (max,min,sum etc). if put formula in footer , edit return field value or has field's value, return result first row of select (like top 1 in sql), think.

of course not sure because have not displayed results or schema, case seems it


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -