Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

How to update protected primaryType using extjs widget ?

Avatar

Level 8

I have created a custom widget using ext js and using that I am saving some properties in a node in jcr.

but it saves it as jcr:primaryType sling folder however I want to change that jcr:primaryType to my custom node type.

i tried writing like " jcr:primaryType" :"customNodeType" or "nodeType":"customNodeType" but its not working?

please help

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

Please note that 

A protected property is one which cannot be modified (i.e. have child nodes or properties added or removed) or removed from its parent through the JCR API.

Link:- http://jackrabbit.apache.org/jcr/node-types.html

Also have a look at this old forum thread:-

Link:- https://forums.adobe.com/thread/1147843

 

And agreeing with Scott that "Ext JS is for controls on a dialog in Classic UI - not to modify JCR Nodes and Props. "

I hope this helps you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

2 Replies

Avatar

Level 10

What API are you using to modify the JCR? Ext JS is for controls on a dialog in Classic UI - not to modify JCR Nodes and Props. 

Avatar

Correct answer by
Administrator

Hi 

Please note that 

A protected property is one which cannot be modified (i.e. have child nodes or properties added or removed) or removed from its parent through the JCR API.

Link:- http://jackrabbit.apache.org/jcr/node-types.html

Also have a look at this old forum thread:-

Link:- https://forums.adobe.com/thread/1147843

 

And agreeing with Scott that "Ext JS is for controls on a dialog in Classic UI - not to modify JCR Nodes and Props. "

I hope this helps you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni