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.

Changing a column from EDIT to NOEDIT at runtime.

Xailer professional forum in English
Responder
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Changing a column from EDIT to NOEDIT at runtime.

Mensaje por ChrisGillard »

I have a form with an ArrayBrowse on it.
In most situations the browse has nEditType = beGet on column1 & column 3
.... I have this code working fine
In some other situtuations I want to use this form with edit ONLY on Column
3
I have code some code which attempts to set Column1:nEditType to beNONE
::oArrayBrowse1:aCols[1]:nEditType := beNONE
logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
shows FALSE
This appears to work OK and IsMultipleEdit() returns FALSE
As soon as I issue the oArrayBrowse:Edit() call like this ....
::oArrayBrowse1:Edit()
logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
Shows TRUE
IsMultipleEdit() returns TRUE .... which upsets my PostEdit() code.
What is the reliable method of changing a column from EDIT to NOEDIT at
runtime.
Would really like some help on this please.
Regards
Chris Gillard
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Changing a column from EDIT to NOEDIT at runtime.

Mensaje por ignacio »

Chris,
Use the method TBrwColum:OnEdit()
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:47b9928d$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I have a form with an ArrayBrowse on it.
>
> In most situations the browse has nEditType = beGet on column1 & column 3
> ... I have this code working fine
>
> In some other situtuations I want to use this form with edit ONLY on
> Column 3
>
> I have code some code which attempts to set Column1:nEditType to beNONE
>
> ::oArrayBrowse1:aCols[1]:nEditType := beNONE
> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
> shows FALSE
>
> This appears to work OK and IsMultipleEdit() returns FALSE
>
> As soon as I issue the oArrayBrowse:Edit() call like this ....
>
> ::oArrayBrowse1:Edit()
> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
> Shows TRUE
>
> IsMultipleEdit() returns TRUE .... which upsets my PostEdit() code.
>
> What is the reliable method of changing a column from EDIT to NOEDIT at
> runtime.
>
> Would really like some help on this please.
>
> Regards
>
> Chris Gillard
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Changing a column from EDIT to NOEDIT at runtime.

Mensaje por NoName »

Chris,
Use the method TBrwColum:OnEdit()
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:47b9928d$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I have a form with an ArrayBrowse on it.
>
> In most situations the browse has nEditType = beGet on column1 & column 3
> ... I have this code working fine
>
> In some other situtuations I want to use this form with edit ONLY on
> Column 3
>
> I have code some code which attempts to set Column1:nEditType to beNONE
>
> ::oArrayBrowse1:aCols[1]:nEditType := beNONE
> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
> shows FALSE
>
> This appears to work OK and IsMultipleEdit() returns FALSE
>
> As soon as I issue the oArrayBrowse:Edit() call like this ....
>
> ::oArrayBrowse1:Edit()
> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
> Shows TRUE
>
> IsMultipleEdit() returns TRUE .... which upsets my PostEdit() code.
>
> What is the reliable method of changing a column from EDIT to NOEDIT at
> runtime.
>
> Would really like some help on this please.
>
> Regards
>
> Chris Gillard
>
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Changing a column from EDIT to NOEDIT at runtime.

Mensaje por ChrisGillard »

Ignacio,
Thanks for the reply.
I see that by returning FALSE it acts like a WHEN clause on the column get.
Thank you.
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:47b9aca3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> Use the method TBrwColum:OnEdit()
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:47b9928d$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>I have a form with an ArrayBrowse on it.
>>
>> In most situations the browse has nEditType = beGet on column1 & column 3
>> ... I have this code working fine
>>
>> In some other situtuations I want to use this form with edit ONLY on
>> Column 3
>>
>> I have code some code which attempts to set Column1:nEditType to beNONE
>>
>> ::oArrayBrowse1:aCols[1]:nEditType := beNONE
>> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() )
>> // shows FALSE
>>
>> This appears to work OK and IsMultipleEdit() returns FALSE
>>
>> As soon as I issue the oArrayBrowse:Edit() call like this ....
>>
>> ::oArrayBrowse1:Edit()
>> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
>> Shows TRUE
>>
>> IsMultipleEdit() returns TRUE .... which upsets my PostEdit() code.
>>
>> What is the reliable method of changing a column from EDIT to NOEDIT at
>> runtime.
>>
>> Would really like some help on this please.
>>
>> Regards
>>
>> Chris Gillard
>>
>>
>
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Changing a column from EDIT to NOEDIT at runtime.

Mensaje por ChrisGillard »

Ignacio,
Thanks for the reply.
I see that by returning FALSE it acts like a WHEN clause on the column get.
Thank you.
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:47b9aca3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> Use the method TBrwColum:OnEdit()
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:47b9928d$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>I have a form with an ArrayBrowse on it.
>>
>> In most situations the browse has nEditType = beGet on column1 & column 3
>> ... I have this code working fine
>>
>> In some other situtuations I want to use this form with edit ONLY on
>> Column 3
>>
>> I have code some code which attempts to set Column1:nEditType to beNONE
>>
>> ::oArrayBrowse1:aCols[1]:nEditType := beNONE
>> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() )
>> // shows FALSE
>>
>> This appears to work OK and IsMultipleEdit() returns FALSE
>>
>> As soon as I issue the oArrayBrowse:Edit() call like this ....
>>
>> ::oArrayBrowse1:Edit()
>> logdisplay( "IsMulipleEdit()", ::oArrayBrowse1:IsMultipleEdit() ) //
>> Shows TRUE
>>
>> IsMultipleEdit() returns TRUE .... which upsets my PostEdit() code.
>>
>> What is the reliable method of changing a column from EDIT to NOEDIT at
>> runtime.
>>
>> Would really like some help on this please.
>>
>> Regards
>>
>> Chris Gillard
>>
>>
>
>
Responder