bartman
10th March 2008, 10:22
Hello Board-Users!

I have a "main" session with serveral display fields on it.
Now i want our Users to modify a few kind of data. Cause of several reasons i don't want to change those regarding fields to input fields. Rather i will do this by inserting a button that zooms to a small "subsession" on that users will be able to modify the data.

Here's my question: How do i realize that when data on the subsession is modified and subsession is closed, the data on the regarding display fields on the main session is updated with the new values.

regards

zardoz
10th March 2008, 10:26
just put an

execute(find.data)

in after.zoom section

bartman
10th March 2008, 10:30
That was my thougt too.
But where to put this in the program-script?

zardoz
10th March 2008, 12:02
After the calling of the zoom session...

zoom.to$(.....)
execute(find.data)

or, if the zoom is done thru the choice zoom of the session:

choice.zoom:
....
....
after.choice:
execute(find.data)

bartman
10th March 2008, 12:20
There's no zoom.to$(...) in my script, cause the zoom is done by a form-command.

I solved the problem by doing a "refresh.parent" in the subsession:

*****************
zoom.from.all:
on.exit:

refresh.parent(-1)
*****************

thx and regards

NPRao
10th March 2008, 19:29
Alternatively,

You can use the 'Refresh Parent' option from the form commands in the 'After Execution'.

Then you would not need any code changes.