Foren
Retrieve Value of selected element. AUI Auto Complete
Pavan jdev, geändert vor 8 Jahren.
Retrieve Value of selected element. AUI Auto Complete
New Member Beiträge: 12 Beitrittsdatum: 12.04.15 Neueste Beiträge
Good Day
I'm implementing liferay AUI Auto Complete. Using the below link.
http://www.liferaysavvy.com/2014/02/liferay-aui-auto-complete-list.html
Everything works fine. But how to retrieve value from json object?
using the below code to add key/value to json object.
and this to autocomplete. resultTextLocator: 'email', as search.
I get emailadress if i use actionRequest.getParameter("myInputNode");
But how to get userid by selecting email from Json Object? please don't suggest me to call UserLocalServiceUtil. I need this in different scenario but same flow.
Thanks.
I'm implementing liferay AUI Auto Complete. Using the below link.
http://www.liferaysavvy.com/2014/02/liferay-aui-auto-complete-list.html
Everything works fine. But how to retrieve value from json object?
using the below code to add key/value to json object.
userJSON.put("userId",user.getUserId());
userJSON.put("email",user.getEmailAddress());
and this to autocomplete. resultTextLocator: 'email', as search.
A.AutoCompleteList(
{
allowBrowserAutocomplete: 'true',
activateFirstItem: 'true',
inputNode: '#<portlet:namespace />myInputNode',
resultTextLocator: 'email',
resultHighlighter:['phraseMatch'],
resultFilters:['phraseMatch'],
render: 'true',
source:this.get('responseData'),
});
I get emailadress if i use actionRequest.getParameter("myInputNode");
But how to get userid by selecting email from Json Object? please don't suggest me to call UserLocalServiceUtil. I need this in different scenario but same flow.
Thanks.
Wole Adetiba, geändert vor 7 Jahren.
RE: Retrieve Value of selected element. AUI Auto Complete
New Member Beiträge: 12 Beitrittsdatum: 09.11.07 Neueste Beiträge
Hey Pavan,
Where you able to get this working? I have similar use case.
Regards,
Wole
Where you able to get this working? I have similar use case.
Regards,
Wole
Pavan jdev:
Good Day
I'm implementing liferay AUI Auto Complete. Using the below link.
http://www.liferaysavvy.com/2014/02/liferay-aui-auto-complete-list.html
Everything works fine. But how to retrieve value from json object?
using the below code to add key/value to json object.userJSON.put("userId",user.getUserId()); userJSON.put("email",user.getEmailAddress());
and this to autocomplete. resultTextLocator: 'email', as search.A.AutoCompleteList( { allowBrowserAutocomplete: 'true', activateFirstItem: 'true', inputNode: '#<portlet:namespace />myInputNode', resultTextLocator: 'email', resultHighlighter:['phraseMatch'], resultFilters:['phraseMatch'], render: 'true', source:this.get('responseData'), });
I get emailadress if i use actionRequest.getParameter("myInputNode");
But how to get userid by selecting email from Json Object? please don't suggest me to call UserLocalServiceUtil. I need this in different scenario but same flow.
Thanks.
Anna Diana, geändert vor 5 Jahren.
RE: Retrieve Value of selected element. AUI Auto Complete
New Member Beiträge: 8 Beitrittsdatum: 02.10.17 Neueste BeiträgeHey,
I am want to implement same functionality. I want to get the userid by selecting email from json object. And I want to get that userid of selected email to the process action method.
Do you have any idea on that?
Thanks in advance.
Regards,
Anna