I need to trim a part from the string in my report field.
This is my report I need to show ST2-MATERIAL HANDLING -GST valueas MATERIAL HANDLING
and ST2-AGRICULTURE PNEUMATI -GRN as AGRICULTURE PNEUMATI
How can i do from the report designer in acumatica
Best answer by hkabiri
@jeewanishalika20 Check if you can use Substring( str, start, length ) function to achieve this. Since the String can be different in different documents, then you have to find the first occurrence of dash (-) InStr( str, findStr ) and also last one InStrRev( str, findStr ) so get what in between the two using the substring.
@jeewanishalika20 Check if you can use Substring( str, start, length ) function to achieve this. Since the String can be different in different documents, then you have to find the first occurrence of dash (-) InStr( str, findStr ) and also last one InStrRev( str, findStr ) so get what in between the two using the substring.