Problem with notification

Hello Community!!

 

I have 2 sections appoint to contact and I regiter this sections in sysModule table and all works ok but the problem is the menssages on the Feed. 

If I put a menssage to ahoter user. When the user want open the message (in the notification Center) I get the function:

 

Terrasoft.ModuleUtils.getEntityStructureByName(entitySchemaName); 

 

TypeError: entityStructure is undefined NetworkUtilities.js:101:8

 

Any know if need register the section in other table related with Feed Notifications?

 

Regards,

 

Like 0

Like

3 comments

Dear Federico,

First of all, we recommend you to create sections via the section wizard, since creating them the way you have described can lead to various conflicts in a database structure. Also, it is not recommended to create two sections, that point to the exact same object for the same reason.

Moreover, we recommend you to debug your customization using your browser's developers tools in case you still want to proceed working with your customization. Also, you can refer to the development documentation for more information.

Best regards,

Matt Watts

Matt Watts,

 Thank you! Can you please give me the code of the function?

Terrasoft.ModuleUtils.getEntityStructureByName(entitySchemaName); may be can check the code to see the error.

Federico Buffa,

You can find the needed method in the ModuleUtils schema of the NUI package.

Here is the code sample you need, but you can refer to the schema if needed.

getEntityStructureByName: function(entitySchemaName) {
			var entityStructure = this.entityStructure || {};
			return entityStructure[entitySchemaName];
		},

Best regards, 

Matt

Show all comments