No Records Found

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
harbri
User
Posts: 3

No Records Found

Post by harbri »

In a master/detail relationship, is there any way to change the standard "No records found" message for the details table to include the detail table name, eg, No DetailTable records found".

Whilst it's is obvious to me what this message means, it isn't always obvious to other users of the system, particularly when there are multiple detail tables.

If the message could indicate which table it actually refers to, this would be extremely helpful.


mobhar
User
Posts: 11765

Post by mobhar »

To change that message, then you may simply use the following code in "Page_Load" server event that belongs to your detail table:

Language()->setPhrase("norecord", "No DetailTable records found.");


danielc
User
Posts: 1601

Post by danielc »

To add your tablename, you may customize the page *preview.php. Find the class .ewDetailCount in the detail table preview page and add your table name here, like:
(<?php echo CurrentPage()->TableName . " - " . $Language->Phrase("NoRecord") ?>)


harbri
User
Posts: 3

Post by harbri »

Thanks mobhar & danielc. Your help is much appreciated.


Post Reply