Skip to main content
1-Visitor
July 19, 2017
Question

To add a custom apply button.

  • July 19, 2017
  • 0 replies
  • 1732 views

Hi,

 

For CAPA, in the CAPA Investigation activity > Enter Investigation Details > Edit Actions > Add Row > there's an OK and Cancel Button. I need to add an Apply button there. 

 

In the actionModel.xml page by adding the applyButton entry in the NoStepWizardButton I am able to get an Apply Button.

<model name="NoStepsWizardButtons">
<action name="applyButton" type="object"/> <!--ExtraApplyButton-->
<action name="okButton" type="object"/>
<action name="cancelButton" type="object"/>
</model>

 

But the functionality of the Apply button is simislar to that of OK button. Where should I add the below ApplyButton code, so that my Apply Button works as OOTB Apply button.

<action name="applyButton" id="PJL_wizard_apply" resourceBundle="com.ptc.core.ui.navigationRB">
<command class="" method="" windowType="page" url="javascript&colon;onApply()"/>
</action>

 

Attaching the relevant screenshots(highlighted with bold).

Thank you.

 

Regards,

Ash