AnsweredAssumed Answered

Remove menubar on contact detail

Question asked by melis.yazici on Feb 29, 2016
Latest reply on Feb 29, 2016 by jmayer

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>}

Outcomes