Hi Mathias,
>>However, note that what you modify here is the
control content, not the
>>content of the form field which the control is bound
to. (AFAIK, the dev
>>guide should explain the difference).
>
> Yes i know.
(noticed that when I saw you explained the usage of
BoundField to
somebody else in another list - too late for my previous
post
> The problem is that
>
> oForm.moveToInsertRow()
> oControl = oForm.getByName( "mySubform"
).getByName( "myControl" )
> Wait( 3000 )
> oControl.setString( "myString" )
>
> works. Yes, i design the forms with a slow database
connection over the
> internet ... So it can be, that there is no problem if
you use a quick
> (local) database connection.
>
> I tried also
> oForm.getByName( "mySubform" ).reload()
> Do Until oForm.getByName( "mySubform"
).isLoaded()
> Wait( 100 )
> Loop
> but the subform is loaded ... with the same effect.
>
> Without the waiting time, the string is set and then
deleted by the
> fulfillment of the row moving.
That's surprising. It sounds as if there is some
asynchronous
notification involved (e.g. the controls would be notified
asynchronous
that the loaded is complete, then fill themselves with the
new content,
while you Basic macro continues running), but to my best
knowledge, this
shouldn't be the case at all.
If you have a small self-contained sample document which
shows this
behaviour, I'd be interested in having a look at it.
> I dont't know if there is a event like
"moveOfRowIsComplete" that the
> macro can waiting for.
asking for the IsLoaded property is nearly the best you can
do - setting
this property to TRUE is the last thing, done immediately
before
notifying the load listeners, but after everything else.
Ciao
Frank
--
- Frank Schönheit, Software Engineer
frank.schoenheit sun.com -
- Sun Microsystems http://www.sun.com/star
office -
- OpenOffice.org Base http://dba.openoffice.org
a> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|