To create hints in health report | Community
Skip to main content
October 16, 2015
Solved

To create hints in health report

  • October 16, 2015
  • 1 reply
  • 541 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

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> <% } %>

1 reply

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
New Participant
October 16, 2015

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> <% } %>