To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=64898





------- Additional comments from [EMAIL PROTECTED] Wed Jul 26 05:35:32 -0700 
2006 -------
after looking deeper into this, I tend to disagree partly.

First, it's not really about displaying "the" referenced sub record, but about
re-loading the complete sub form. However, reloading the sub form every time the
master form's control value changes might be too expensive - do we really want
all this database traffic every time I select a new entry in the master form?

On the other hand, currently the content of the list box is committed to the
record (but not yet to the database) as soon as it loses the focus. That's
currently the only event we can monitor: a change in the value of the record
field, *not* a change in the control which is bound to this field.
Effectively, this means that you could change the entry in the list box, but the
sub form would not yet reload. Only when you leave the list box, the sub form is
reloaded. That might be surprising to the user ... but unfortunately,
implementing a reload on a change in the control is pretty difficult with the
current infrastructure. Not to mention that it would need to be defined what
happens if the master form had two controls both bound to the same record field 
...

So, this leaves us with: We could implement a behavior where the sub form is
refreshed as soon as you leave the control in the master form. Not sure if this
is expectation-conformant for the user, and thus desirable.

Alternatively (or additionally?), the following seems to be missing: When I
update an existing master record to the database, then the sub form is not
refreshed, too. That is, if I change the master field which defines the sub form
content (say, I select a different "wer" in the master form), then the
respective sub form still displays the old content - which is somewhat
inconsistent. At the latest when the master form is really committed to the
database, the sub form should respect the new master record content.


So, the options are
- implement "on-master-control-change" (any content change in the master
  form's control) update of the sub form (pretty difficult, and currently
  underspecified)
- implement "on-master-control-commit" (focus lost) update of the sub form
- implement "on-master-record-commit" (focus the sub form, or press
  "Save Record" in the toolbar) update of the sub form
- none of those :)
Not sure at the moment how to best procede here ...

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to