Kellogs - 2014-10-29

Hi all togehter,

yesterday I went through the tutorial of "Creating a new class of CI: Monitor" again. I did everything the way the tutorial discribes. But now i have two problems:

I was setting up a development Instance, build an empty module, went through the toolkit and then the setup again. Of cource, I could not see the monitor, thats why i filled the datamodel.sample-add-class.xml with the sugested values, mentioned in the tutorial.

After that, I went through the toolkit and then the setup again, and could seen the Monitor Item. so far so good.
From earlier tries, I know, that after installing the monitor Module, I coould make a new CI Monitor. Everything works fine, values could be selected, but the was no chance, to select a Model, which depends on the Brand. Before installing the Monitor item, i could select a brand and a model, in the Demo Dateabase i.e. Hp Swtich an Hp Switch Model.

After installing the Monitor Module, i can add new Models, and i can see these new added models in phpMyAdmin, but in the webinterface, i cant see any Model Model, which i added before. They are written into the databasse, but they will show up in the Webinterface. In other words, it means, that the new added Model has to be re-added every time, i create a new Monitor. What is wrong with taht, is there something wron with my work or with the tutorial?

Teh second problem is, that i can only link this new monitor Item to a contact, but not t a PC. This is stupid, because the Monitor belongs to the pc and not to the User. BTW, if i follow the dependencies, i can only see my contact, but not the linked Monitor.

Therfore I looked into the admin section and hte Datamodel, where the Monitor can be found below Physical Device (PhysicalDevice) as Monitor (Monitor). I thought, that it might have to do something with the upperclass and put the Monitor to the parent Connectable CI (ConnectableCI). Again there was not way to link the new monitor to an Item like a PC. I looked in the XML Data Model Reference and found the tag: <is_link>1</is_link>, but it did not work.

so can anyone help me with these Problems, because it does not make sense to link a Monitor to a contact and link the contact to an functional item. Maybe there is a tutorial, which i havend found yet. And why is the dropdown list Model not selecteable, allthougt it is written into mysql?

Greetings from Germany

Kellogs