Página 1 de 1

Browse error on Edition

Publicado: Jue Feb 01, 2007 6:38 pm
por Aguiar
Hello,
I have o TDBBrowse with lFastEdit set to .T. and one of the columns
nEditType set to beGET_LISTBOX. That column is type logical, so the lisbox
as only 2 choices, Yes or No...So, that's what i have:
With Object oCol
If :cHeader="MARRIED"
:nEditType := beGET_LISTBOX
:aEditListText := {"Yes","No"}
:aEditListBound := {.T.,.F.}
EndIf
:nEditLength:= :oDataField:nLen
End With
And for OnGetData event i have:
Value := If(Value,"Yes","No")
Attached is a sample with the customer table...the error is on changing of
that column...Is it a bug ?
Thanks
Aguiar !!!


Attached files Brw.zip (2.1 KB)Â

Browse error on Edition

Publicado: Jue Feb 01, 2007 6:40 pm
por ignacio
Aquiar,
Is a bug that is already fixed here (tested). Plese include the attached
module.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
news:45c22502$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Hello,
>
> I have o TDBBrowse with lFastEdit set to .T. and one of the columns
> nEditType set to beGET_LISTBOX. That column is type logical, so the lisbox
> as only 2 choices, Yes or No...So, that's what i have:
>
> With Object oCol
> If :cHeader="MARRIED"
> :nEditType := beGET_LISTBOX
> :aEditListText := {"Yes","No"}
> :aEditListBound := {.T.,.F.}
> EndIf
> :nEditLength:= :oDataField:nLen
> End With
>
> And for OnGetData event i have:
>
> Value := If(Value,"Yes","No")
>
> Attached is a sample with the customer table...the error is on changing of
> that column...Is it a bug ?
> Thanks
>
> Aguiar !!!
>
>
>


Attached files GridEdit.rar (7 KB)Â

Browse error on Edition

Publicado: Jue Feb 01, 2007 6:40 pm
por NoName
Aquiar,
Is a bug that is already fixed here (tested). Plese include the attached
module.
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
news:45c22502$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Hello,
>
> I have o TDBBrowse with lFastEdit set to .T. and one of the columns
> nEditType set to beGET_LISTBOX. That column is type logical, so the lisbox
> as only 2 choices, Yes or No...So, that's what i have:
>
> With Object oCol
> If :cHeader="MARRIED"
> :nEditType := beGET_LISTBOX
> :aEditListText := {"Yes","No"}
> :aEditListBound := {.T.,.F.}
> EndIf
> :nEditLength:= :oDataField:nLen
> End With
>
> And for OnGetData event i have:
>
> Value := If(Value,"Yes","No")
>
> Attached is a sample with the customer table...the error is on changing of
> that column...Is it a bug ?
> Thanks
>
> Aguiar !!!
>
>
>


Attached files GridEdit.rar (7 KB)Â

Browse error on Edition

Publicado: Jue Feb 01, 2007 7:37 pm
por Aguiar
Ignacio,
It works fine with beGET_LISTBOX...but not with just beLISTBOX....Am i
missing something for that particular type ?
Thanks.
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:45c225fe$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Aquiar,
>
> Is a bug that is already fixed here (tested). Plese include the attached
> module.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
> news:45c22502$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>> Hello,
>>
>> I have o TDBBrowse with lFastEdit set to .T. and one of the columns
>> nEditType set to beGET_LISTBOX. That column is type logical, so the
>> lisbox
>> as only 2 choices, Yes or No...So, that's what i have:
>>
>> With Object oCol
>> If :cHeader="MARRIED"
>> :nEditType := beGET_LISTBOX
>> :aEditListText := {"Yes","No"}
>> :aEditListBound := {.T.,.F.}
>> EndIf
>> :nEditLength:= :oDataField:nLen
>> End With
>>
>> And for OnGetData event i have:
>>
>> Value := If(Value,"Yes","No")
>>
>> Attached is a sample with the customer table...the error is on changing
>> of
>> that column...Is it a bug ?
>> Thanks
>>
>> Aguiar !!!
>>
>>
>>
>
>
>

Browse error on Edition

Publicado: Jue Feb 01, 2007 7:37 pm
por Aguiar
Ignacio,
It works fine with beGET_LISTBOX...but not with just beLISTBOX....Am i
missing something for that particular type ?
Thanks.
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:45c225fe$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Aquiar,
>
> Is a bug that is already fixed here (tested). Plese include the attached
> module.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
> news:45c22502$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>> Hello,
>>
>> I have o TDBBrowse with lFastEdit set to .T. and one of the columns
>> nEditType set to beGET_LISTBOX. That column is type logical, so the
>> lisbox
>> as only 2 choices, Yes or No...So, that's what i have:
>>
>> With Object oCol
>> If :cHeader="MARRIED"
>> :nEditType := beGET_LISTBOX
>> :aEditListText := {"Yes","No"}
>> :aEditListBound := {.T.,.F.}
>> EndIf
>> :nEditLength:= :oDataField:nLen
>> End With
>>
>> And for OnGetData event i have:
>>
>> Value := If(Value,"Yes","No")
>>
>> Attached is a sample with the customer table...the error is on changing
>> of
>> that column...Is it a bug ?
>> Thanks
>>
>> Aguiar !!!
>>
>>
>>
>
>
>

Browse error on Edition

Publicado: Vie Feb 02, 2007 9:41 am
por ignacio
Aguiar,
Your sample works perfectly with field Married. Should I try with another
field? BTW, send the error.log
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
news:45c232eb$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Ignacio,
> It works fine with beGET_LISTBOX...but not with just beLISTBOX....Am i
> missing something for that particular type ?
> Thanks.
>
> Aguiar !!!
>
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
> news:45c225fe$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>> Aquiar,
>>
>> Is a bug that is already fixed here (tested). Plese include the attached
>> module.
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> http://www.xailer.com
>>
>>
>> "Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
>> news:45c22502$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>> Hello,
>>>
>>> I have o TDBBrowse with lFastEdit set to .T. and one of the columns
>>> nEditType set to beGET_LISTBOX. That column is type logical, so the
>>> lisbox
>>> as only 2 choices, Yes or No...So, that's what i have:
>>>
>>> With Object oCol
>>> If :cHeader="MARRIED"
>>> :nEditType := beGET_LISTBOX
>>> :aEditListText := {"Yes","No"}
>>> :aEditListBound := {.T.,.F.}
>>> EndIf
>>> :nEditLength:= :oDataField:nLen
>>> End With
>>>
>>> And for OnGetData event i have:
>>>
>>> Value := If(Value,"Yes","No")
>>>
>>> Attached is a sample with the customer table...the error is on changing
>>> of
>>> that column...Is it a bug ?
>>> Thanks
>>>
>>> Aguiar !!!
>>>
>>>
>>>
>>
>>
>>
>
>
>

Browse error on Edition

Publicado: Vie Feb 02, 2007 9:41 am
por NoName
Aguiar,
Your sample works perfectly with field Married. Should I try with another
field? BTW, send the error.log
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
news:45c232eb$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Ignacio,
> It works fine with beGET_LISTBOX...but not with just beLISTBOX....Am i
> missing something for that particular type ?
> Thanks.
>
> Aguiar !!!
>
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
> news:45c225fe$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>> Aquiar,
>>
>> Is a bug that is already fixed here (tested). Plese include the attached
>> module.
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> http://www.xailer.com
>>
>>
>> "Aguiar" <aguiar.costa@shi.pt> escribió en el mensaje
>> news:45c22502$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>> Hello,
>>>
>>> I have o TDBBrowse with lFastEdit set to .T. and one of the columns
>>> nEditType set to beGET_LISTBOX. That column is type logical, so the
>>> lisbox
>>> as only 2 choices, Yes or No...So, that's what i have:
>>>
>>> With Object oCol
>>> If :cHeader="MARRIED"
>>> :nEditType := beGET_LISTBOX
>>> :aEditListText := {"Yes","No"}
>>> :aEditListBound := {.T.,.F.}
>>> EndIf
>>> :nEditLength:= :oDataField:nLen
>>> End With
>>>
>>> And for OnGetData event i have:
>>>
>>> Value := If(Value,"Yes","No")
>>>
>>> Attached is a sample with the customer table...the error is on changing
>>> of
>>> that column...Is it a bug ?
>>> Thanks
>>>
>>> Aguiar !!!
>>>
>>>
>>>
>>
>>
>>
>
>
>