Forums de discussion

Liferay 7 SearchContainer with RowChecker in Dialog

Robert Meissner, modifié il y a 7 années.

Liferay 7 SearchContainer with RowChecker in Dialog

Junior Member Publications: 76 Date d'inscription: 26/02/15 Publications récentes
Hi,

i am using a SearchContainer with a RowChecker in a Dialog box. When clicking on a row-Checkbox, i get
Uncaught TypeError: Cannot read property 'one' of null(…) 

on
selectAllCheckBox = instance.get('secondaryBar').one(instance.get(STR_SELECT_ALL_CHECKBOXES_SELECTOR));


I am using

	Liferay.Util.openWindow({
		id: '<portlet:namespace />' + dialogID,
		title: Liferay.Language.get(title),
		dialog: {
			destroyOnHide: true,
			width: myWidth,
			height: myHeight,
			after : {
				render: function(event) {
					<portlet:namespace />renderBox(renderURL, dialogID + ' .modal-body');
				}
			}
		}
	});


The same code works outside of the modal dialog. Is it a known problem?
thumbnail
Parth Ghiya, modifié il y a 7 années.

RE: Liferay 7 SearchContainer with RowChecker in Dialog

Junior Member Publications: 35 Date d'inscription: 02/07/13 Publications récentes
Hi Robert,

I Dont think this is issue regarding modal box.

You are getting null value of
instance.get('secondaryBar').

Would you share here that snippet where instance is defined & The JSP ?