Menu

How to make a mandatory on the assets list portal user?

barakbar
2020-12-17
2021-03-09
  • barakbar

    barakbar - 2020-12-17

    Hii,

    I have tried adding this script but it doesn't have any effect,

    Thank you,
    Kind Regard.

     
  • barakbar

    barakbar - 2020-12-17

    i want to make thisAssets (FunctionalCI) mandatory,
    can anyone help?

     

    Last edit: barakbar 2020-12-17
  • barakbar

    barakbar - 2020-12-17

    Hello Vdumas ,

    can you help me to make a script for mandatory FunctionalCI in Portal user?or can you show me where functionalCI Located?

     
  • barakbar

    barakbar - 2020-12-18

    Hii,

    can anyone give me some clue for the mandatory FunctionalCI list on Portal User?
    because i dont understand

     
  • barakbar

    barakbar - 2021-01-07

    hii.

    I've tried adding the following script in main-itop.php, then an error like this happened?
    i want to make mandatory on fuctionalci,
    how to solve this?

     

    Last edit: barakbar 2021-01-07
  • barakbar

    barakbar - 2021-01-07

    Thanks, the problem solved

     
    👍
    2
  • barakbar

    barakbar - 2021-02-17

    Hii,

    apologize in advance, I will provide a script for you to add to itop so that your FunctionalCI can become mandatory.
    I have tried adding the syntax:

    <mandatory>true</mandatory>
    <data-field-flags="Mandatory"></div>
    <is_null_allowed _delta="redefine">false</is_null_allowed>
    

    but all failed nothing worked,

    vincent said "Relationship cannot be made mandatory up-front, it can only be checked on submission"
    and i am trying to find the logic of functionalci and i find it in
    itop/datamodel/2.x/itop-ticket /main.itop-ticket.php.

    so you can added this script in itop/datamodel/2.x/itop-ticket/main.itop-ticket.php you can add it at the bottom line

    //Mandatory FunctionalCI
    
    public function DoCheckToWrite()
        {
            parent::DoCheckToWrite();
            $oCIsSet = $this->Get('functionalcis_list');
            if $oCIsSet ->Count() == 0)
            {
            $this->m_CheckIssues[] = Dict::Format('Class:lnkFunctionalCIToTicket/Attribute:functionalcis_list');
            }
          }
    

    thanks,

     
  • Pierre Goiffon

    Pierre Goiffon - 2021-03-09

    Hello,
    NEVER modify iTop core files directly : this will make updates really complicated. iTop has an integrated module system which allows to customize almost every aspect of the application, you should use this.

     

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.