https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× Welcome to the ToolsJX forum!


Search only after choosing the search field

More
12 years 7 months ago #1281

searching talking painfully longtime when the search categories is "All fields"..sometime it gives "Fatal error: Maximum execution time of -- seconds exceeded"..when choosing the field the query executed vey quick..iam running the software in intranet and few people accessing it..so my client suggested to disable the search button till a field is chosen..or make one field as a default instead of the "all field".. please help
and hope i made my case clear

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #1282

Hi,

You can use Advanced Filters option. You will find it in Search Form section. Then you tick the columns which you want to show search form.

If it does not work for you, you will have to hack a bit. But i suggest that you try Advanced Filters first.

Regards,
Tomaž

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #1284

I tried the Advanced filter but is not practical as I have 12 fields and listing all of them looks odd..
help in hacking it will be appreciated...just to removed the top "All fields" and replace it with the first field in the list

thank you for the quick reply

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #1288

Go to file components/com_grid/layouts/GridView.php and comment out lines 53 to 69:

//		$field['search_menu'] .= "<option value=\"0\"";
//
//		if ("$this->searchField"=="0") {
//
//			$field['search_menu'] .= " selected";
//
//		}

It should do the job.

Regards,
Tomaž

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #1291

I think you ment from 53-59
and it works perfectly

appreciate you help again

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.171 seconds

Contact Us

Contact us on Discord

Contact us on Facebook