doornbos
3rd December 2010, 15:12
My goal is a multi occurende form to maintain a table (f.e. tcxxx000) with two project fields (cpra, cprb). I'm having troubles to display the project description (non-table fields) next to each project code. The descritions I read from tcmcs052.
The fields are:
tcxxx000.cpra
cpra.dsca
tcxxx000.cprb
cprb.desc
Program script (which doesn't work):
declaration:
table ttcxxx000
extern domain tcdsca cpra.dsca
extern domain tcdsca cprb.dsca
field.tcxxx000.cpra:
before.display:
read.cpra.dsca()
check.input:
read.cpra.dsca()
field.ttxxx000.cprb:
before.display:
read.cprb.dsca()
check.input:
read.cprb.dsca()
functions:
...
The before.display section is executed at session start/refresh. So initially the descriptions for both cpra en cprb are displayed correctly in all rows. But when I change the focus from one row to another the description is not re-read but the row gaining the focus gets refereshed with the old (last read) descriptions. I tried the check.input section, but than only the description on the current row refreshes and the row gaining the focus gets the same (last read) description.
What is the way to get this done correctly?
Thanks in advance,
Douwe.
The fields are:
tcxxx000.cpra
cpra.dsca
tcxxx000.cprb
cprb.desc
Program script (which doesn't work):
declaration:
table ttcxxx000
extern domain tcdsca cpra.dsca
extern domain tcdsca cprb.dsca
field.tcxxx000.cpra:
before.display:
read.cpra.dsca()
check.input:
read.cpra.dsca()
field.ttxxx000.cprb:
before.display:
read.cprb.dsca()
check.input:
read.cprb.dsca()
functions:
...
The before.display section is executed at session start/refresh. So initially the descriptions for both cpra en cprb are displayed correctly in all rows. But when I change the focus from one row to another the description is not re-read but the row gaining the focus gets refereshed with the old (last read) descriptions. I tried the check.input section, but than only the description on the current row refreshes and the row gaining the focus gets the same (last read) description.
What is the way to get this done correctly?
Thanks in advance,
Douwe.