Forums de discussion

pass value in popup from search continer

thumbnail
Nirav Prajapati, modifié il y a 6 années.

pass value in popup from search continer

Regular Member Publications: 133 Date d'inscription: 25/06/15 Publications récentes
Hello Friends,

I am using Liferay 6.2 CE GA6 with Liferay MVC.

Please help me, I have stuck up in following

When i am click on button then i want to open pop up and also pass USER_ID in this popup and it shows in to popup window page.

For EX. when click on SUBMIT button of one.jsp page then popup is open
and in pop up window shows second.jsp page with the USER_ID from search container of one.jsp page.


Thanks in Advance...!!!!
thumbnail
Andrew Jardine, modifié il y a 6 années.

RE: pass value in popup from search continer

Liferay Legend Publications: 2416 Date d'inscription: 22/12/10 Publications récentes
Hi Niray,

I'm going from memory here as I have not done this in a while, but I think you just need to make sure that the render url that you use for the popoup contains a param with the value you need. So if yo uhave this --

<aui:script>
	var popup;

	function showDetails(url){

		  AUI().use('aui-dialog', 'aui-io', function(A) 
		  {
		      
		      popup = new A.Dialog({

					  title: 'Window Title',

					  centered: true,

					  modal: true,

					  width: 800,

					  height: 250,

				  }).plug(A.Plugin.IO, {uri: url}).render();
		  });
	}
</aui:script> 


.. then you need to make sure that the url you pass has a parameter for the user id. Then you just access it in your JSP as you would any other request parameter.