Skip to main content
Question

GI (Generic Inquiry) output with line/row number

  • December 9, 2025
  • 3 replies
  • 26 views

Hi All,

Is it possible to add a line number as a field item and use it to format the output of the GI? For e.g., I have a GI that lists 10 rows but I had like to use the line number to change the background color of each alternate row, which is not based on any conditiion. Since, the Row Number is available only for display, how to get a row number for any GI (not a report)?

Manish

3 replies

nickcerri32
Jr Varsity III
Forum|alt.badge.img+1
  • Jr Varsity III
  • December 9, 2025

@ManishPatel132008 Hey there - depending on the GI, the “Line Nbr.” exists (as an autonumbered field).  When you say Row Number what are you referring to?  Are you trying to format based on, say, an odd or even row but the Line Nbr. doesn’t necessarily reflect the display order?


cramesh00
Freshman II
Forum|alt.badge.img
  • Freshman II
  • December 9, 2025

In order to reference the SO Line number, you need to reference the table SOLine and look for LineNbr

 

 


WillH
Varsity III
Forum|alt.badge.img+3
  • Varsity III
  • December 10, 2025

If you’re just trying to get a view of the raw ROW_NUMBER() of a result set, you might be able to make use of the ROW_NUMBER() SQL command, though I’m guessing that could get kind of temperamental.
Also be aware that resorting columns wouldn’t recalculate a ROW_NUMBER() function call.