Página 1 de 1

Browse Column default value in APPEND

Publicado: Vie Jun 13, 2008 5:45 pm
por ChrisGillard
I want to show a default value in a dbfbrowse column during an APPEND on the
browse.
The column is NOT EDITABLE ... Column1:nEditType = beNONE
If I make the column editable I can use Column1:GetData() ... this works ok
but the user could change the value.
Attached image shows what I want to do.
Any thought please
Regards
Chris Gillard


Attached files

Browse Column default value in APPEND

Publicado: Vie Jun 13, 2008 8:09 pm
por ignacio
Chris,
Try to use the TBrwColumn:OnEdit event.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>I want to show a default value in a dbfbrowse column during an APPEND on
>the browse.
>
> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>
> If I make the column editable I can use Column1:GetData() ... this works
> ok but the user could change the value.
>
> Attached image shows what I want to do.
>
> Any thought please
>
> Regards
>
> Chris Gillard
>
>

Browse Column default value in APPEND

Publicado: Vie Jun 13, 2008 8:09 pm
por NoName
Chris,
Try to use the TBrwColumn:OnEdit event.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>I want to show a default value in a dbfbrowse column during an APPEND on
>the browse.
>
> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>
> If I make the column editable I can use Column1:GetData() ... this works
> ok but the user could change the value.
>
> Attached image shows what I want to do.
>
> Any thought please
>
> Regards
>
> Chris Gillard
>
>

Browse Column default value in APPEND

Publicado: Sab Jun 14, 2008 6:52 pm
por ChrisGillard
Hi Ignacio,
Thanks for coming back to me late on a Friday.
I had tried that event but I dont think it fires, my test attached, did not
display anything.
I think the reason is that column 1 is beNone ... as shown in original ng
post image.
I could use the Column2 OnEdit event ... but how do I set a value into
column 1 ??
Regards
Chris Gillard
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> Try to use the TBrwColumn:OnEdit event.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>I want to show a default value in a dbfbrowse column during an APPEND on
>>the browse.
>>
>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>
>> If I make the column editable I can use Column1:GetData() ... this works
>> ok but the user could change the value.
>>
>> Attached image shows what I want to do.
>>
>> Any thought please
>>
>> Regards
>>
>> Chris Gillard
>>
>>
>
>


Attached files

Browse Column default value in APPEND

Publicado: Sab Jun 14, 2008 6:52 pm
por ChrisGillard
Hi Ignacio,
Thanks for coming back to me late on a Friday.
I had tried that event but I dont think it fires, my test attached, did not
display anything.
I think the reason is that column 1 is beNone ... as shown in original ng
post image.
I could use the Column2 OnEdit event ... but how do I set a value into
column 1 ??
Regards
Chris Gillard
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> Try to use the TBrwColumn:OnEdit event.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>I want to show a default value in a dbfbrowse column during an APPEND on
>>the browse.
>>
>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>
>> If I make the column editable I can use Column1:GetData() ... this works
>> ok but the user could change the value.
>>
>> Attached image shows what I want to do.
>>
>> Any thought please
>>
>> Regards
>>
>> Chris Gillard
>>
>>
>
>


Attached files

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 10:00 am
por ignacio
Chris,
OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
BTW, you should return a FALSE value from the OnEnter event.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Ignacio,
>
> Thanks for coming back to me late on a Friday.
>
> I had tried that event but I dont think it fires, my test attached, did
> not display anything.
>
> I think the reason is that column 1 is beNone ... as shown in original ng
> post image.
>
> I could use the Column2 OnEdit event ... but how do I set a value into
> column 1 ??
>
> Regards
>
> Chris Gillard
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Chris,
>>
>> Try to use the TBrwColumn:OnEdit event.
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Soporte Xailer]
>> [Xailer support]
>>
>>
>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>I want to show a default value in a dbfbrowse column during an APPEND on
>>>the browse.
>>>
>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>
>>> If I make the column editable I can use Column1:GetData() ... this works
>>> ok but the user could change the value.
>>>
>>> Attached image shows what I want to do.
>>>
>>> Any thought please
>>>
>>> Regards
>>>
>>> Chris Gillard
>>>
>>>
>>
>>
>
>
>

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 10:00 am
por NoName
Chris,
OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
BTW, you should return a FALSE value from the OnEnter event.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Ignacio,
>
> Thanks for coming back to me late on a Friday.
>
> I had tried that event but I dont think it fires, my test attached, did
> not display anything.
>
> I think the reason is that column 1 is beNone ... as shown in original ng
> post image.
>
> I could use the Column2 OnEdit event ... but how do I set a value into
> column 1 ??
>
> Regards
>
> Chris Gillard
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Chris,
>>
>> Try to use the TBrwColumn:OnEdit event.
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Soporte Xailer]
>> [Xailer support]
>>
>>
>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>I want to show a default value in a dbfbrowse column during an APPEND on
>>>the browse.
>>>
>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>
>>> If I make the column editable I can use Column1:GetData() ... this works
>>> ok but the user could change the value.
>>>
>>> Attached image shows what I want to do.
>>>
>>> Any thought please
>>>
>>> Regards
>>>
>>> Chris Gillard
>>>
>>>
>>
>>
>
>
>

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 4:06 pm
por ChrisGillard
Ignacio,
I can understand why I need to change to beEdit .... but that also gives me
a get on column 1, which I dont really want.
My ideal is a non editable, default value visible in column 1.
I have looked for a OnEnter event on the column but not shown in the ide or
the docs.
The only OnEnter event I can find is on the browse, which will stop all
editing ??
This is not the end of the world if it is not easyily possible.
Regards
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>
> BTW, you should return a FALSE value from the OnEnter event.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Ignacio,
>>
>> Thanks for coming back to me late on a Friday.
>>
>> I had tried that event but I dont think it fires, my test attached, did
>> not display anything.
>>
>> I think the reason is that column 1 is beNone ... as shown in original ng
>> post image.
>>
>> I could use the Column2 OnEdit event ... but how do I set a value into
>> column 1 ??
>>
>> Regards
>>
>> Chris Gillard
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Chris,
>>>
>>> Try to use the TBrwColumn:OnEdit event.
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Soporte Xailer]
>>> [Xailer support]
>>>
>>>
>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>I want to show a default value in a dbfbrowse column during an APPEND on
>>>>the browse.
>>>>
>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>
>>>> If I make the column editable I can use Column1:GetData() ... this
>>>> works
>>>> ok but the user could change the value.
>>>>
>>>> Attached image shows what I want to do.
>>>>
>>>> Any thought please
>>>>
>>>> Regards
>>>>
>>>> Chris Gillard
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 4:06 pm
por ChrisGillard
Ignacio,
I can understand why I need to change to beEdit .... but that also gives me
a get on column 1, which I dont really want.
My ideal is a non editable, default value visible in column 1.
I have looked for a OnEnter event on the column but not shown in the ide or
the docs.
The only OnEnter event I can find is on the browse, which will stop all
editing ??
This is not the end of the world if it is not easyily possible.
Regards
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>
> BTW, you should return a FALSE value from the OnEnter event.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Ignacio,
>>
>> Thanks for coming back to me late on a Friday.
>>
>> I had tried that event but I dont think it fires, my test attached, did
>> not display anything.
>>
>> I think the reason is that column 1 is beNone ... as shown in original ng
>> post image.
>>
>> I could use the Column2 OnEdit event ... but how do I set a value into
>> column 1 ??
>>
>> Regards
>>
>> Chris Gillard
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Chris,
>>>
>>> Try to use the TBrwColumn:OnEdit event.
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Soporte Xailer]
>>> [Xailer support]
>>>
>>>
>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>I want to show a default value in a dbfbrowse column during an APPEND on
>>>>the browse.
>>>>
>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>
>>>> If I make the column editable I can use Column1:GetData() ... this
>>>> works
>>>> ok but the user could change the value.
>>>>
>>>> Attached image shows what I want to do.
>>>>
>>>> Any thought please
>>>>
>>>> Regards
>>>>
>>>> Chris Gillard
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 4:38 pm
por ignacio
Crhis,
Would you be so kind TO JUST try with I told you?
WITH OBJECT oCol:
:nEditType := beGET
:OnEdit := {|| .F. }
END WITH
Thanks!
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:[email=48567367@ozsrv2.ozlan.local...]48567367@ozsrv2.ozlan.local...[/email]
> Ignacio,
>
> I can understand why I need to change to beEdit .... but that also gives
> me a get on column 1, which I dont really want.
>
> My ideal is a non editable, default value visible in column 1.
>
> I have looked for a OnEnter event on the column but not shown in the ide
> or the docs.
>
> The only OnEnter event I can find is on the browse, which will stop all
> editing ??
>
> This is not the end of the world if it is not easyily possible.
>
> Regards
>
> Chris
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
> news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Chris,
>>
>> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>>
>> BTW, you should return a FALSE value from the OnEnter event.
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Soporte Xailer]
>> [Xailer support]
>>
>>
>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hi Ignacio,
>>>
>>> Thanks for coming back to me late on a Friday.
>>>
>>> I had tried that event but I dont think it fires, my test attached, did
>>> not display anything.
>>>
>>> I think the reason is that column 1 is beNone ... as shown in original
>>> ng post image.
>>>
>>> I could use the Column2 OnEdit event ... but how do I set a value into
>>> column 1 ??
>>>
>>> Regards
>>>
>>> Chris Gillard
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>> Chris,
>>>>
>>>> Try to use the TBrwColumn:OnEdit event.
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Ignacio Ortiz de Zúñiga
>>>> [Soporte Xailer]
>>>> [Xailer support]
>>>>
>>>>
>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>>I want to show a default value in a dbfbrowse column during an APPEND
>>>>>on
>>>>>the browse.
>>>>>
>>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>>
>>>>> If I make the column editable I can use Column1:GetData() ... this
>>>>> works
>>>>> ok but the user could change the value.
>>>>>
>>>>> Attached image shows what I want to do.
>>>>>
>>>>> Any thought please
>>>>>
>>>>> Regards
>>>>>
>>>>> Chris Gillard
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 4:38 pm
por NoName
Crhis,
Would you be so kind TO JUST try with I told you?
WITH OBJECT oCol:
:nEditType := beGET
:OnEdit := {|| .F. }
END WITH
Thanks!
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:[email=48567367@ozsrv2.ozlan.local...]48567367@ozsrv2.ozlan.local...[/email]
> Ignacio,
>
> I can understand why I need to change to beEdit .... but that also gives
> me a get on column 1, which I dont really want.
>
> My ideal is a non editable, default value visible in column 1.
>
> I have looked for a OnEnter event on the column but not shown in the ide
> or the docs.
>
> The only OnEnter event I can find is on the browse, which will stop all
> editing ??
>
> This is not the end of the world if it is not easyily possible.
>
> Regards
>
> Chris
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
> news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Chris,
>>
>> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>>
>> BTW, you should return a FALSE value from the OnEnter event.
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Soporte Xailer]
>> [Xailer support]
>>
>>
>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hi Ignacio,
>>>
>>> Thanks for coming back to me late on a Friday.
>>>
>>> I had tried that event but I dont think it fires, my test attached, did
>>> not display anything.
>>>
>>> I think the reason is that column 1 is beNone ... as shown in original
>>> ng post image.
>>>
>>> I could use the Column2 OnEdit event ... but how do I set a value into
>>> column 1 ??
>>>
>>> Regards
>>>
>>> Chris Gillard
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>> Chris,
>>>>
>>>> Try to use the TBrwColumn:OnEdit event.
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Ignacio Ortiz de Zúñiga
>>>> [Soporte Xailer]
>>>> [Xailer support]
>>>>
>>>>
>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>>I want to show a default value in a dbfbrowse column during an APPEND
>>>>>on
>>>>>the browse.
>>>>>
>>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>>
>>>>> If I make the column editable I can use Column1:GetData() ... this
>>>>> works
>>>>> ok but the user could change the value.
>>>>>
>>>>> Attached image shows what I want to do.
>>>>>
>>>>> Any thought please
>>>>>
>>>>> Regards
>>>>>
>>>>> Chris Gillard
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 4:39 pm
por ignacio
There is a typo, sorry:
Would you be so kind TO JUST try what I told you?
WITH OBJECT oCol:
:nEditType := beGET
:OnEdit := {|| .F. }
END WITH
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
news:48567adf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Crhis,
>
> Would you be so kind TO JUST try with I told you?
>
> WITH OBJECT oCol:
> :nEditType := beGET
> :OnEdit := {|| .F. }
> END WITH
>
> Thanks!
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:[email=48567367@ozsrv2.ozlan.local...]48567367@ozsrv2.ozlan.local...[/email]
>> Ignacio,
>>
>> I can understand why I need to change to beEdit .... but that also gives
>> me a get on column 1, which I dont really want.
>>
>> My ideal is a non editable, default value visible in column 1.
>>
>> I have looked for a OnEnter event on the column but not shown in the ide
>> or the docs.
>>
>> The only OnEnter event I can find is on the browse, which will stop all
>> editing ??
>>
>> This is not the end of the world if it is not easyily possible.
>>
>> Regards
>>
>> Chris
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>> news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Chris,
>>>
>>> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>>>
>>> BTW, you should return a FALSE value from the OnEnter event.
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Soporte Xailer]
>>> [Xailer support]
>>>
>>>
>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>> Hi Ignacio,
>>>>
>>>> Thanks for coming back to me late on a Friday.
>>>>
>>>> I had tried that event but I dont think it fires, my test attached, did
>>>> not display anything.
>>>>
>>>> I think the reason is that column 1 is beNone ... as shown in original
>>>> ng post image.
>>>>
>>>> I could use the Column2 OnEdit event ... but how do I set a value into
>>>> column 1 ??
>>>>
>>>> Regards
>>>>
>>>> Chris Gillard
>>>>
>>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>> Chris,
>>>>>
>>>>> Try to use the TBrwColumn:OnEdit event.
>>>>>
>>>>> Regards,
>>>>>
>>>>> --
>>>>> Ignacio Ortiz de Zúñiga
>>>>> [Soporte Xailer]
>>>>> [Xailer support]
>>>>>
>>>>>
>>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>>>I want to show a default value in a dbfbrowse column during an APPEND
>>>>>>on
>>>>>>the browse.
>>>>>>
>>>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>>>
>>>>>> If I make the column editable I can use Column1:GetData() ... this
>>>>>> works
>>>>>> ok but the user could change the value.
>>>>>>
>>>>>> Attached image shows what I want to do.
>>>>>>
>>>>>> Any thought please
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Chris Gillard
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Browse Column default value in APPEND

Publicado: Lun Jun 16, 2008 4:39 pm
por NoName
There is a typo, sorry:
Would you be so kind TO JUST try what I told you?
WITH OBJECT oCol:
:nEditType := beGET
:OnEdit := {|| .F. }
END WITH
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
news:48567adf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Crhis,
>
> Would you be so kind TO JUST try with I told you?
>
> WITH OBJECT oCol:
> :nEditType := beGET
> :OnEdit := {|| .F. }
> END WITH
>
> Thanks!
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:[email=48567367@ozsrv2.ozlan.local...]48567367@ozsrv2.ozlan.local...[/email]
>> Ignacio,
>>
>> I can understand why I need to change to beEdit .... but that also gives
>> me a get on column 1, which I dont really want.
>>
>> My ideal is a non editable, default value visible in column 1.
>>
>> I have looked for a OnEnter event on the column but not shown in the ide
>> or the docs.
>>
>> The only OnEnter event I can find is on the browse, which will stop all
>> editing ??
>>
>> This is not the end of the world if it is not easyily possible.
>>
>> Regards
>>
>> Chris
>>
>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>> news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Chris,
>>>
>>> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>>>
>>> BTW, you should return a FALSE value from the OnEnter event.
>>>
>>> Regards,
>>>
>>> --
>>> Ignacio Ortiz de Zúñiga
>>> [Soporte Xailer]
>>> [Xailer support]
>>>
>>>
>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>> Hi Ignacio,
>>>>
>>>> Thanks for coming back to me late on a Friday.
>>>>
>>>> I had tried that event but I dont think it fires, my test attached, did
>>>> not display anything.
>>>>
>>>> I think the reason is that column 1 is beNone ... as shown in original
>>>> ng post image.
>>>>
>>>> I could use the Column2 OnEdit event ... but how do I set a value into
>>>> column 1 ??
>>>>
>>>> Regards
>>>>
>>>> Chris Gillard
>>>>
>>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>> Chris,
>>>>>
>>>>> Try to use the TBrwColumn:OnEdit event.
>>>>>
>>>>> Regards,
>>>>>
>>>>> --
>>>>> Ignacio Ortiz de Zúñiga
>>>>> [Soporte Xailer]
>>>>> [Xailer support]
>>>>>
>>>>>
>>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>>>I want to show a default value in a dbfbrowse column during an APPEND
>>>>>>on
>>>>>>the browse.
>>>>>>
>>>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>>>
>>>>>> If I make the column editable I can use Column1:GetData() ... this
>>>>>> works
>>>>>> ok but the user could change the value.
>>>>>>
>>>>>> Attached image shows what I want to do.
>>>>>>
>>>>>> Any thought please
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Chris Gillard
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Browse Column default value in APPEND

Publicado: Mié Jun 18, 2008 12:49 pm
por ChrisGillard
Ok,
I did what you suggested.
I put your code in the Form:Initialise event ??
I then tried various places to set the default value for that column but I
could not find an event that worked for me.
Now I have changed how I present the data so I dont need the technique ...
but I do feel it would be useful in the future.
Maybe when my I have more knowledge I will get it to work.
Lets leave it at that for now.
Regards
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:48567b1b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> There is a typo, sorry:
>
> Would you be so kind TO JUST try what I told you?
>
> WITH OBJECT oCol:
> :nEditType := beGET
> :OnEdit := {|| .F. }
> END WITH
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
> news:48567adf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Crhis,
>>
>> Would you be so kind TO JUST try with I told you?
>>
>> WITH OBJECT oCol:
>> :nEditType := beGET
>> :OnEdit := {|| .F. }
>> END WITH
>>
>> Thanks!
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Soporte Xailer]
>> [Xailer support]
>>
>>
>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>> news:[email=48567367@ozsrv2.ozlan.local...]48567367@ozsrv2.ozlan.local...[/email]
>>> Ignacio,
>>>
>>> I can understand why I need to change to beEdit .... but that also gives
>>> me a get on column 1, which I dont really want.
>>>
>>> My ideal is a non editable, default value visible in column 1.
>>>
>>> I have looked for a OnEnter event on the column but not shown in the ide
>>> or the docs.
>>>
>>> The only OnEnter event I can find is on the browse, which will stop all
>>> editing ??
>>>
>>> This is not the end of the world if it is not easyily possible.
>>>
>>> Regards
>>>
>>> Chris
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>> news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>> Chris,
>>>>
>>>> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>>>>
>>>> BTW, you should return a FALSE value from the OnEnter event.
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Ignacio Ortiz de Zúñiga
>>>> [Soporte Xailer]
>>>> [Xailer support]
>>>>
>>>>
>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>> Hi Ignacio,
>>>>>
>>>>> Thanks for coming back to me late on a Friday.
>>>>>
>>>>> I had tried that event but I dont think it fires, my test attached,
>>>>> did not display anything.
>>>>>
>>>>> I think the reason is that column 1 is beNone ... as shown in original
>>>>> ng post image.
>>>>>
>>>>> I could use the Column2 OnEdit event ... but how do I set a value into
>>>>> column 1 ??
>>>>>
>>>>> Regards
>>>>>
>>>>> Chris Gillard
>>>>>
>>>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>>>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>>> Chris,
>>>>>>
>>>>>> Try to use the TBrwColumn:OnEdit event.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>> Ignacio Ortiz de Zúñiga
>>>>>> [Soporte Xailer]
>>>>>> [Xailer support]
>>>>>>
>>>>>>
>>>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>>>>I want to show a default value in a dbfbrowse column during an APPEND
>>>>>>>on
>>>>>>>the browse.
>>>>>>>
>>>>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>>>>
>>>>>>> If I make the column editable I can use Column1:GetData() ... this
>>>>>>> works
>>>>>>> ok but the user could change the value.
>>>>>>>
>>>>>>> Attached image shows what I want to do.
>>>>>>>
>>>>>>> Any thought please
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> Chris Gillard
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Browse Column default value in APPEND

Publicado: Mié Jun 18, 2008 12:49 pm
por ChrisGillard
Ok,
I did what you suggested.
I put your code in the Form:Initialise event ??
I then tried various places to set the default value for that column but I
could not find an event that worked for me.
Now I have changed how I present the data so I dont need the technique ...
but I do feel it would be useful in the future.
Maybe when my I have more knowledge I will get it to work.
Lets leave it at that for now.
Regards
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:48567b1b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> There is a typo, sorry:
>
> Would you be so kind TO JUST try what I told you?
>
> WITH OBJECT oCol:
> :nEditType := beGET
> :OnEdit := {|| .F. }
> END WITH
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje
> news:48567adf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Crhis,
>>
>> Would you be so kind TO JUST try with I told you?
>>
>> WITH OBJECT oCol:
>> :nEditType := beGET
>> :OnEdit := {|| .F. }
>> END WITH
>>
>> Thanks!
>>
>> Regards,
>>
>> --
>> Ignacio Ortiz de Zúñiga
>> [Soporte Xailer]
>> [Xailer support]
>>
>>
>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>> news:[email=48567367@ozsrv2.ozlan.local...]48567367@ozsrv2.ozlan.local...[/email]
>>> Ignacio,
>>>
>>> I can understand why I need to change to beEdit .... but that also gives
>>> me a get on column 1, which I dont really want.
>>>
>>> My ideal is a non editable, default value visible in column 1.
>>>
>>> I have looked for a OnEnter event on the column but not shown in the ide
>>> or the docs.
>>>
>>> The only OnEnter event I can find is on the browse, which will stop all
>>> editing ??
>>>
>>> This is not the end of the world if it is not easyily possible.
>>>
>>> Regards
>>>
>>> Chris
>>>
>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>> news:48561d84$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>> Chris,
>>>>
>>>> OF COURSE, change also the property TBrwColumn:nEditType to beEDIT.
>>>>
>>>> BTW, you should return a FALSE value from the OnEnter event.
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Ignacio Ortiz de Zúñiga
>>>> [Soporte Xailer]
>>>> [Xailer support]
>>>>
>>>>
>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>> news:4853f74e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>> Hi Ignacio,
>>>>>
>>>>> Thanks for coming back to me late on a Friday.
>>>>>
>>>>> I had tried that event but I dont think it fires, my test attached,
>>>>> did not display anything.
>>>>>
>>>>> I think the reason is that column 1 is beNone ... as shown in original
>>>>> ng post image.
>>>>>
>>>>> I could use the Column2 OnEdit event ... but how do I set a value into
>>>>> column 1 ??
>>>>>
>>>>> Regards
>>>>>
>>>>> Chris Gillard
>>>>>
>>>>> "Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
>>>>> news:4852b7f2$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>>>>> Chris,
>>>>>>
>>>>>> Try to use the TBrwColumn:OnEdit event.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>> Ignacio Ortiz de Zúñiga
>>>>>> [Soporte Xailer]
>>>>>> [Xailer support]
>>>>>>
>>>>>>
>>>>>> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
>>>>>> news:[email=485296cc@ozsrv2.ozlan.local...]485296cc@ozsrv2.ozlan.local...[/email]
>>>>>>>I want to show a default value in a dbfbrowse column during an APPEND
>>>>>>>on
>>>>>>>the browse.
>>>>>>>
>>>>>>> The column is NOT EDITABLE ... Column1:nEditType = beNONE
>>>>>>>
>>>>>>> If I make the column editable I can use Column1:GetData() ... this
>>>>>>> works
>>>>>>> ok but the user could change the value.
>>>>>>>
>>>>>>> Attached image shows what I want to do.
>>>>>>>
>>>>>>> Any thought please
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> Chris Gillard
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>