[racktables-users] Help needed in developing RackTables Software Manager

  • From: Ernest Shaffer <ernest.shaffer@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Thu, 2 Dec 2010 23:52:31 -0800

Does anyone have any good notes on how RackTables functions and realms work so 
I can create a new  Main menu and realm in RackTables similar to Objects or 
Files?

I'm trying to make a software manager in RackTables that will allow tracking 
installed software and license information.  Rather then creating a stand-alone 
plugin, I figured it might be better to make it fully integrated with 
RackTables.  I wanted to make it similar to the Objects section creating a new 
Table called Software with basic information about the Software Titles (like 
RackObject), and with a new realm called software.  I want to allow linking 
files to each software title similar to objects.  I also wanted to allow liking 
the Software Titles to objects just like linking files to objects.  I was able 
to get as far as setting up the Software -> Titles -> View tab which pulls from 
the new Software table using $SQLSchema and built in functions (modified), but 
now I can't figure out how to get the View tab link to get generated correctly 
for my software title (summary page).

So I figured I'd ask the developers if they have any notes or suggestions on 
getting a new Main section added with new realm. 

Also, should it be possible to get attributes added to my Software titles just 
like objects, utilizing the built in functions so you can use the Configuration 
Attributes Edit map to link attributes to software titles?  Or should I just 
look at creating my own attributes functions/tables to add custom attributes to 
these software titles?  I was hoping that the $realm variable would have be 
used some how to allow duplicate id values that exist between the RackObject 
table and my new Software table, but it doesn't look like it does this, or I'm 
just not understanding this part yet and my code is just broken.  (see pictures)

Here is where I'm stuck now.

Main page: Software: dynamic_title_decoder() failure

should be:
Main page: Software: Windows Server 2008 R2

My Software TItle View tab link looks like this:
http://localhost/racktables/index.php?page=title&tab=default

But it should be:
http://localhost/racktables/index.php?page=title&tab=default&object_id=1

So using the Object View tab as an example, I can't figure out where in the 
code for the &object_id=1 or in my case the &title_id=1 gets appended?

Attached are some screen shots of my progress.  You'll notice that the 
attributes for the software title are actually pulling from the attributes of 
the object with the same id as the software title in my new software table.

Thanks for any help you can provide.

Ernie

PNG image

PNG image

PNG image

Other related posts: