This topic is locked
[SOLVED]

How do you change the default text string "Nothing to see. Run some search."

9/13/2025 9:24:14 AM
PHPRunner General questions
S
salus2 author

Does anyone know how to change the default text string "Nothing to see. Run some search." when using the "Hide Data Until Search" feature?

ChatGPT 9/13/2025

Yes, you can change the default text string "Nothing to see. Run some search." in PHPRunner when using the "Hide Data Until Search" feature by modifying the language file or using custom code.

Here’s how you can do it:

  1. Using Language File:

    • Locate the language file associated with your project. This is usually found in the languages directory of your PHPRunner project.
    • Open the appropriate language file (e.g., English.php).
    • Search for the string "Nothing to see. Run some search." and replace it with your desired text.
    • Save the changes and re-upload the language file if needed.


  2. Using Custom Code:

    • Go to the Events tab in PHPRunner for the specific page where you want to change the message.
    • In the Before Display event, you can use the following code to change the message:

    $xt->assign("no_records_message", "Your custom message here.");
    • Replace "Your custom message here." with the message you want to display.


  3. Rebuild Project:

    • After making these changes, make sure to rebuild your project so that the changes take effect.



By following these steps, you should be able to customize the message that appears when there is no data to display due to the "Hide Data Until Search" feature in PHPRunner.

S
salus2 author 9/13/2025

I'm using 11.1 so not sure about the languages directory, would think that's now stored in PHPR database?

Tried option 2, rebuilt and uploaded all files, default text remains.

Don't think this matters but this is an API interface, not a SQL interface.

img alt

S
salus2 author 9/13/2025

Perfecto!

Thanks!