AnsweredAssumed Answered

Hiding Attach File button when copying change

Question asked by andholmes on Feb 24, 2016
Latest reply on Feb 29, 2016 by andholmes

In order to prevent orphaned files when someone attaches a file and then cancels a change order, we'd like to hide the Attach File button on change orders for a new or copied Change Order.  We've already successfully managed to hide the button on creating a new Change Order, but have not been able to hide it when copying a change order.  SDM treats this like an "update" instead of creating a new Change Order.  We've tried

if ("$args.KEEP.MAKE_COPY" != "1")

{

<PDM_MACRO name=button Caption="Attach Document[!D]" Func="do_attach_doc()" hotkey_name="Attach Document[!D]" ID=btn201 NewRow=yes>

}

 

We've also tried

<PDM_IF "$args.KEEP.MAKE_COPY" != "1">

<PDM_MACRO name=button Caption="Attach Document[!D]" Func="do_attach_doc()" hotkey_name="Attach Document[!D]" ID=btn201 NewRow=yes>

</PDM_IF>

 

Neither work, it doesn't seem to recognize $args.KEEP.MAKE_COPY on the xx_attmnt_tab.htmpl form although this has worked in other areas like detail_in.htmpl where we hide the Incident number until after the Incident has been saved.

 

Thanks,

Andrea

Outcomes