Hi John,
thanks for your answer, but my problem isn’t solved yet…
You wrote:
You don’t specify how you are displaying your data, but I would guess
from your other question that you are using etemplates.
Indeed I do.
If so, you would refresh the display by submitting the form (either by
a submit-button or an onchange event) and then testing the returned
$content array for the button (eg if (isset $content[‘new_data_entered_btn’])
… or something similar).
You can resubmit the form repeatedly, each time exec calls your function
with an updated $content array you can make the needed changes and call
the template to redisplay.
There’s the rub:
some button in the “original class” form start an etemplate form
from an “other class”, to let the user choose a value from a list.
That list is stored as a variable number of records in an other
database file, hence the use of the “other class”.
Now, two things go wrong for me there:
(1) when that “other class” form closes, I must refresh the display
of my original form… I thought something like this might work,
if executed by a “select” button of the “other class” form:
$js = “opener.egw_refresh($title,
$database_file_name,
$this->data[‘id’],
‘save’);
window.close();”;
echo “";
but I only have access to the $this->data array of the “other
class”, not that of the “original class” hence this doesn’t work.
So, how do I go about forcing a refresh of the "original class"
form when the "other class" form closes ?
(2) furthermore (and that was indeed my question in the other mail),
while the user has indeed chosen an object of the "other class"
containing the appropriate datum, I still have to place that
datum in the corresponding field of the “original class” object
and I don’t see how to do that with my current knowledge of the
etemplates (i.e.: after reading everything I found on that
subject both on the egroupware & stylite web sites and in the
next-to-latest egroupware EPL 14.2 tar file).
So, how do I copy a datum from the "other class" form into the
"original class" form ?
I know how to do that using some $GLOBALS[...] variable, but it
would only work if the either closing of the "other class" form
or the clicking of a button in the "other class" form could be
used to cause an interceptable event in the "original class" form,
but I don't know how to do that...
Hence, I’m down to exploring plausible solutions by trial and error,
a process I haven’t had to use since the early seventies when I worked
in GOTRAN with an IBM 1620 (using perforated paper strips as input and
output medium) without any manual… 
My opinion about the level and quality of documentation for egroupware
isn’t printable, so I’ll abstain from mentionning it here.
Thanks for your help!
Norman Molhant nwm@csur.ca
eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users