Jump to content
Sign in to follow this  

Add Log Comment button into detail cr form

Recommended Posts

Hi everyone,

I have a request from my customer to add "Log Comment" button into detail cr form. I tried adding below code into detail_cr.htmpl but it does not work. Could anyone give me some tips?


if ("$env.NX_EDIT_INACTIVE" != "No" || (typeof main_frame.argActive != "undefined" && main_frame.argActive == "1"))
<PDM_MACRO name=menuItemLocal label="Log_Comment..." function="JavaScript: popupActivityWithURL('\" + query_str1 + \"LOG\" + alg_edit_htmpl + \"')">


Thanks in advance!


Share this post

Link to post
Share on other sites


try this one:

function zAlgPopup(aty, htmpl) {
	var alg_url = window.cfgCgi + "?SID=" + window.cfgSID + 
				"+FID=" + window.fid_generator() + 
				"+FACTORY=cr" + 
				"+PERSID=" + window.argPersistentID + 
	if (typeof(htmpl) == "string") {
		alg_url += "+HTMPL=" + htmpl;
<PDM_MACRO name=button Caption="Log Comment" Func="zAlgPopup('LOG', 'detail_alg_edit.htmpl')" hotkey_name="LOG[G]" ID="LOG">

button should located between dtlForm and dtlStart.

Edited by cdtj
  • Thanks 2

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this