cancel
Showing results for 
Search instead for 
Did you mean: 

Handling Mandatory Fields

khinendra
Champ on-the-rise
Champ on-the-rise
I am Creating  a file throgh web client and if there are some mandatory fields then until we enter value for those fields, "OK" button doen't enable, but if we upload any file programatically(thorugh webservice API) without applying mandatory properties its allowas to upload it. whereas it should through some exceptin that "Mandatory Field Required".


Can anybody help that how to resolve this.

Thanks,
Khinendra Bisen
2 REPLIES 2

kbonnet
Champ in-the-making
Champ in-the-making
in your content model you have lines like:

<mandatory>true</mandatory>

This mandatory tag has an extra attribute: enforced. If you say

<mandatory enforced="true">true</mandatory>

then you will not be able to check in content that does not have an mandatory field filled. That would mean that you can only check in content via webservices or REST interfaces. Via the web interface you always first check in the content and provide metadata next.

Hope this helps.

Koen

khinendra
Champ on-the-rise
Champ on-the-rise
Hi Koen,

It worked.

Thanks.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.