Changing the Filter Tab
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Changing the Filter Tab
Hi Guys
I asked this question in a different section but I didn't get an answer, I hope it is ok to ask it here.
I am building an application where many users are are not understanding Filter and are just going straight to Search. I need to draw more attention to the Filter tab. Also it would be extremely helpful if I could have a comment right on the form to inform users what to do.
Thanks
I asked this question in a different section but I didn't get an answer, I hope it is ok to ask it here.
I am building an application where many users are are not understanding Filter and are just going straight to Search. I need to draw more attention to the Filter tab. Also it would be extremely helpful if I could have a comment right on the form to inform users what to do.
Thanks
- Attachments
-
- FILTER.jpg (36.2 KiB) Viewed 5511 times
Re: Changing the Filter Tab
Hi,
you can try
you can try
Code: Select all
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', 'Search'));
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Sorry Sir
I am not sure where to put that code.
I am not sure where to put that code.
Re: Changing the Filter Tab
Hi,
probably in your /hooks/tablename-tv.js ... did you try?
Olaf
probably in your /hooks/tablename-tv.js ... did you try?
Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Hi Olaf
I don't see a mytablename.js file anywhere. I do have a mytablename_filter.php file in my hooks folder. Perhaps that is where I will find a solution, I will spend some time trying to understand it and will let you know.
Thanks
I don't see a mytablename.js file anywhere. I do have a mytablename_filter.php file in my hooks folder. Perhaps that is where I will find a solution, I will spend some time trying to understand it and will let you know.
Thanks
Re: Changing the Filter Tab
Hi,
look in your hooks folder. There you should find such a file - if not: Just create a new file with that name and paste pbötchers code into that.
Olaf
look in your hooks folder. There you should find such a file - if not: Just create a new file with that name and paste pbötchers code into that.
Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
In my hooks folder I have this file, events.php, I created a new file called events-tv.js , pasted the code into it and saved it in the hooks folder. Nothing changes when I open the events page.The same tab with the icon, and the word Filter in black text.
Re: Changing the Filter Tab
hello , can you try this one
Code: Select all
$j(function(){
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', 'Search'));
});
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Excellent, that worked. Now is there any chance at all of making the text red and bold??
Re: Changing the Filter Tab
please check this
Code: Select all
$j(function(){
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search</b></font>'));
});
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Incredible, that is exactly what I want. You guys are just so generous with your time and knowledge.
Thank you.
Thank you.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
Oh oh, I developed a problem guys. After I created all the js files for each table all these menu selections disappear.
- Attachments
-
- menu-disapper.jpg (41.15 KiB) Viewed 5444 times
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
I just checked when I create a js file for just one of the tables all the menu selections disappear for that one table but are all available for the other tables
- Attachments
-
- menu1.jpg (25.06 KiB) Viewed 5443 times
Re: Changing the Filter Tab
i check
you can use same code but you add code to footer-extras.php
but will make change for All Tables
you can use same code but you add code to footer-extras.php
but will make change for All Tables
Re: Changing the Filter Tab
can you check this code on footer-extras.php
change cust_view.php for your table name
Code: Select all
<?php
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'cust_view.php'){
?>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html().replace('Filter', '<b><font color="red">Search'));
</script>
<?php
}
?>
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
I am getting the same problem, my menu selections disappear in the detail screen.
Re: Changing the Filter Tab
last code work with me without any problem
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
This is what I get. I called for the parent table in the php script.
- Attachments
-
- child_tables.jpg (59.25 KiB) Viewed 5431 times
-
- parent_table.jpg (76.05 KiB) Viewed 5431 times
Re: Changing the Filter Tab
Hi,
can you post the code you have in your js file and what file you are using.
can you post the code you have in your js file and what file you are using.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
I am not sure how to post the Town.php file which is the parent table. It's just the file that was created when I started the application. Sorry I am still learning.
- Attachments
-
- footer-extras.jpg (44.81 KiB) Viewed 5428 times
Re: Changing the Filter Tab
you can just copy paste it into the textbox here.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
<?php
// For help on using hooks, please refer to https://bigprof.com/appgini/help/workin ... tion/hooks
function Town_init(&$options, $memberInfo, &$args) {
/* Inserted by Search Page Maker for AppGini on 2020-03-31 07:18:51 */
$options->FilterPage = 'hooks/Town_filter.php';
/* End of Search Page Maker for AppGini code */
return TRUE;
}
function Town_header($contentType, $memberInfo, &$args) {
$header='';
switch($contentType) {
case 'tableview':
$header='';
break;
case 'detailview':
$header='';
break;
case 'tableview+detailview':
$header='';
break;
case 'print-tableview':
$header='';
break;
case 'print-detailview':
$header='';
break;
case 'filters':
$header='';
break;
}
return $header;
}
function Town_footer($contentType, $memberInfo, &$args) {
$footer='';
switch($contentType) {
case 'tableview':
$footer='';
break;
case 'detailview':
$footer='';
break;
case 'tableview+detailview':
$footer='';
break;
case 'print-tableview':
$footer='';
break;
case 'print-detailview':
$footer='';
break;
case 'filters':
$footer='';
break;
}
return $footer;
}
function Town_before_insert(&$data, $memberInfo, &$args) {
return TRUE;
}
function Town_after_insert($data, $memberInfo, &$args) {
return TRUE;
}
function Town_before_update(&$data, $memberInfo, &$args) {
return TRUE;
}
function Town_after_update($data, $memberInfo, &$args) {
return TRUE;
}
function Town_before_delete($selectedID, &$skipChecks, $memberInfo, &$args) {
return TRUE;
}
function Town_after_delete($selectedID, $memberInfo, &$args) {
}
function Town_dv($selectedID, $memberInfo, &$html, &$args) {
}
function Town_csv($query, $memberInfo, &$args) {
return $query;
}
function Town_batch_actions(&$args) {
return array();
}
// For help on using hooks, please refer to https://bigprof.com/appgini/help/workin ... tion/hooks
function Town_init(&$options, $memberInfo, &$args) {
/* Inserted by Search Page Maker for AppGini on 2020-03-31 07:18:51 */
$options->FilterPage = 'hooks/Town_filter.php';
/* End of Search Page Maker for AppGini code */
return TRUE;
}
function Town_header($contentType, $memberInfo, &$args) {
$header='';
switch($contentType) {
case 'tableview':
$header='';
break;
case 'detailview':
$header='';
break;
case 'tableview+detailview':
$header='';
break;
case 'print-tableview':
$header='';
break;
case 'print-detailview':
$header='';
break;
case 'filters':
$header='';
break;
}
return $header;
}
function Town_footer($contentType, $memberInfo, &$args) {
$footer='';
switch($contentType) {
case 'tableview':
$footer='';
break;
case 'detailview':
$footer='';
break;
case 'tableview+detailview':
$footer='';
break;
case 'print-tableview':
$footer='';
break;
case 'print-detailview':
$footer='';
break;
case 'filters':
$footer='';
break;
}
return $footer;
}
function Town_before_insert(&$data, $memberInfo, &$args) {
return TRUE;
}
function Town_after_insert($data, $memberInfo, &$args) {
return TRUE;
}
function Town_before_update(&$data, $memberInfo, &$args) {
return TRUE;
}
function Town_after_update($data, $memberInfo, &$args) {
return TRUE;
}
function Town_before_delete($selectedID, &$skipChecks, $memberInfo, &$args) {
return TRUE;
}
function Town_after_delete($selectedID, $memberInfo, &$args) {
}
function Town_dv($selectedID, $memberInfo, &$html, &$args) {
}
function Town_csv($query, $memberInfo, &$args) {
return $query;
}
function Town_batch_actions(&$args) {
return array();
}
Re: Changing the Filter Tab
ok,
what do you have in the Town_filter.php
what do you have in the Town_filter.php
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
The menus seam to be are working but I don't have the red bold text. I will check again.
-
- Veteran Member
- Posts: 159
- Joined: 2019-02-03 17:26
Re: Changing the Filter Tab
I am ok with the Town_filter. Do you still want to see it?