Hello All,
Is it possible to set a custom attribute value entered to folder(s) when user create a document?.
This property value will be same for all documents in this folder structure.
Kindly suggest.
Thanks,
Mahesh.
You could follow this approach:
Based on your description it makes more sense to first set the attribute value on the folder, and then configure the document creation to copy the value from the folder. You can do that using $dqlvalue(<dql to retrieve value from parent folder>)
If the requirement is really, as bachm3 guesses, for the attribute value to be stored in the folder and inherited by the contained documents, then the best approach is to define a D2 Inheritance configuration and reference it in the document's Creation Profile.
Hello Pedro and Bachm,
Thank you for the inputs. we will try this approach.
One more question, is it possible to apply security for folder using d2sdk?. We are able to do this for documents but it is giving error for folder.
Kindly guide on how to achieve this
Thanks.
Calling D2CoreMethod on the folder should do it.
Thank you. We are using security template which was not mapped to context. It was causing the apply security to fail.
It is working fine now.