Import: ODBC page design

Поиск
Список
Период
Сортировка
Искать

Import: ODBC page design

От:
Quan Zongliang <quanzongliang@gmail.com>
Дата:
Вложения:
hi, all

The attachment is a preview of import from ODBC.

I think some ODBC source is slow. So in this page the preview
will generated manually.

First, the user select a DSN and input username and password (both is optional).
Then click the  button to retrive all table names.
If successful, the DSN, username and password control will be disabled.

And then, the user can select a table and click  to preview data.
Or click  to select other DSN.

The user can check "Auto preview" to preview automatically and set how many
rows to be previewed.

It's OK?

Question:
How to get the previous value in wxCombobox?
Even if someone click the same choice, the EVT_COMBOBOX event will be fired.
But the wxCommandEvent has no method to get previous value.

-----------------------------------------------
Quan Zongliang
quanzongliang@gmail.com
CIT Japan:  http://www.cit.co.jp
CIT China:  http://www.citbj.com.cn

Re: Import: ODBC page design

От:
Guillaume Lelarge <guillaume@lelarge.info>
Дата:
Hi,

Quan Zongliang a écrit :
> [...]
> The attachment is a preview of import from ODBC.
> 
> I think some ODBC source is slow. So in this page the preview
> will generated manually.
> 
> First, the user select a DSN and input username and password (both is optional).
> Then click the  button to retrive all table names.
> If successful, the DSN, username and password control will be disabled.
> 
> And then, the user can select a table and click  to preview data.
> Or click  to select other DSN.
> 
> The user can check "Auto preview" to preview automatically and set how many
> rows to be previewed.
> 
> It's OK?
> 

It seems good so far.

> Question:
> How to get the previous value in wxCombobox?
> Even if someone click the same choice, the EVT_COMBOBOX event will be fired.
> But the wxCommandEvent has no method to get previous value.
> 

You may need to save the previous value in a variable.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

Re: Import: ODBC page design

От:
Quan Zongliang <quanzongliang@gmail.com>
Дата:
> It seems good so far.
Add a text area allow user write where clause.

> You may need to save the previous value in a variable.
When click same choice, it fire a useless event.
I have to add some variables to deal this.

-----------------------------------------------
Quan Zongliang
quanzongliang@gmail.com
CIT Japan:  http://www.cit.co.jp
CIT China:  http://www.citbj.com.cn

FAQ