Hello,
in AppGini I am allowed/able to Sort a Single Field per table using the "Default Sort By" option.
Is there a way to Sort on two (2) Fields/Columns ?
THANK YOU
How to Sort Two Fields?
How to Sort Two Fields?
THANK YOU...
AppGini Pro 22.14 -
Calendar - Search Page Maker - Summary Reports - Mass Update -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
AppGini Pro 22.14 -
Calendar - Search Page Maker - Summary Reports - Mass Update -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
Re: How to Sort Two Fields?
Check out
Docs:
https://bigprof.com/appgini/help/advanc ... ist-object
DefaultSortField
property of $options
in TABLENAME_init
hookDocs:
https://bigprof.com/appgini/help/advanc ... ist-object
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityRe: How to Sort Two Fields?
Thanks JAN,
I am able now to do the sorting (following two links in the Forum - forgot the links
that I have to do the following two steps:
1. Set Default Sort by to None in the Table using AppGini app
2. edit the TableName.PHP file and Configure the function TableName_init
Is there documentation of $Options ?
Thanks again..
I am able now to do the sorting (following two links in the Forum - forgot the links

that I have to do the following two steps:
1. Set Default Sort by to None in the Table using AppGini app
2. edit the TableName.PHP file and Configure the function TableName_init
Code: Select all
function TableName_init(&$options, $memberInfo, &$args) {
$options->DefaultSortField = '4 asc, 5 asc';
$options->DefaultSortDirection = '';
return TRUE;
}
Is there documentation of $Options ?
Thanks again..
THANK YOU...
AppGini Pro 22.14 -
Calendar - Search Page Maker - Summary Reports - Mass Update -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
AppGini Pro 22.14 -
Calendar - Search Page Maker - Summary Reports - Mass Update -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
Re: How to Sort Two Fields?
Yes, see the link I've given above.Is there documentation of $Options ?
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityRe: How to Sort Two Fields?
I think you can also use fully qualified column names like this:$options->DefaultSortField = '4 asc, 5 asc';
Code: Select all
$options->DefaultSortField = 'tablename.column_x DESC, tablename.column_y';
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityRe: How to Sort Two Fields?
Hi Jan,
Cool .. THANK YOU big time ..
Regards..
Cool .. THANK YOU big time ..
Regards..
THANK YOU...
AppGini Pro 22.14 -
Calendar - Search Page Maker - Summary Reports - Mass Update -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course
AppGini Pro 22.14 -
Calendar - Search Page Maker - Summary Reports - Mass Update -
bizzworxx AppGini Helper JabaScript Library - bizzworxx Inline Detail-View - bizzworxx Helper Pack - AppGini Helper Packaging Tool -
Udemy course