https://discuss.orbeon.com/Error-Summary-fr-accordion-tp3016416p3017517.html
I have a dialog that opens up and the id includes the path to the case and I take the substring after the - which provides me with the case and then I toggle there and setfocu to control. See below.
<xxforms:dialog id="errorsDialog" level="modeless" appearance="full" close="true" draggable="true" visible="false">
<xforms:group>
<xforms:group ref="instance('errors-instance')">
<xforms:group ref=".[error]">
<xhtml:table class="errors-table">
<xhtml:tr>
<xhtml:th colspan="3"
class="error-title">
<xforms:output value="concat('Your Form Has ', count(error), ' ', if (count(error) > 1) then 'Items That Require Attention' else 'Item That Requires Attention')"/>
</xhtml:th>
</xhtml:tr>
<xhtml:tr>
<xhtml:th style="text-align:center">Location</xhtml:th>
<xhtml:th style="text-align:center">Message</xhtml:th>
<xhtml:th style="text-align:center">Row</xhtml:th>
</xhtml:tr>
<xforms:repeat nodeset="error" id="errors-repeat">
<xhtml:tr>
<xhtml:th>
<xforms:trigger class="triggerErrorLoc">
<xforms:label><xforms:output value="substring-after(@id, '-')"/></xforms:label>
<xforms:action ev:event="DOMActivate">
<xforms:toggle case="{substring-after(@id, '-')}"/>
<xforms:setfocus control="{@id}"/>
</xforms:action>
</xforms:trigger>
</xhtml:th>
<xhtml:td>
<xforms:output value="@alert"/>
</xhtml:td>
<xhtml:td>
<i>
<xforms:output value="if (string-length(@indexes) > 0) then concat('(Row ', @indexes, ')') else ''"/>
</i>
</xhtml:td>
</xhtml:tr>
</xforms:repeat>
</xhtml:table>
</xforms:group>
<xforms:group ref=".[not(error)]">
<xhtml:table class="no-errors-table">
<xhtml:tr>
<xhtml:th colspan="3" class="no-error-title">
Your Form Does Not Have Any Errors/Omissions
</xhtml:th>
</xhtml:tr>
</xhtml:table>
</xforms:group>
</xforms:group>
</xforms:group>
</xxforms:dialog>
Brian Steuhl
website: http://BTMSoftwareSolutions.com
business email: [hidden email]
cell: 908-421-0742
home office: 732-961-3187
RSS Feed To My Blog:

mailing list.