Announcement

Collapse
No announcement yet.

Can I change 'Records not found' for 1 grid only

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I change 'Records not found' for 1 grid only

    Hi. I have a grid that shows a very infrequently avail record or records for a user. So usually this grid is empty. Is there a way to change the 'Records not found' text which is shown in this one grid? I don't want to change it for all the other grids. What I want is to add some better language explaining a little clearer to the user what this means.

    Anyway, just seeing if anyone knows how I can access and change this statement.
    Thanks,
    Jamie

  • #2
    I haven't tried, but you might try this:

    Make the grid in a separate block. In the onload event you test manually if the dataset is empty. If so, you can use a macro to hide the block. You can also add a separate block with your own message to show if the dataset is empty. You must hide it when there's data to show.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Once you have deployed the project, you can modify en_us.lang file (or the one you are using). Find lang_errm_empt line and change its value... this will affect all the grids in the project. In case you only want to affect an specific application, you may modify your_app_name_.class.php file by changing the variable name and adding that line in en_us.lang file as well.


      Haven't tried but should work.

      Comment


      • #4
        Yes, but the disadvantage is that you have to redo this every time you have changed your application and re-uploaded.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          That is right.

          Comment

          Working...
          X