Lines on table not displaying on custom screen.

SOLVED

Hi There

I have added a new table then added 10 x Dimensions to each of the columns I want to display on the table (Sage X3 V12)

On my screen have added the table block and parameter as NBLIG1

When adding new lines on the screen it works fine and it's saving to the Table correctly

But when I refresh or open up the screen again the values are gone and have to tab through each line to display them again

Have added the following code to SPE*.src file

#########################################################################
$LIENS
#########################################################################


    Local Integer I
nolign = 0

For [ZSR] Where ZSRN  = [M:ZSR0]ZSRN
nolign += 1
[M:ZSR1]ZAMT(nolign-1) = [ZSR]ZAMT
[M:ZSR1]ZCOMM(nolign-1)= [ZSR]ZCOMM
[M:ZSR1]ZDOC(nolign-1)= [ZSR]ZDOC
[M:ZSR1]ZFCY(nolign-1)= [ZSR]ZFCY

Next
[M:ZSR1]NBLIG1 = nolign
Affzo [M:ZSR1]
Return

But now when opening the screen it is displaying only the First line and not all?

Does anyone have any ideas?

Thanks for any assistance.