New Field

  • mtstravel

    mtstravel - 2007-03-05

    I am trying to add a new text field to the Computers page.  We want a text field to enter the User of the computer.  We do not want to use the employee button for anyone except the IT deparment members.  So far:

    I have added the following line to the modules/Computers/edit.php: 

    $form->addElement('text', 'computer_User', lUSER.':',array('size'=>30));

    I added the following info to the inc/classes/Computers.php:

    var $User;                            // string(100)





                'list'=>array('format'=>'%s', 'fields'=>'Computers_User'),

                'filter'=>array('format'=>'%s', 'fields'=>'Computers_User')),

    I also created the table "User" in the Computers part of the database.

    The text put into the field will not save, and I get the following error when I try to check the box to make the User column visible in the computer list:

    DB_DataObject Error: joinAdd: called without an object

    Any help would be appreciated.  I am very much a noob.  I did all these changes by reading other posts.  But now I am against the wall.

    • Jay

      Jay - 2008-11-27

      Add the field to /inc/schema/openit.ini

      ex: User = 2


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks