Skip to main content
5-Regular Member
February 18, 2023
Question

Performing an action without selecting the object

  • February 18, 2023
  • 1 reply
  • 1683 views

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 

 

 

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
February 20, 2023

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

5-Regular Member
February 20, 2023

Hi @ 

 

I tried by adding the filters but it didnt work. Any other suggestions?

HelesicPetr
22-Sapphire II
22-Sapphire II
February 20, 2023

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

CS299819

 

PetrH