Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Get Unique Identifier

Avatar

13-04-2016

Is there a way to getUniqueIdentifier in sightly?I want to get the component unique identifier in sightly and have that loaded on my javascript but cant seem to find any documentation around the same for sightly.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

13-04-2016

Create a method in the Sightly Java bean to generate a UUID value. 

Avatar

Avatar
Validate 1
Level 1
kkhan_123
Level 1

Likes

0 likes

Total Posts

23 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile

Avatar
Validate 1
Level 1
kkhan_123
Level 1

Likes

0 likes

Total Posts

23 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile
kkhan_123
Level 1

15-07-2020

Hi @Anonymous,@smacdonald2008 

have you done this.If yes i need your help.I have created alphabetical search component.When i inserted this component several times in a same page,component which is present down the page it's property applied on the top of the component.

PFB details.

 
 

Capture.PNG

 

In above image when i insert the same component many times in a same page ,the last component search index did not apply on it's component content(like it should search abc but it is searching Apple which is present top of the page),it's getting applied on the component which is authored on the top of the page.I mean searching should apply on the current component but it's getting applied the same component which is present top of that.I already created a one extra text-field and write htl <input type="hidden" id="uid"> and retrieved this in the JavaScript.But no luck.Please help me.it would be appreciated.