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

rajaram33
Community profile rajaram33 Level 1
Job title here
Location here
2 BADGES
Level 1

Level 1

Learn more
Joined the community 22-02-2021 10:42:21 AM
Offline
Top badges earned by rajaram33
Customize the badges you want to showcase on your profile
Re: data-sly-list iteration for a JsonArray
Avatar
Validate 1
Level 1
rajaram33
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajaram33
- Adobe Experience Manager
Kiran please suggest how to parse the list in this case in htl which has the json array populated at model.I am struglling at htl to get the value

Views

130

Likes

0

Replies

0
Re: data-sly-list iteration for a JsonArray
Avatar
Validate 1
Level 1
rajaram33
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajaram33
- Adobe Experience Manager
I tried adding Json Array to array list but when i try to access it in htl like this ${child.label} Value: ${child.href}

Views

134

Likes

0

Replies

0
Re: data-sly-list iteration for a JsonArray
Avatar
Validate 1
Level 1
rajaram33
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajaram33
- Adobe Experience Manager
Hi @BrianKasingli @KiranVedantam1992 ,I tried as suggested by creating a Link with hashmap public List> getListItem(JSONObject taxanomyDat) { log.info("Inside Model getDemoItem"); List> prodArrayList = new ArrayList>(); Map siteLink = new LinkedHashMap(); siteLink.put("label1", "www.gmail.com"); siteLink.put("label2", "www.yahoo.com"); prodArrayList.add((HashMap) siteLink); return prodArrayList; } public List> getDemoItem() { return demoItem; } And in HTL i am not sure What mistake i am doing or...

Views

144

Like

1

Replies

1
Re: data-sly-list iteration for a JsonArray
Avatar
Validate 1
Level 1
rajaram33
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajaram33
- Adobe Experience Manager
Hi Brian,

Views

135

Likes

0

Replies

0
Re: data-sly-list iteration for a JsonArray
Avatar
Validate 1
Level 1
rajaram33
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajaram33
- Adobe Experience Manager
Let me try both options and get back soon please do not close this as resolved

Views

169

Likes

0

Replies

0
data-sly-list iteration for a JsonArray
Avatar
Validate 1
Level 1
rajaram33
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajaram33
- Adobe Experience Manager
Hi AEM Gurus, I have a JSON Array like below sample {"sites": {"label": "Parent LABEL","mobileLabel": "Parent Mobile Label","items": [{"href": "www.google.com","id": "goog","label": "Google Search"},{"href": "www.yahoo.com","id": "yah","label": "yahoo site"},{"href": "www.wikipedia.com","id": "wiki","label": "wikipedia"}]}}Now i am trying to Iterate and get the values from this JSON array using data-sly-list something like as shown in below structure${key.label} - ${key.id}I know we can iterate ...

Views

272

Likes

0

Replies

8
Fetching Parent Page Properties from Experience Fragment Component
Avatar
Validate 1
Level 1
rajaram33
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
rajaram33
- Adobe Experience Manager
Hi All,I have a header component which uses a experience Fragment and in this XF i have a header component mapped. This Experience Fragment is been used inside my home page editable template. Now i am trying to access a page properties from my home page inside this header component mapped to Experience FragmentPage Template > XF > Header Component(Access Page Properties).Below is my code inside the header component model@Self Resource resource; @PostConstruct protected void init() { try { Inheri...

Views

144

Likes

0

Replies

1
Likes from