Skip to main content
Solved

Label report prints correctly in UI but prints zero labels via scan gun / Device Hub – relation operator question

  • January 7, 2026
  • 1 reply
  • 19 views

Hi everyone,

I’m working on an Acumatica label report that uses a custom Numbers table (UsrNumbers) and a parameter (QtyOfLabels) to control how many labels print.

I’m seeing very different behavior depending on where the report is executed, and I’m trying to understand what the correct pattern should be.

 

Setup

  • Parameter: QtyOfLabels (Integer)

  • Custom Numbers table: UsrNumbers

  • Relation (simplified):

  • <RelationRow>
      <ChildField>Number</ChildField>
      <Condition>GreaterOrEqual</Condition>
      <ParentField>=CInt([@QtyOfLabels])</ParentField>
    </RelationRow>
     

Behavior I’m seeing

1. Acumatica UI (Report Preview / Print)

  • If QtyOfLabels = 5

  • Using GreaterOrEqual

  • The UI prints exactly 5 labels, which looks correct

If I switch the condition to LessOrEqual, the UI prints:

 

5, 6, 7, 8, 9, 10, … (all remaining rows in UsrNumbers)

So the behavior appears to be tied to how UsrNumbers.Number is seeded (it does not start at 1).

 

2. Scan gun / Device Hub / automated printing

  • The same report prints zero labels

  • No errors are thrown

  • The report works in UI preview but does not print at all when triggered via the scan gun

This makes it look like the relation + parameter combination is being evaluated differently outside the UI.

 

Questions

  1. Is it expected that parameter-based relations behave differently in UI preview vs Device Hub / automated execution?

  2. Is relying on GreaterOrEqual in this scenario unsafe for non-UI printing?

  3. What is the recommended pattern for label repetition that works consistently for:

    • UI preview

    • Scan gun

    • Device Hub / automation

At the moment, the report looks correct in the UI but is unusable in production because no labels print when triggered from the scanner.

Any guidance or best practices would be really helpful.

Thanks!

Best answer by lauraj46

Hi ​@rmore49 ,

I think that GreaterOrEqual is the correct condition.  I'm guessing that your issue with the device hub print may relate to passing the parameter.  Are you sure that this parameter is being populated in the call to Device Hub?  You may want to see if you can set the quantity condition based on the quantity on the receipt or whatever Acumatica document is being selected in the label report.

As a side note, there is a useful standard table named DateInfo that can be used for the list of numbers if you prefer not to deal with a customization.  You can read about this method here:

https://www.linkedin.com/pulse/acumatica-tips-tricks-how-print-multiple-product-labels-laura-jaffe?utm_source=share&utm_medium=member_android&utm_campaign=share_via

Hope this helps!

Laura 

1 reply

lauraj46
Captain II
Forum|alt.badge.img+9
  • Captain II
  • Answer
  • January 7, 2026

Hi ​@rmore49 ,

I think that GreaterOrEqual is the correct condition.  I'm guessing that your issue with the device hub print may relate to passing the parameter.  Are you sure that this parameter is being populated in the call to Device Hub?  You may want to see if you can set the quantity condition based on the quantity on the receipt or whatever Acumatica document is being selected in the label report.

As a side note, there is a useful standard table named DateInfo that can be used for the list of numbers if you prefer not to deal with a customization.  You can read about this method here:

https://www.linkedin.com/pulse/acumatica-tips-tricks-how-print-multiple-product-labels-laura-jaffe?utm_source=share&utm_medium=member_android&utm_campaign=share_via

Hope this helps!

Laura