Form load problem

View: New views
2 Messages — Rating Filter:   Alert me  

Form load problem

by Sergio Corato :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all.
I'm doing an extension (OOoBasic - Python mixed) and using form of Base.
I do this process with a macro:
- create a db and register it;
- create table in db with sql command;
- open a form;
- translate field's labels.

All works well, but at the end in the form are not visible the data.
I tried to do:

oForm = ThisComponent.getDrawPage.getForms.getByIndex(0)
oForm.load

but without any change.

If I create a button with the very same command, and push it after the
process, it works.

If I open oForm with MRI at the end of the process, it works.

What can I do?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Form load problem

by Fernand Vanrie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sergio
I had the same behaviour with ThrobberControls in Dialogs. They only
comes visible after a click on a button or when opening a "print" or
"msgbox"
so also very interested in a explaination  :-)

> Hi all.
> I'm doing an extension (OOoBasic - Python mixed) and using form of Base.
> I do this process with a macro:
> - create a db and register it;
> - create table in db with sql command;
> - open a form;
> - translate field's labels.
>
> All works well, but at the end in the form are not visible the data.
> I tried to do:
>
> oForm = ThisComponent.getDrawPage.getForms.getByIndex(0)
> oForm.load
>
> but without any change.
>
> If I create a button with the very same command, and push it after the
> process, it works.
>
> If I open oForm with MRI at the end of the process, it works.
>
> What can I do?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...