Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
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.
Solved! Go to Solution.
Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?
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"
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