Solved

Report Designer visible expression help

  • 16 February 2023
  • 2 replies
  • 329 views

Userlevel 5
Badge

Hi all,

 

I’ve got this line which mostly works:

 

=IIf( InStr( [AMProdStep.Descr], 'MESH' )<0, IIf( InStr( [AMProdStep.Descr], 'ADHESIVE' )<0, True, False ), False)

 

We don’t want anything with ‘ADHESIVE’ in the product description to print and it works fine. But now we have one adhesive type we do want to print, let’s say ‘BLUE ADHESIVE’… how do I restrict all adhesives from printing but allow BLUE ADHESIVE to make it through the expression?

icon

Best answer by lauraj46 16 February 2023, 16:01

View original

2 replies

Userlevel 7
Badge +7

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)

Userlevel 5
Badge

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)

Laura you’re a peach, that worked perfectly… this will help me begin parsing how I can write my own expressions… thank you!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved