Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello all,
I have added an action to anonymize a user from Windchill and LDAP. I have also added the action in the pop up menu on the Participant administration page. However, I want that the action should be performed even when the user is not selected. This is similar to the OOTB delete action already implemented by PTC. Does anyone have any suggestions on how to do this? Any comments or ideas will be appreciated. Thanks,
I am adding the screenshots for the error message and the action .
Thanks again,
Ramsha
Hi @RK_10348291
Have you try to use filters that are used for delete action?
I would try it.
<action name="deleteParticipant" enabledwhensuspended="true" ajax="row" uicomponent="deleteParticipant" >
<command onClick="PTC.participantAdministration.utils.selectRequiredAndConfirmation(event,target,table,'com.ptc.windchill.principal.administration.administrationResource.CONFIRM_DELETE_FROM_WINDCHILL_AND_DS')" method="deleteParticipant" class="com.ptc.windchill.principal.administration.ParticipantCommands"/>
<includeFilter name="deleteActionValidator"/>
<includeFilter name="deleteFromWindchillAndDSActionValidator"/>
<includeFilter name="readOnlyLdapActionValidator"/>
<includeFilter name="participantAdminActionFilter"/>
<includeFilter name="disconnectedPrincipalActionsFilter"/>
</action>
PetrH
Hi @RK_10348291
Yes.
Throw an exception in your processor code if there are more then two selections. '
next one: crate own custom filter
here is example how to create own custom action filter
PetrH