Menu

How to enable FunctionalCI list on Portal

Anonymous
2012-08-10
2014-05-19
  • Anonymous

    Anonymous - 2012-08-10

    Hi All ,

    I am in deep trouble . I need to get a list of FunctionalCI on the service request for iTop Portal user . User should be able to select the FunctionalCI from the dropdown which raising a ticket . Please help me soon

     
  • TheBigOne

    TheBigOne - 2012-08-10

    Do you really think that you get an answer faster if you post the same into 3 forums?

    You can find a documentation about "how to create additional fields" in the wiki. Read and develop. Another possibility is to buy support ;) I don`t think that someone will code your request just because of 3 open threads.

     
  • Anonymous

    Anonymous - 2012-08-10

    okay .. john doe below is my code which am trying to put in the ticket(model.itop-tickets.php) section .Please help me on same .
    //MetaModel::Init_AddAttribute(new AttributeExternalKey("FunctionalCI_id", array("targetclass"=>"FunctionalCI", "jointype"=>null, "allowed_values"=>new ValueSetObjects('SELECT FunctionalCI WHERE org_id = :this->org_id'), "sql"=>"FunctionalCI_id", "is_null_allowed"=>false, "on_target_delete"=>DEL_MANUAL, "depends_on"=>array())));

    //MetaModel::Init_AddAttribute(new AttributeExternalField("product", array("allowed_values"=>null, "extkey_attcode"=>"FunctionalCI_id", "target_attcode"=>"name", "is_null_allowed"=>true, "depends_on"=>array())));

     
  • Anonymous

    Anonymous - 2012-08-13

    HI Johndoee…

    pls help me get the FunctionalCI list as a drop down on portal so that portal user can select the impacted asset which raising a ticket . Thanks a lot in advance

     
  • TheBigOne

    TheBigOne - 2012-08-13

    Sorry I don`t have the time to write your code :)
    Follow the instructions: http://www.combodo.com/IMG/pdf/iTop_Customization.pdf

    you need to edit the file: /opt/www/itop/htdocs/portal/index.php
    There you need to add the dropdown code.

    Check your logfiles and error output. Enable error_reporting and display_errors for debugging purposes.

    The code you gave me is nothing I can help with. I don`t know what is working and I don`t now where you put the code. You can`t expect any help with two lines of code.

    By the way, I`m not an iTop developer, I just try to help if its possible but in this case you need to provide some more information.

    /Stefan

     
  • Anonymous

    Anonymous - 2012-08-14

    PaVan,

    Any sucess ?

    I have the same question, but with location of user;

     
  • TheBigOne

    TheBigOne - 2012-08-15

    Hi Marcos,

    I assume nobody has ever been in a coding forum? If someone has a question, he comes with code and problems/errors where the others can help. Without any information, nobody can/will/want help.

    What code did you put into which file to which line with which result or problem. What is not working, what is working, whats the output.

    Putting a dropdown can`t be that difficult. The only problem can be the oql query and dependencies. You can find some dropdowns in the portal/index.php. So copy paste and edit is a good starting  point.

    /Stefan

     
  • Anonymous

    Anonymous - 2012-08-17

    Johndoe ,

    I want to add a new time field in the ticket called planned date : please help me with same , I have been making few changes to asset or CI and works fine but when try anything with ticket it doesnt ..any document which would help me understand the architecture of the tool . I have read that customization document and found nothing much . Need more info on how to customize .Please help ..

     
  • Anonymous

    Anonymous - 2012-08-17

    I have got it ..i just had to add below code

    MetaModel::Init_AddAttribute(new AttributeDateTime("planned_date", array("allowed_values"=>null, "sql"=>"planned_date", "default_value"=>null, "is_null_allowed"=>false, "depends_on"=>array())));

    and pass the parameter planned_date in some Zlist …..

     
  • jitsobullet

    jitsobullet - 2014-05-19

    Pavan,

    Did you manage to get the functional CI list to the portal?

    Kind Regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.