Adding a company and contact person field....

Christian Robottom Reis kiko at async.com.br
Thu Feb 19 18:52:34 UTC 2004


On Thu, Feb 19, 2004 at 04:47:21PM +0000, MKey at atmi.com wrote:
> My problem is now getting this database code into the main Bugzilla code. I
> think I have sussed the link between the CGI's and the Templates, but I am
> having trouble getting the query.cgi page to display my Customers.
> Does anyone have any info on what I need to add into the query.cgi page ? I
> basically want it to look like the Product and Component section - where
> you click on Product A and it only shows Components for Product A.
> I have the template created with the space for the lists.....I just cant
> fill them.

I [re]wrote the query.cgi Javascript; it's not simple but it should be
possible to reuse most of it with a different set of arrays. Basically
you need to follow the code in query.cgi that builds the
products/versions list (they come from the versioncache, but you'll want
to grab yours from the database if you're not storing a versioncache for
them) and then tweak the JS to fill out the select menus accordingly.

If you have specific questions about this or that part of the code, I
can try and answer them.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331



More information about the developers mailing list