Hi Severin,
>>Sure your data structure, ehm, does make sense? :)
> I should have known better that somebody _would_ ask :)
:)
> What I didn't mention, amongst other things, ...
I actually still do completely understand your scenario, but okay, I
believe you that it does make sense :)
Let's turn to the problem, instead of its prerequisites :)
> I then added a call to the reload() function of the tablecontrol after
> setting
> the new query string, but that is, of course, also wrong, because it then
> uses the same query string for each row as it loads, but these generally have
> different "function_type"s...
Which perhaps is an indication that the approach you chose to solve your
problem might not be correct. As a general idea, grid columns have some
invariants which do not depend on the current row, and the a list box
column's list entries fall into this category. Well, nevertheless you
approach *should* work.
> Here's some code:
> ...
looks good
note: oFF is your sub form, so you're doing the reload on the complete
sub form, not the grid table.
> So to me, it currently seems to boil down to two problems:
> 1. Listbox events not being triggered
> 2. Listbox contents not being updated after updating its query string,
> probably due to my yet deficient grasp of models and controls...
Both things problems do clearly sound like bugs to me. Would be
interesting to know whether things change if you do not use a grid
control, but instead two separate list box controls. I'd bet it both
problem would disappear then, if so, this might be a resort.
Unfortunately, I do not have other ideas :-\. Grid columns are somewhat
special in some respects, and I'm not too surprised that some
implementations are obviously missing/broken. But all your code looks
fine, so if it doesn't work, I'm pretty sure it's really a problem of
the grid columns.
Do you have a chance trying with the "pure" controls instead of columns
in a grid?
Hmm. *Perhaps* (but this also reaches into seldom-used API) it works if
you do a
oGridControl = thisComponent.CurrentController.getControl( oTC )
' gives you the *control* whose *model* is oTC
oColumnControl = oGridControl.getByIndex( <index_of_list_column> )
Try examining oColumnControl (with .dbg_Properties, .dbg_Methods) for
what useful things it has, it might be you find some working
fields/methods :).
Sorry that I can't be of more help. I suppose it's because with this,
you're going to were nobody has gone before, or so :)
Ciao
Frank
--
- Frank Sch�nheit, Software Engineer [EMAIL PROTECTED] -
- Sun Microsystems, Inc. http://www.sun.com/staroffice -
- OpenOffice.org Database Access http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]