Handling Mandatory Fields
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2009 04:10 AM
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
Can anybody help that how to resolve this.
Thanks,
Khinendra Bisen
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2009 08:54 AM
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
<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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2009 02:02 AM
Hi Koen,
It worked.
Thanks.
It worked.
Thanks.
