Skip to main content
Solved

Description under AP641000 will show a zero if there is nothing on the record

  • March 30, 2023
  • 1 reply
  • 127 views

martingaxiola
Varsity I
Forum|alt.badge.img

Good day Team,

 

I have a customatization that allows me to set the Bill Description from the new APPrintCheckDetailWithAdjdDoc.DocDesc, and is working as expetec, the issue, is that when there is no data the results is a zero, i have tried to use the iif statment when the Variable $DocDesc00 with valueExpr =IIF($LineNbr = 0, [APPrintCheckDetailWithAdjdDoc.DocDesc], $DocDesc00), will provide the correct value, but when the line is empty, the value is 0, if I do a IIF statement the report errors out, i have use this statement on the VisibleExpr field, but not working.

 

Any ideas how to solved this?

Best answer by mbridges00

You will need to add the corresponding $DocDesc## variables in the collection to the top-level GroupStub as well. The “ValueExpr” in that group should be =’’.

 

You can view the current variables in that top-level group to see how it’s handled for the current variables on the report. Basically you need to set them in both the GroupStub and GroupAdjustment groups on the report, setting the actual value of the variable in the GroupAdjustment section.

 

There is likely other ways to handle this, but I’ve found it’s best to use the same structure as the existing variables on the report.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+1
  • Jr Varsity II
  • 37 replies
  • Answer
  • March 30, 2023

You will need to add the corresponding $DocDesc## variables in the collection to the top-level GroupStub as well. The “ValueExpr” in that group should be =’’.

 

You can view the current variables in that top-level group to see how it’s handled for the current variables on the report. Basically you need to set them in both the GroupStub and GroupAdjustment groups on the report, setting the actual value of the variable in the GroupAdjustment section.

 

There is likely other ways to handle this, but I’ve found it’s best to use the same structure as the existing variables on the report.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings