MrMarco
9th November 2001, 13:35
I have a problem with my synchronised dialog sessions. I have created two sessions, both of which use the same table. I have set up the sessions as recommended by Baan i.e.
Session 1: (Main Session, Multi Occurance)
Start Command: 44 (Get Saved Settings)
Session Type : Display
Window Type : List Window
Session 2: (Not Main Session, Not Multi Occurance)
Start Command: 0 (None)
Session Type : Maintain
Window Type : Synchronized Dialog
In addition, I have put the folowing code in session 1:
long field.proc,
result
before.program:
field.proc = 0
set.synchronized.dialog("tczzzc110s000")
functions:
function extern field.process()
{
if field.proc
then
result = synchronize.with.child(field.proc)
endif
if not field.proc
then
field.proc = start.synchronized.child(
"tczzzc110s000",
"tczzz010.attr","tczzz010.attr")
endif
}
When I click NEW RECORD on the main session, it brings up the second session and I can happily add a new record.
If I then double click the entry on the main session, the second session is brought up, the correct record is located, but I am unable to change ANY information on the record; all fields are disabled! I would expect this to be true of the key field, but not of the other fields on the record that are not keys.
What am I doing wrong, anyone?
Session 1: (Main Session, Multi Occurance)
Start Command: 44 (Get Saved Settings)
Session Type : Display
Window Type : List Window
Session 2: (Not Main Session, Not Multi Occurance)
Start Command: 0 (None)
Session Type : Maintain
Window Type : Synchronized Dialog
In addition, I have put the folowing code in session 1:
long field.proc,
result
before.program:
field.proc = 0
set.synchronized.dialog("tczzzc110s000")
functions:
function extern field.process()
{
if field.proc
then
result = synchronize.with.child(field.proc)
endif
if not field.proc
then
field.proc = start.synchronized.child(
"tczzzc110s000",
"tczzz010.attr","tczzz010.attr")
endif
}
When I click NEW RECORD on the main session, it brings up the second session and I can happily add a new record.
If I then double click the entry on the main session, the second session is brought up, the correct record is located, but I am unable to change ANY information on the record; all fields are disabled! I would expect this to be true of the key field, but not of the other fields on the record that are not keys.
What am I doing wrong, anyone?