Dear Xailers,
if the TDBBrowse-property lAutoOrder is .T. the event
TBrwColumn:OnHeaderClick will be triggered AFTER the browse is automatically
sorted, therefore it is not possible to deactivate this behaviour for a
single column.
Could you change the sequence in this way that the OnHeaderClick-event is
triggered at first and e.g. when '0' is returned the AutoOrder-function
will be discontinued for this single column?
Or have you any workaround to stop autoordering for only one column without
setting lAutoOrder to .F..?
Regards
Ingo
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.
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.
triggering TBrwColumn:OnHeaderClick
- ignacio
- Site Admin
- Mensajes: 9469
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
triggering TBrwColumn:OnHeaderClick
Ingo,
Modified this way:
METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
LOCAL xRet
xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
::oParent:Sort( Self )
ENDIF
RETURN xRet
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Ingo" <support@mandantwin.com> escribió en el mensaje
news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear Xailers,
>
> if the TDBBrowse-property lAutoOrder is .T. the event
> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
> automatically sorted, therefore it is not possible to deactivate this
> behaviour for a single column.
>
> Could you change the sequence in this way that the OnHeaderClick-event is
> triggered at first and e.g. when '0' is returned the AutoOrder-function
> will be discontinued for this single column?
>
> Or have you any workaround to stop autoordering for only one column
> without setting lAutoOrder to .F..?
>
> Regards
>
> Ingo
Modified this way:
METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
LOCAL xRet
xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
::oParent:Sort( Self )
ENDIF
RETURN xRet
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Ingo" <support@mandantwin.com> escribió en el mensaje
news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear Xailers,
>
> if the TDBBrowse-property lAutoOrder is .T. the event
> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
> automatically sorted, therefore it is not possible to deactivate this
> behaviour for a single column.
>
> Could you change the sequence in this way that the OnHeaderClick-event is
> triggered at first and e.g. when '0' is returned the AutoOrder-function
> will be discontinued for this single column?
>
> Or have you any workaround to stop autoordering for only one column
> without setting lAutoOrder to .F..?
>
> Regards
>
> Ingo
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
triggering TBrwColumn:OnHeaderClick
Ingo,
Modified this way:
METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
LOCAL xRet
xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
::oParent:Sort( Self )
ENDIF
RETURN xRet
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Ingo" <support@mandantwin.com> escribió en el mensaje
news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear Xailers,
>
> if the TDBBrowse-property lAutoOrder is .T. the event
> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
> automatically sorted, therefore it is not possible to deactivate this
> behaviour for a single column.
>
> Could you change the sequence in this way that the OnHeaderClick-event is
> triggered at first and e.g. when '0' is returned the AutoOrder-function
> will be discontinued for this single column?
>
> Or have you any workaround to stop autoordering for only one column
> without setting lAutoOrder to .F..?
>
> Regards
>
> Ingo
Modified this way:
METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
LOCAL xRet
xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
::oParent:Sort( Self )
ENDIF
RETURN xRet
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Ingo" <support@mandantwin.com> escribió en el mensaje
news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear Xailers,
>
> if the TDBBrowse-property lAutoOrder is .T. the event
> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
> automatically sorted, therefore it is not possible to deactivate this
> behaviour for a single column.
>
> Could you change the sequence in this way that the OnHeaderClick-event is
> triggered at first and e.g. when '0' is returned the AutoOrder-function
> will be discontinued for this single column?
>
> Or have you any workaround to stop autoordering for only one column
> without setting lAutoOrder to .F..?
>
> Regards
>
> Ingo
triggering TBrwColumn:OnHeaderClick
Ignacio,
I modified BrwCol.prg that way. That's what I needed.
Thank you very much.
Ingo
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> schrieb im Newsbeitrag
news:48bbaebf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Ingo,
>
> Modified this way:
>
> METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
>
> LOCAL xRet
>
> xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
>
> IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
> ::oParent:Sort( Self )
> ENDIF
>
> RETURN xRet
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Ingo" <support@mandantwin.com> escribió en el mensaje
> news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Dear Xailers,
>>
>> if the TDBBrowse-property lAutoOrder is .T. the event
>> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
>> automatically sorted, therefore it is not possible to deactivate this
>> behaviour for a single column.
>>
>> Could you change the sequence in this way that the OnHeaderClick-event is
>> triggered at first and e.g. when '0' is returned the AutoOrder-function
>> will be discontinued for this single column?
>>
>> Or have you any workaround to stop autoordering for only one column
>> without setting lAutoOrder to .F..?
>>
>> Regards
>>
>> Ingo
>
>
I modified BrwCol.prg that way. That's what I needed.
Thank you very much.
Ingo
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> schrieb im Newsbeitrag
news:48bbaebf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Ingo,
>
> Modified this way:
>
> METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
>
> LOCAL xRet
>
> xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
>
> IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
> ::oParent:Sort( Self )
> ENDIF
>
> RETURN xRet
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Ingo" <support@mandantwin.com> escribió en el mensaje
> news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Dear Xailers,
>>
>> if the TDBBrowse-property lAutoOrder is .T. the event
>> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
>> automatically sorted, therefore it is not possible to deactivate this
>> behaviour for a single column.
>>
>> Could you change the sequence in this way that the OnHeaderClick-event is
>> triggered at first and e.g. when '0' is returned the AutoOrder-function
>> will be discontinued for this single column?
>>
>> Or have you any workaround to stop autoordering for only one column
>> without setting lAutoOrder to .F..?
>>
>> Regards
>>
>> Ingo
>
>
triggering TBrwColumn:OnHeaderClick
Ignacio,
I modified BrwCol.prg that way. That's what I needed.
Thank you very much.
Ingo
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> schrieb im Newsbeitrag
news:48bbaebf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Ingo,
>
> Modified this way:
>
> METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
>
> LOCAL xRet
>
> xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
>
> IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
> ::oParent:Sort( Self )
> ENDIF
>
> RETURN xRet
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Ingo" <support@mandantwin.com> escribió en el mensaje
> news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Dear Xailers,
>>
>> if the TDBBrowse-property lAutoOrder is .T. the event
>> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
>> automatically sorted, therefore it is not possible to deactivate this
>> behaviour for a single column.
>>
>> Could you change the sequence in this way that the OnHeaderClick-event is
>> triggered at first and e.g. when '0' is returned the AutoOrder-function
>> will be discontinued for this single column?
>>
>> Or have you any workaround to stop autoordering for only one column
>> without setting lAutoOrder to .F..?
>>
>> Regards
>>
>> Ingo
>
>
I modified BrwCol.prg that way. That's what I needed.
Thank you very much.
Ingo
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> schrieb im Newsbeitrag
news:48bbaebf$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Ingo,
>
> Modified this way:
>
> METHOD HeaderClick( nPosX, nPosY ) CLASS XBrwColumn
>
> LOCAL xRet
>
> xRet := ::OnHeaderClick( NIL, nPosX, nPosY )
>
> IF ( Valtype( xRet ) != "L" .OR. xRet ) .AND. ::oParent:lAutoOrder
> ::oParent:Sort( Self )
> ENDIF
>
> RETURN xRet
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> [Soporte Xailer]
> [Xailer support]
>
>
> "Ingo" <support@mandantwin.com> escribió en el mensaje
> news:48bba736$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Dear Xailers,
>>
>> if the TDBBrowse-property lAutoOrder is .T. the event
>> TBrwColumn:OnHeaderClick will be triggered AFTER the browse is
>> automatically sorted, therefore it is not possible to deactivate this
>> behaviour for a single column.
>>
>> Could you change the sequence in this way that the OnHeaderClick-event is
>> triggered at first and e.g. when '0' is returned the AutoOrder-function
>> will be discontinued for this single column?
>>
>> Or have you any workaround to stop autoordering for only one column
>> without setting lAutoOrder to .F..?
>>
>> Regards
>>
>> Ingo
>
>