User Extension

(3 posts) (2 voices)
  1. RedFire, Member

    ive created a user extension, but ive problems to load a javascipt that i need for the extension. The javascript-File is not shown into the header of the html-file.
    I`ve created the user extension as followed:
    *create an folder in "*/mydbr/user/extensions" with the name of extension
    *create the php- and the javascript-file into that new folder
    The php-file(with the function Ext_Test( $id, $options, $dataIn, $colInfo )) only echo a small html and javascript test
    *give the folder and the files rights for the webserver
    *edit the "*/mydbr/user/extensions/extensions.php" as followed:
    'Test' => array( 'name' => 'Test Example', 'enabled' => true, 'autoload' => 1, 'php' => 'Test.php', 'row_by_row_initialization' => '', 'row_by_row_data_row' => '', 'row_by_row_finish' => '', 'single_pass_call' => 'Ext_Test', 'javascript' => array('test.js'), 'css' => array('test.css'), 'cmds' => array( array( 'cmd' => 'dbr.test' ), ) ), );

    *in a report i run the code:
    select 'dbr.test'; select '12345';

    The html-code from the Test.php will be generate, but the test.js will never load.

    (Sorry for my bad english)

    Have someone an idea?

  2. myDBR Team, Key Master

    If you have an extension which uses JavaScript, set extension's 'autoload' to 0 and include full path to the js file (user/extensions/test/test.js).

    To enable the extension in the report, check it from the 'Edit report' ->Report extensions.

    myDBR Team

  3. RedFire, Member

    Thx for the fast response!! Now it works!!! I love myDBR! :-)


You must log in to post.