CA Service Management

  • 1.  Remove menubar on contact detail

    Posted Feb 29, 2016 04:41 AM

    Hi,

    I want to to remove menubar on detail_cnt.htmpl. I've added this following bold code but this code remove from all detail screen and also there is a space where there was menubar before. How can I remove completely?

     

    if (w.propFormName1 == "list" || (w.propFormName1 != "detail" && w.propFactory != "cnt")) {

    if ( ! ahdtop.isLogReader ){

    <PDM_MACRO name=menubarItem label="Filee" id=mFile>

    <PDM_MACRO name=menubarItem label="View" id=mView>

    <PDM_OBJECT>

    <PDM_IF "$env.NX_CMDB" != "STANDALONE">

    if ( hasModifyAuth && isTicketDetail ) {

    <PDM_MACRO name=menubarItem label="Activities" id=mActivities>

    }

    </PDM_IF>

    </PDM_OBJECT>

    <PDM_OBJECT>

    <PDM_IF "$env.NX_CMDB" != "STANDALONE">

    // Add Action menu only when we are not creating new and ticket is active

    if ("$env.NX_EDIT_INACTIVE" != "No" || (typeof main_frame.argActive != "undefined" && main_frame.argActive == "1")){

    if ( hasModifyAuth && isTicketDetail && ! isCreatingNew ) {

    <PDM_MACRO name=menubarItem label="Actions" id=mAction>

    }

    }

    </PDM_IF>

    </PDM_OBJECT>

    <PDM_MACRO name=menubarItem label="Search" hotkey=e id=mSearch>

    <PDM_OBJECT>

    if ( ( w.propFormName1 == "list" ||

           ( w.propFormName1 == "detail" &&

             w.propFormName3 == "ro" ) ) &&

         typeof w.rptName != "undefined" && w.rptName[0] != "no" &&

         w.rptName[0] != "" ) {

      if ( typeof w.argSaveSqlClause == "string" &&

          ! w.argSearchSqlClause.length &&

          w.argSaveSqlClause.length )

        w.argSearchSqlClause = w.argSaveSqlClause;

      if ( typeof w.argSearchSqlClause == "string" &&

          w.argSearchSqlClause.length > 0 ) {

    <PDM_MACRO name=menubarItem label="Reports" hotkey=o id=mReports>

      }

    }

    </PDM_OBJECT>

    }

    <PDM_MACRO name=menubarItem label="Window" id=mWindow>

    <PDM_OBJECT>

    if ( ! ahdtop.isLogReader ){

    <PDM_MACRO name=menubarItem label="Help" id=mHelp>

    }

    </PDM_OBJECT>

    }

    if (w.propFormName1 == "list" || (w.propFormName1 != "detail" && w.propFactory != "cnt")) {if ( ! ahdtop.isLogReader ){<PDM_MACRO name=menubarItem label="Filee" id=mFile><PDM_MACRO name=menubarItem label="View" id=mView><PDM_OBJECT><PDM_IF "$env.NX_CMDB" != "STANDALONE">if ( hasModifyAuth && isTicketDetail ) {<PDM_MACRO name=menubarItem label="Activities" id=mActivities>}</PDM_IF> </PDM_OBJECT><PDM_OBJECT><PDM_IF "$env.NX_CMDB" != "STANDALONE">// Add Action menu only when we are not creating new and ticket is activeif ("$env.NX_EDIT_INACTIVE" != "No" || (typeof main_frame.argActive != "undefined" && main_frame.argActive == "1")){if ( hasModifyAuth && isTicketDetail && ! isCreatingNew ) {<PDM_MACRO name=menubarItem label="Actions" id=mAction>}}</PDM_IF> </PDM_OBJECT><PDM_MACRO name=menubarItem label="Search" hotkey=e id=mSearch><PDM_OBJECT>if ( ( w.propFormName1 == "list" ||       ( w.propFormName1 == "detail" &&         w.propFormName3 == "ro" ) ) &&     typeof w.rptName != "undefined" && w.rptName[0] != "no" &&     w.rptName[0] != "" ) {  if ( typeof w.argSaveSqlClause == "string" &&       ! w.argSearchSqlClause.length &&      w.argSaveSqlClause.length )    w.argSearchSqlClause = w.argSaveSqlClause;
      if ( typeof w.argSearchSqlClause == "string" &&      w.argSearchSqlClause.length > 0 ) {    <PDM_MACRO name=menubarItem label="Reports" hotkey=o id=mReports>  }}</PDM_OBJECT>
    }
    <PDM_MACRO name=menubarItem label="Window" id=mWindow><PDM_OBJECT>if ( ! ahdtop.isLogReader ){<PDM_MACRO name=menubarItem label="Help" id=mHelp>}</PDM_OBJECT>}



  • 2.  Re: Remove menubar on contact detail
    Best Answer

    Posted Feb 29, 2016 06:08 AM

    Hi,

    in stead of modifying the above code, you better add the tag menubar=no on the link that call this form.

    Hope this help.

    Regards,

    /J



  • 3.  Re: Remove menubar on contact detail

    Posted Feb 29, 2016 06:49 AM

    Thank you, it helps. I have one more question. Does it possible to remove the space?

    Regards,

    Cansu.

    contact detail.png



  • 4.  Re: Remove menubar on contact detail

    Posted Feb 29, 2016 10:22 AM

    never tried as I like the blue

    as I recall,the menubar is displayed in a frame so removing it may not be easy and may have side effect.

    /J