How to update protected primaryType using extjs widget ? | Community
Skip to main content
Hemant_arora
New Participant
August 16, 2016
Solved

How to update protected primaryType using extjs widget ?

  • August 16, 2016
  • 2 replies
  • 2141 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

2 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
August 19, 2016

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
smacdonald2008
New Participant
August 16, 2016

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.