cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Performing an action without selecting the object

RK_10348291
5-Regular Member

Performing an action without selecting the object

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 

 

 

3 REPLIES 3

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

RK_10348291
5-Regular Member
(To:HelesicPetr)

Hi @ 

 

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

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

Announcements

Top Tags