Keith Goebel
2016-07-18 13:31:05 UTC
Using 4D v15.2, I am converting included forms into selection based listboxes.
In many cases I would like to have a particular column sort by a method call and the others by normal listbox sorting.
So, the listbox has sorting turned on.
Is there any parameter I can insert into the On Header Click event that will enable me to do a custom sort in one column and a normal listbox sort for the other columns?
In other words:
If (Form Event = On Header Click)
$Header_Button_p:=OBJECT Get pointer(Object current)
If ($Header_Button_p=(->bMy_Button_l)) //special column sort
Do_my_Sort_Here
` do something here to disable the listbox sort for this click
Else
`do nothing - let the listbox do its sort
End if
End if
TIA, Keith
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-***@lists.4D.com
***********************************************************
In many cases I would like to have a particular column sort by a method call and the others by normal listbox sorting.
So, the listbox has sorting turned on.
Is there any parameter I can insert into the On Header Click event that will enable me to do a custom sort in one column and a normal listbox sort for the other columns?
In other words:
If (Form Event = On Header Click)
$Header_Button_p:=OBJECT Get pointer(Object current)
If ($Header_Button_p=(->bMy_Button_l)) //special column sort
Do_my_Sort_Here
` do something here to disable the listbox sort for this click
Else
`do nothing - let the listbox do its sort
End if
End if
TIA, Keith
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4D_Tech-***@lists.4D.com
***********************************************************