Fórumok
How to set the value to porltet parameter through AUI AJAX...
Pravin s, módosítva 9 év-val korábban
How to set the value to porltet parameter through AUI AJAX...
New Member Bejegyzések: 10 Csatlakozás dátuma: 2014.12.10. Legújabb bejegyzések
Hi
I Can Get all the List of Values through AJAX Request and I Cant able to set the Values to portlet parameter.. Instead it consider as String..
Here my output....
I tried in both either <portelt:renderURL> and PortletURL.. but not working..
Can Any one Help me please
Regards
Pravin Durai
I Can Get all the List of Values through AJAX Request and I Cant able to set the Values to portlet parameter.. Instead it consider as String..
var surveyList = "";
A.Object.each(pData,function(item,i){
//console.log(item.surveyId);
console.log(item.surveyName);
//A.one("#ex").html("Hello1 world"+item.surveyName+"");
surveyList += '<div id="${data.getSurveyId()}">'
+''
+' <% PortletURL editSurvey=renderResponse.createRenderURL(); editSurvey.setParameter("surveyId", "'+item.surveyId+'"); editSurvey.setParameter("surveyTitle", "example"); editSurvey.setParameter("cmd", "edit");%>'
+' <portlet:renderurl var="selectSurvey"> '
+' <portlet:param name="surveyId" value="+item.surveyId+" />'
+' <portlet:param name="surveyTitle" value="${data.getG_surveyTitle() }" />'
+' <portlet:param name="cmd" value="view" />'
+' </portlet:renderurl>'
+' <a id="" href="<%= selectSurvey%>">'+item.surveyName+'</a>'
+' '
+' </div>';
});
A.one("#ex").html(surveyList);
Here my output....
I tried in both either <portelt:renderURL> and PortletURL.. but not working..
Can Any one Help me please
Regards
Pravin Durai
Mellékletek:
Vishal Kumar, módosítva 9 év-val korábban
RE: How to set the value to porltet parameter through AUI AJAX...
Regular Member Bejegyzések: 198 Csatlakozás dátuma: 2012.12.12. Legújabb bejegyzések
http://proliferay.com/alloy-ajax-liferay-portlet/
May it help you.
May it help you.
Pravin s, módosítva 9 év-val korábban
RE: How to set the value to porltet parameter through AUI AJAX...
New Member Bejegyzések: 10 Csatlakozás dátuma: 2014.12.10. Legújabb bejegyzések
Hi Vishal
Thank you for Joining this conversation.. But My problem is not fetching data... Instead append the data to portlet parameter .
Kindly read the Question... After insert surveyId to portlet parameter, the Value is Not Taken Instead it take as String "item.surveyId". but for other elements it's working fine... See data-row-id is set with value of 502.
Regards
Pravin
Thank you for Joining this conversation.. But My problem is not fetching data... Instead append the data to portlet parameter .
Kindly read the Question... After insert surveyId to portlet parameter, the Value is Not Taken Instead it take as String "item.surveyId". but for other elements it's working fine... See data-row-id is set with value of 502.
Regards
Pravin
Jan Geißler, módosítva 9 év-val korábban
RE: How to set the value to porltet parameter through AUI AJAX...
Liferay Master Bejegyzések: 735 Csatlakozás dátuma: 2011.07.05. Legújabb bejegyzések
Try:
instead of
The additional " might help you.
<portlet:param name="surveyId" value="'+item.surveyId+'" />'
instead of
<portlet:param name="surveyId" value="+item.surveyId+" />'
The additional " might help you.