on 2013 May 20 10:27 AM
Hi,
I have created an extension collection on the Projects module and want to make it mandatory. I used Page Customization to make the collection mandatory, but the attribute is not geeting applied to the field.
How can I make the collection mandatory, I dont want to make the field through the extension attribute.
Please advice
Regards,
Pankaj
Request clarification before answering.
Hi Pankaj,
You can write a script to make the collection mandatory. Try this:
ExtensionCollectionIfc extCollection=doc.getExtensionCollection("XXXXXXXX");
if (extCollection==null || extCollection.size()==0)
{
throw new ApplicationException("ERROR_ MESSAGE");
}
This would make the collection mandatory.
Hope this would resolve your issue.
Regards,
Kumud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.