Página 1 de 1

Changing a column from EDIT to NOEDIT at runtime.

Publicado: Lun Feb 18, 2008 3:13 pm
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

Changing a column from EDIT to NOEDIT at runtime.

Publicado: Lun Feb 18, 2008 5:04 pm
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
>
>

Changing a column from EDIT to NOEDIT at runtime.

Publicado: Lun Feb 18, 2008 5:04 pm
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
>
>

Changing a column from EDIT to NOEDIT at runtime.

Publicado: Lun Feb 18, 2008 5:45 pm
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
>>
>>
>
>

Changing a column from EDIT to NOEDIT at runtime.

Publicado: Lun Feb 18, 2008 5:45 pm
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
>>
>>
>
>