How to disable download button for the report?

(5 posts) (2 voices)

Tags:

No tags yet.

  1. jasmondluk, Member

    May I know how to disable download button for the report?

  2. myDBR Team, Key Master

    if you want to disable the export functionality for a report, you can do it per report via command:

    select 'dbr.export.options', 'disable','pdf,excel,csv,sql';

    If you want to disable export on all report, you can override the $mydbr_defaults['export']['export_choices'] in user/defaults.php

    --
    myDBR Team

  3. jasmondluk, Member

    Thanks. What about the copy to clipboard icon? Can it be disabled too?

  4. myDBR Team, Key Master

    You can use:

    select 'dbr.search', 0;

    which will remove the generic search bar and the copy to clipboard icon.

    If you want to remove just the clipboard icon, you can do:

    select 'dbr.javascript', '$(".copytocb").remove();', 'onload';

    --
    myDBR Team

  5. jasmondluk, Member

    Thank you


Reply

You must log in to post.