sorting in tablename_view.php
sorting in tablename_view.php
how to change sorting field in tablename_view.php.tq
Re: sorting in tablename_view.php
Just click on the column title to sort ascendingly. Click again to sort descendingly.
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
Re: sorting in tablename_view.php
i found this, and i've tried to change field like below, and it's working.
$x->DefaultSortField = '2';
$x->DefaultSortDirection = 'desc';
$x->DefaultSortField = '2';
$x->DefaultSortDirection = 'desc';
Re: sorting in tablename_view.php
Aha .. Sorry, I didn't get it at first that you meant default sorting. Your code edit would work ... however, an easier method without editing code is to specify the default sorting in AppGini .. Just select the concerned table, and specify the default sort field and direction from the table options, then regenerate your application.
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
Re: sorting in tablename_view.php
Also working via hook file tablename.php
function tablename_init(&$options, $memberInfo, &$args){
$options->DefaultSortField = '3';
$options->DefaultSortDirection = 'asc';
function tablename_init(&$options, $memberInfo, &$args){
$options->DefaultSortField = '3';
$options->DefaultSortDirection = 'asc';
ver 23.15 1484