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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Translate the entire conversation x

DistributionTarget Table right click on row

11025060
11-Garnet

DistributionTarget Table right click on row

Remove action on table header is pointing to our custom class, similarly i want the remove action on right-click of a row also to point to the same class. 

11025060_1-1768233751984.png

 

 

1 REPLY 1
TDT
16-Pearl
16-Pearl
(To:11025060)

Hi @11025060,

 

The disassociateDistributionTarget action is the same action used in two different models: the distributionHistory table toolbar actions and the distribution table nmActions.

 

In the screenshot you shared, it is indicated that the disassociateDistributionTarget action in the distributionHistory table toolbar is hidden by a filter. However, in OOTB behavior, this action is validated by AssociateDistributionTargetsActionValidator, not by a filter.

 

If a filter has been implemented in your system, it does not appear to be the correct approach. The recommended implementation is to extend AssociateDistributionTargetsActionValidator with a custom validator. Using a filter effectively bypasses the OOTB validator logic and replaces it with custom filtering. However, it is possible that the developer who implemented this solution may have reimplemented the OOTB validator logic within the custom filter.

 

I have registered the validator on the disassociateDistributionTarget action, and the validator is being triggered correctly both at the table toolbar level and at the object row level.

 

TDT_0-1768406775852.pngTDT_1-1768406821895.png

 

 

 

Announcements
Top Tags