In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

NewBie : TDbComboBox Usage

Xailer professional forum in English
Responder
Milan Mehta
Mensajes: 134
Registrado: Dom Dic 27, 2009 9:54 am

NewBie : TDbComboBox Usage

Mensaje por Milan Mehta »

I am new to Xailer and trying to use TDbComboBox. I could see that it use
aItems and aItemsBound arrays to store the ComboBox option. But I want to
directly refer to a Database field instead. How can I do that ?
Typically, my tables are as follow :
Machine Master
MachineCode
MachineName
MachineTypeCode
Machine Type Master
MachineTypeCode
MachineTypeName
Now when preparing the Form of Machine Master, I want to show
MachineTypeName from Machine Type Master Tabel. How can I do it ?
Let me say that I amazed by the environment called Xailer. I have started
loving the same in a very short period !
TIA
Milan.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9259
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

NewBie : TDbComboBox Usage

Mensaje por ignacio »

Milan,
The aItems property is not linked to any dataset, it must be populated
manually. BTW, with SQL datasources is easy with the method QueryArray. For
DBF datasources consult the method SaveToArray().
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info
"Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> I am new to Xailer and trying to use TDbComboBox. I could see that it use
> aItems and aItemsBound arrays to store the ComboBox option. But I want to
> directly refer to a Database field instead. How can I do that ?
>
> Typically, my tables are as follow :
>
> Machine Master
> MachineCode
> MachineName
> MachineTypeCode
>
> Machine Type Master
> MachineTypeCode
> MachineTypeName
>
> Now when preparing the Form of Machine Master, I want to show
> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>
> Let me say that I amazed by the environment called Xailer. I have started
> loving the same in a very short period !
>
> TIA
> Milan.
>
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9259
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

NewBie : TDbComboBox Usage

Mensaje por ignacio »

Milan,
The aItems property is not linked to any dataset, it must be populated
manually. BTW, with SQL datasources is easy with the method QueryArray. For
DBF datasources consult the method SaveToArray().
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info
"Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> I am new to Xailer and trying to use TDbComboBox. I could see that it use
> aItems and aItemsBound arrays to store the ComboBox option. But I want to
> directly refer to a Database field instead. How can I do that ?
>
> Typically, my tables are as follow :
>
> Machine Master
> MachineCode
> MachineName
> MachineTypeCode
>
> Machine Type Master
> MachineTypeCode
> MachineTypeName
>
> Now when preparing the Form of Machine Master, I want to show
> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>
> Let me say that I amazed by the environment called Xailer. I have started
> loving the same in a very short period !
>
> TIA
> Milan.
>
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Milan Mehta
Mensajes: 134
Registrado: Dom Dic 27, 2009 9:54 am

NewBie : TDbComboBox Usage

Mensaje por Milan Mehta »

Thanks Ignacio, problem solved.
Another related problem is, the search is only on the first character.
How can I have incremental search ? like if I type ABC, it should point to
record starting with ABC. I want to achieve the same with TDbComboBox as my
selection is from a Dbf file.
Kindly guide.
With best regards,
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:4b7517fa$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Milan,
>
> The aItems property is not linked to any dataset, it must be populated
> manually. BTW, with SQL datasources is easy with the method QueryArray.
> For DBF datasources consult the method SaveToArray().
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
> http://www.xailer.com
> http://www.xailer.info
>
> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
> noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> I am new to Xailer and trying to use TDbComboBox. I could see that it use
>> aItems and aItemsBound arrays to store the ComboBox option. But I want to
>> directly refer to a Database field instead. How can I do that ?
>>
>> Typically, my tables are as follow :
>>
>> Machine Master
>> MachineCode
>> MachineName
>> MachineTypeCode
>>
>> Machine Type Master
>> MachineTypeCode
>> MachineTypeName
>>
>> Now when preparing the Form of Machine Master, I want to show
>> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>>
>> Let me say that I amazed by the environment called Xailer. I have started
>> loving the same in a very short period !
>>
>> TIA
>> Milan.
>>
Milan Mehta
Mensajes: 134
Registrado: Dom Dic 27, 2009 9:54 am

NewBie : TDbComboBox Usage

Mensaje por Milan Mehta »

Thanks Ignacio, problem solved.
Another related problem is, the search is only on the first character.
How can I have incremental search ? like if I type ABC, it should point to
record starting with ABC. I want to achieve the same with TDbComboBox as my
selection is from a Dbf file.
Kindly guide.
With best regards,
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:4b7517fa$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Milan,
>
> The aItems property is not linked to any dataset, it must be populated
> manually. BTW, with SQL datasources is easy with the method QueryArray.
> For DBF datasources consult the method SaveToArray().
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
> http://www.xailer.com
> http://www.xailer.info
>
> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
> noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> I am new to Xailer and trying to use TDbComboBox. I could see that it use
>> aItems and aItemsBound arrays to store the ComboBox option. But I want to
>> directly refer to a Database field instead. How can I do that ?
>>
>> Typically, my tables are as follow :
>>
>> Machine Master
>> MachineCode
>> MachineName
>> MachineTypeCode
>>
>> Machine Type Master
>> MachineTypeCode
>> MachineTypeName
>>
>> Now when preparing the Form of Machine Master, I want to show
>> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>>
>> Let me say that I amazed by the environment called Xailer. I have started
>> loving the same in a very short period !
>>
>> TIA
>> Milan.
>>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9259
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

NewBie : TDbComboBox Usage

Mensaje por ignacio »

Milan,
Please explain which kind of 'search': DBF, SQL, from the DbBrowse filter
fields, from DBFBrowse OnSeek event, ....
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info
"Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
noticias:[email=4b752c3f@svctag-j7w3v3j....]4b752c3f@svctag-j7w3v3j....[/email]
> Thanks Ignacio, problem solved.
>
> Another related problem is, the search is only on the first character.
> How can I have incremental search ? like if I type ABC, it should point to
> record starting with ABC. I want to achieve the same with TDbComboBox as
> my selection is from a Dbf file.
>
> Kindly guide.
>
> With best regards,
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
> news:4b7517fa$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Milan,
>>
>> The aItems property is not linked to any dataset, it must be populated
>> manually. BTW, with SQL datasources is easy with the method QueryArray.
>> For DBF datasources consult the method SaveToArray().
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Equipo de Xailer/Xailer team]
>> http://www.xailer.com
>> http://www.xailer.info
>>
>> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
>> noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> I am new to Xailer and trying to use TDbComboBox. I could see that it
>>> use aItems and aItemsBound arrays to store the ComboBox option. But I
>>> want to directly refer to a Database field instead. How can I do that ?
>>>
>>> Typically, my tables are as follow :
>>>
>>> Machine Master
>>> MachineCode
>>> MachineName
>>> MachineTypeCode
>>>
>>> Machine Type Master
>>> MachineTypeCode
>>> MachineTypeName
>>>
>>> Now when preparing the Form of Machine Master, I want to show
>>> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>>>
>>> Let me say that I amazed by the environment called Xailer. I have
>>> started loving the same in a very short period !
>>>
>>> TIA
>>> Milan.
>>>
>
>
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9259
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

NewBie : TDbComboBox Usage

Mensaje por ignacio »

Milan,
Please explain which kind of 'search': DBF, SQL, from the DbBrowse filter
fields, from DBFBrowse OnSeek event, ....
Regards,
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer/Xailer team]
http://www.xailer.com
http://www.xailer.info
"Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
noticias:[email=4b752c3f@svctag-j7w3v3j....]4b752c3f@svctag-j7w3v3j....[/email]
> Thanks Ignacio, problem solved.
>
> Another related problem is, the search is only on the first character.
> How can I have incremental search ? like if I type ABC, it should point to
> record starting with ABC. I want to achieve the same with TDbComboBox as
> my selection is from a Dbf file.
>
> Kindly guide.
>
> With best regards,
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
> news:4b7517fa$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Milan,
>>
>> The aItems property is not linked to any dataset, it must be populated
>> manually. BTW, with SQL datasources is easy with the method QueryArray.
>> For DBF datasources consult the method SaveToArray().
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Equipo de Xailer/Xailer team]
>> http://www.xailer.com
>> http://www.xailer.info
>>
>> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
>> noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> I am new to Xailer and trying to use TDbComboBox. I could see that it
>>> use aItems and aItemsBound arrays to store the ComboBox option. But I
>>> want to directly refer to a Database field instead. How can I do that ?
>>>
>>> Typically, my tables are as follow :
>>>
>>> Machine Master
>>> MachineCode
>>> MachineName
>>> MachineTypeCode
>>>
>>> Machine Type Master
>>> MachineTypeCode
>>> MachineTypeName
>>>
>>> Now when preparing the Form of Machine Master, I want to show
>>> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>>>
>>> Let me say that I amazed by the environment called Xailer. I have
>>> started loving the same in a very short period !
>>>
>>> TIA
>>> Milan.
>>>
>
>
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Milan Mehta
Mensajes: 134
Registrado: Dom Dic 27, 2009 9:54 am

NewBie : TDbComboBox Usage

Mensaje por Milan Mehta »

Ignacio,
My problem solved with lSort := .T.
I could search incrementally in TDbComboBox.
Accept my gratitude. I am enjoying Xailer !
With warm regards,
Milan
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:[email=4b754e2e@svctag-j7w3v3j....]4b754e2e@svctag-j7w3v3j....[/email]
> Milan,
>
> Please explain which kind of 'search': DBF, SQL, from the DbBrowse filter
> fields, from DBFBrowse OnSeek event, ....
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
> http://www.xailer.com
> http://www.xailer.info
>
> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
> noticias:[email=4b752c3f@svctag-j7w3v3j....]4b752c3f@svctag-j7w3v3j....[/email]
>> Thanks Ignacio, problem solved.
>>
>> Another related problem is, the search is only on the first character.
>> How can I have incremental search ? like if I type ABC, it should point
>> to record starting with ABC. I want to achieve the same with TDbComboBox
>> as my selection is from a Dbf file.
>>
>> Kindly guide.
>>
>> With best regards,
>>
>> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
>> news:4b7517fa$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Milan,
>>>
>>> The aItems property is not linked to any dataset, it must be populated
>>> manually. BTW, with SQL datasources is easy with the method QueryArray.
>>> For DBF datasources consult the method SaveToArray().
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Equipo de Xailer/Xailer team]
>>> http://www.xailer.com
>>> http://www.xailer.info
>>>
>>> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
>>> noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>> I am new to Xailer and trying to use TDbComboBox. I could see that it
>>>> use aItems and aItemsBound arrays to store the ComboBox option. But I
>>>> want to directly refer to a Database field instead. How can I do that ?
>>>>
>>>> Typically, my tables are as follow :
>>>>
>>>> Machine Master
>>>> MachineCode
>>>> MachineName
>>>> MachineTypeCode
>>>>
>>>> Machine Type Master
>>>> MachineTypeCode
>>>> MachineTypeName
>>>>
>>>> Now when preparing the Form of Machine Master, I want to show
>>>> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>>>>
>>>> Let me say that I amazed by the environment called Xailer. I have
>>>> started loving the same in a very short period !
>>>>
>>>> TIA
>>>> Milan.
>>>>
>>
>>
Milan Mehta
Mensajes: 134
Registrado: Dom Dic 27, 2009 9:54 am

NewBie : TDbComboBox Usage

Mensaje por Milan Mehta »

Ignacio,
My problem solved with lSort := .T.
I could search incrementally in TDbComboBox.
Accept my gratitude. I am enjoying Xailer !
With warm regards,
Milan
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:[email=4b754e2e@svctag-j7w3v3j....]4b754e2e@svctag-j7w3v3j....[/email]
> Milan,
>
> Please explain which kind of 'search': DBF, SQL, from the DbBrowse filter
> fields, from DBFBrowse OnSeek event, ....
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Equipo de Xailer/Xailer team]
> http://www.xailer.com
> http://www.xailer.info
>
> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
> noticias:[email=4b752c3f@svctag-j7w3v3j....]4b752c3f@svctag-j7w3v3j....[/email]
>> Thanks Ignacio, problem solved.
>>
>> Another related problem is, the search is only on the first character.
>> How can I have incremental search ? like if I type ABC, it should point
>> to record starting with ABC. I want to achieve the same with TDbComboBox
>> as my selection is from a Dbf file.
>>
>> Kindly guide.
>>
>> With best regards,
>>
>> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
>> news:4b7517fa$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Milan,
>>>
>>> The aItems property is not linked to any dataset, it must be populated
>>> manually. BTW, with SQL datasources is easy with the method QueryArray.
>>> For DBF datasources consult the method SaveToArray().
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Equipo de Xailer/Xailer team]
>>> http://www.xailer.com
>>> http://www.xailer.info
>>>
>>> "Milan Mehta" <lotusinfosys@yahoo.co.in> escribió en el mensaje de
>>> noticias:4b74d5d0$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>>> I am new to Xailer and trying to use TDbComboBox. I could see that it
>>>> use aItems and aItemsBound arrays to store the ComboBox option. But I
>>>> want to directly refer to a Database field instead. How can I do that ?
>>>>
>>>> Typically, my tables are as follow :
>>>>
>>>> Machine Master
>>>> MachineCode
>>>> MachineName
>>>> MachineTypeCode
>>>>
>>>> Machine Type Master
>>>> MachineTypeCode
>>>> MachineTypeName
>>>>
>>>> Now when preparing the Form of Machine Master, I want to show
>>>> MachineTypeName from Machine Type Master Tabel. How can I do it ?
>>>>
>>>> Let me say that I amazed by the environment called Xailer. I have
>>>> started loving the same in a very short period !
>>>>
>>>> TIA
>>>> Milan.
>>>>
>>
>>
Responder