XForms: fdesign: bug or feature

Markus von der Heyde (mvonderh@cs.rochester.edu)
Tue, 3 Feb 1998 13:49:01 -0500

# To subscribers of the xforms list from Markus von der Heyde <mvonderh@cs.rochester.edu> :

I found a surprising behaviour of the choice and browser objects in fdesign:

start fdesign
create new form foo
create browser 1
change attributes (spec) of browser 1:
add line 1
add line 2
accept changes in browser 1
copy browser 1 and paste it as browser 2
change attributes (spec) of browser 2:
add line 3
add line 4
del line 1
del line 2
accept changes in browser 2
save foo.fd
note browser 1 stays with line 1 and 2
see attributes (spec) of browser 1:
result: current items are line 3 and 4 ???
cancel attribute changes
browser 1 in form foo changed to !!!
exit fdesign without saving foo.fd again

start fdesign again
open foo.fd
both browsers showing line 3 and 4 (compare it to the save situation)
see attributes (spec) of browser 1:
result: current items are still line 3 and 4
change attributes (spec) of browser 2:
add line 5
add line 6
del line 3
del line 4
accept changes in browser 2
see attributes (spec) of browser 1:
result: current items are still line 3 and 4

Why does the behavior of fdesign is different between the first and
second change of the browser 2 ? You can do the exactly the same with
the choice object. To me it seems like the copied object shares some
internal variables with the original, but after the save and load
these shared things are gone.

MvdH
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/