Expand my Community achievements bar.

SOLVED

To create hints in health report

Avatar

Level 2

Hi,

I am creating a custom health report and linking it with maintenance dashboard in AEM6.

I have created a health check and a maintenance task. Now I need to create a hint in health report and link it with the maintenance task.

Can some one help with some docs for creating the hint in health check.

Attached the SS of hint available for default hc.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You can refer the OOB implementation. Please check here

http://<host>:<port>/crx/de/index.jsp#/libs/granite/operations/components/mbean/body/body.jsp

This has the code to display the hint and from here you can refer its implementation 

<% for (String[] hint : hints) { %> <div class="coral-Alert coral-Alert--notice"> <i class="coral-Alert-typeIcon coral-Icon coral-Icon--sizeS coral-Icon--alert"></i> <strong class='coral-Alert-title'><%= i18n.get("HINT") %></strong> <div class='coral-Alert-message'><a href="<%= xssRequestAPI.getValidHref(hint[1]) %>"><%=xssRequestAPI.encodeForHTML(hint[0]) %></a></div> </div> <% } %>

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

You can refer the OOB implementation. Please check here

http://<host>:<port>/crx/de/index.jsp#/libs/granite/operations/components/mbean/body/body.jsp

This has the code to display the hint and from here you can refer its implementation 

<% for (String[] hint : hints) { %> <div class="coral-Alert coral-Alert--notice"> <i class="coral-Alert-typeIcon coral-Icon coral-Icon--sizeS coral-Icon--alert"></i> <strong class='coral-Alert-title'><%= i18n.get("HINT") %></strong> <div class='coral-Alert-message'><a href="<%= xssRequestAPI.getValidHref(hint[1]) %>"><%=xssRequestAPI.encodeForHTML(hint[0]) %></a></div> </div> <% } %>