\setupinteraction[state=start]
\usemodule[database]%
\mainlanguage[de] % for hyphenation
\setupbodyfont[sans,10pt]
\setuppagenumbering[alternative=doublesided] %sets doublesided print
\setuplayout[topspace=14.5mm,header=12mm,backspace=22.5mm,footer=12.6mm,height=258.2mm, footerdistance=4.3mm, rightmargin=41.05mm,headerdistance=0mm,leftmargin=6.3mm,width=131.7mm,location=doublesided,grid=yes,doublesided=yes]
% colors
\setupcolors[state=start,rgb=yes]

\startsetups[MyTable]
    \switchtobodyfont[8pt]
    \setupTABLE[frame=off,background=color,backgroundcolor=red]
    \setupTABLE[column][1][width=44.25mm,align=right]%,style=bf
    \setupTABLE[column][2][width=broad,align=right]
\stopsetups

\defineseparatedlist
  [MyTable]
  [separator=tab,
   left=\bTD,right=\eTD,
   first=\bTR,last=\eTR,
   before=\bTABLE,after=\eTABLE,
   setups=MyTable]
   
\startsetups[MyTableWrong]
    \switchtobodyfont[8pt]
    \setupTABLE[frame=off,background=color,backgroundcolor=green]
    \setupTABLE[column][1][width=15.0mm,align=right]%,style=bf
    \setupTABLE[column][2][width=broad,align=right]
    \setupTABLE[column][3][width=17.0mm,align=right]
    \setupTABLE[column][4][width=17.0mm,align=right]
    \setupTABLE[column][5][width=25.0mm,align=right]
\stopsetups

\defineseparatedlist
  [MyTableWrong]
  [separator=tab,
   left=\bTD,right=\eTD,
   first=\bTR,last=\eTR,
   before=\bTABLE,after=\eTABLE,
   setups=MyTableWrong]

\defineregister[Correctliste][style=slanted,pagestyle=bold,indicator=no]
\setupregister[Correctliste][coupling=yes]
 \def\Listright#1{\Correctliste{#1}{#1}}

\defineregister[Wrongliste][style=slanted,pagestyle=bold,indicator=no]
\setupregister[Wrongliste][coupling=yes]
 \def\Listwrong#1{\Wrongliste{#1}{#1}}

 
 
\chapter{F30000\\ asdf asdf asdf asdf}

\section{Section}
\language[DE]
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf

asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf
\section{Liste Right}
\Listright{Fux}; \Listright{Zha} 
These entries get correct page references.

\section{Liste Wrong}
\startMyTableWrong
V001	\Listwrong{ListEntry1}	09.12.2005	01.01.3000	text
V002	\Listwrong{Listentry2}	01.01.2004	01.01.3000	text
\stopMyTableWrong

% These entries are wrong, only in case that there is no further text line below. For testing, uncomment this line. 

\section{Details}
 
\startMyTable
Anm:	ABC
Andatum:	5/10/1994
Anummer:	08/545,845
Pub:	
Pubnummer:	
Ert:	12/23/1997
Ertnummer:	5,700,527
\stopMyTable

\startMyTable
Anm:	LL
Andatum:	5/10/1994
Annummer:	2303
Pub:	3/6/1996
Pubnummer:	0699257
Ert:	1/8/1997
Ertnummer:	257B1
\stopMyTable


\chapter{Index: Correct}
\placeregister[Correctliste]
  
\chapter{Index: Wrong}
\placeregister[Wrongliste]
