beforeinsert / beforechildinsert cq:listener does not fire up | Community
Skip to main content
October 16, 2015
Solved

beforeinsert / beforechildinsert cq:listener does not fire up

  • October 16, 2015
  • 3 replies
  • 869 views

Hi!

I have the following cq:editConfig file:

<?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"    jcr:primaryType="cq:EditConfig"><cq:listeners        jcr:primaryType="cq:EditListenersConfig"        afteredit="REFRESH_PAGE"        beforeinsert="function (){ return OrderModule.prototype.checkCountBeforeAdd(); }"        beforedelete="function (){ return OrderModule.prototype.checkCountBeforeRemove(); }"            /></jcr:root>
'beforedelete' event is fired up ok, but 'beforeinsert' doesn't not fire up, 'beforechildinsert' neither.

Could you please direct me to the correct direction?

 

Thank you in advance.

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 Sham_HC

You need to install service pack & couple of hotfix. Please wait till sp3 or file a support request.

3 replies

edubey
Level 10
October 16, 2015

Are you seeing any JS error, Did you tried adding a console log statement to confirm?

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

You need to install service pack & couple of hotfix. Please wait till sp3 or file a support request.

October 16, 2015

Thank you for your answer!

Yesm I have console.log() in checkCountBeforeAdd() function

   checkCountBeforeAdd : function() {
            console.log("checkCountBeforeAdd");

 

But I do not see any logs nor errors in console.