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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Action validator for standard windchill actions

VasiliyRepecki
1-Newbie

Action validator for standard windchill actions

Hi.

I need to hide "relatedPartsDocuments" and "relatedPartsCADDocuments" tables from info page of wtpart softtype (an only for this softtype).

How should i define UIComponentValidator not to brake standard behavior of these tables?

I know how i can get action name and softtype id in UIComponentValidator. The question is how not to affect standard display settings for other softtypes?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

View solution in original post

6 REPLIES 6

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

Hi Vasiliy,

Could you clarify how this is the correct answer for the rest of the community?

Thank you,

Jarrett

public class RelatedItemsTablesValidator extends RelatedItemsPartsValidator

{

public UIValidationResultSet performFullPreValidation(UIValidationKey cUIValidationKey,

UIValidationCriteria cUIValidationCriteria,

Locale cLocale) throws WTException

{

UIValidationResultSet resultSet;

if(my conditions)

{

resultSet = ..;

}

else

{

resultSet = super.performFullPreValidation(cUIValidationKey, cUIValidationCriteria, cLocale);

}

}

}

Hi,

You have to use typebased builder to make it specific to SoftType

Hi

I know nothing about "typebased builder"

KD
4-Participant
4-Participant
(To:VasiliyRepecki)

Alternatively you can use this condition to filter sub-type

if(( TypeIdentifierHelper.getType(localWTDocument).toString().equals("WCTYPE|wt.doc.WTDocument|

com.ITCINFOTECH.Agenda ")))//internal name of your subtype

Thanks And Regards,

Kaushik

Top Tags