Foren
auto complete field values as the tags in Liferay6.2
sudheer kumar, geändert vor 9 Jahren.
auto complete field values as the tags in Liferay6.2
Junior Member Beiträge: 54 Beitrittsdatum: 25.09.13 Neueste Beiträge
I am displaying data using atuo complete successfully, I am separating the each data by using ',' delimiter, now I have a requirement like , I need to implement like tags for the fields show in the image
.
the below is my code :
<aui:script>
AUI().use('autocomplete-list','aui-base','aui-io-request','autocomplete-filters','autocomplete-highlighters',function (A) {
A.io.request('<%=getEntities%>',{
dataType: 'json',
method: 'GET',
on: {
success: function(event, id, obj) {
try {
new A.AutoCompleteList(
{
allowBrowserAutocomplete: 'false',
activateFirstItem: 'true',
inputNode: '#<portlet:namespace />entitiesNames',
resultTextLocator: 'entityName',
render: 'true',
resultHighlighter: 'phraseMatch',
resultFilters:['phraseMatch'],
maxResults: 10,
queryDelimiter : ',',
source:this.get('responseData'),
autoLoad:false,
});
}catch(e) {
alert('not working sudheer: ' + e);
}
}
}
});
});
</aui:script>
.
the below is my code :
<aui:script>
AUI().use('autocomplete-list','aui-base','aui-io-request','autocomplete-filters','autocomplete-highlighters',function (A) {
A.io.request('<%=getEntities%>',{
dataType: 'json',
method: 'GET',
on: {
success: function(event, id, obj) {
try {
new A.AutoCompleteList(
{
allowBrowserAutocomplete: 'false',
activateFirstItem: 'true',
inputNode: '#<portlet:namespace />entitiesNames',
resultTextLocator: 'entityName',
render: 'true',
resultHighlighter: 'phraseMatch',
resultFilters:['phraseMatch'],
maxResults: 10,
queryDelimiter : ',',
source:this.get('responseData'),
autoLoad:false,
});
}catch(e) {
alert('not working sudheer: ' + e);
}
}
}
});
});
</aui:script>
Prakash Khanchandani, geändert vor 9 Jahren.
RE: auto complete field values as the tags in Liferay6.2
Expert Beiträge: 329 Beitrittsdatum: 10.02.11 Neueste Beiträge
Also asked on Stackoverflow: http://stackoverflow.com/questions/27665043/aui-auto-fields-as-the-tags-in-liferay6-2.
If you cross-post please include the link in both places, it helps the community know if the question is answered in any one of the two places and saves time.
Thanks
If you cross-post please include the link in both places, it helps the community know if the question is answered in any one of the two places and saves time.
Thanks
Ivano Masiero, geändert vor 9 Jahren.
RE: auto complete field values as the tags in Liferay6.2
New Member Beiträge: 15 Beitrittsdatum: 07.07.10 Neueste Beiträge
Hi, I have exactly the same problem. Did you find a solution?
Thank you in advance.
Thank you in advance.
sudheer kumar, geändert vor 9 Jahren.
RE: auto complete field values as the tags in Liferay6.2
Junior Member Beiträge: 54 Beitrittsdatum: 25.09.13 Neueste Beiträge
Yes, give me your email Id, I will send code.
Ivano Masiero, geändert vor 9 Jahren.
RE: auto complete field values as the tags in Liferay6.2
New Member Beiträge: 15 Beitrittsdatum: 07.07.10 Neueste Beiträge
info
at
ivanomasiero
dot
com
thank you very much,
Ivano
at
ivanomasiero
dot
com
thank you very much,
Ivano
Prakash Khanchandani, geändert vor 9 Jahren.
RE: auto complete field values as the tags in Liferay6.2
Expert Beiträge: 329 Beitrittsdatum: 10.02.11 Neueste Beiträge
Please if possible zip and attach the source code to this post, would help everyone
Thanks
-
Prakash K
(Fulcrum Worldwide)
Thanks
-
Prakash K
(Fulcrum Worldwide)
sudheer kumar, geändert vor 9 Jahren.
RE: auto complete field values as the tags in Liferay6.2 (Antwort)
Junior Member Beiträge: 54 Beitrittsdatum: 25.09.13 Neueste Beiträge
Ivano Masiero, geändert vor 8 Jahren.
Re: [Liferay Forums][3. Development] RE: auto complete field values as the
New Member Beiträge: 15 Beitrittsdatum: 07.07.10 Neueste Beiträge
info
at
ivanomasiero
dot
com
thank you very much,
Ivano
> Il giorno 20/feb/2015, alle ore 05:29, sudheer kumar from liferay.com <forums@liferay.com> ha scritto:
>
> Yes, give me your email Id, I will send code.
>
>
> To view the thread, follow the link below:
> https://www.liferay.com/community/forums/-/message_boards/view_message/49345068
> --
> Liferay.com
at
ivanomasiero
dot
com
thank you very much,
Ivano
> Il giorno 20/feb/2015, alle ore 05:29, sudheer kumar from liferay.com <forums@liferay.com> ha scritto:
>
> Yes, give me your email Id, I will send code.
>
>
> To view the thread, follow the link below:
> https://www.liferay.com/community/forums/-/message_boards/view_message/49345068
> --
> Liferay.com