AnsweredAssumed Answered

Button new comment in detail_cr_wf.htmpl

Question asked by SoporteCAcma on Nov 9, 2018
Latest reply on Dec 4, 2018 by SoporteCAcma

Hello community, 

 

In the detail_cr.htmpl form, I have created a new button with the next code:

 

function zlogcomment()
{
popupActivityWithURL(cfgCgi + "?SID="+cfgSID + "+FID=" + fid_generator() + "+FACTORY=" +
"cr" + "+PERSID=" + argPersistentID + "+OP=UPDATE" + "+HTMPL=detail_alg_edit.htmpl" +
"+ACTIVITY_LOG_TYPE=LOG");
}

 

ImgBtnCreate("z_btn100","Añadir comentario","zlogcomment()",true, 0); 

The button works ok, no problem.

 

Now I want to create this button in the detail_cr_wf.htmpl, but it doesn't work. Code used:

 

function zlogcomment()
{
popupActivityWithURL(cfgCgi + "?SID="+cfgSID + "+FID=" + fid_generator() + "+FACTORY=" +
"crwf" + "+PERSID=" + argPersistentID + "+OP=UPDATE" + "+HTMPL=detail_alg_edit.htmpl" +
"+ACTIVITY_LOG_TYPE=LOG");
}

ImgBtnCreate("z_btn100","Añadir comentario","zlogcomment()",true, 0); 

 

 

is it possible? How?

 

Thanks, 

 

Regards,

Outcomes