columns in summary view not showing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

columns in summary view not showing

koenvdk
Hi,

We have a strange error: in one of our forms, where we have a lot of columns active for the summary view, and some of them are simply not shown.

After some digging, we found out the following:

We have implemented a persistence API according to http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api#TOC-Query-response
here you describe that the details returned by a search query contain only the elements for which summary-field = 'true'.

However, in form runner's summary view.xhtml (at least this is the case for 3.9.1PE), we see the following starting on line 646:

<!-- One column for each detail -->
<xxforms:variable name="positions" select="instance('fr-search-instance')/query[@name and @summary-field = 'true']/(count(preceding-sibling::query[@name]) + 1)"/>
<xforms:repeat nodeset="details/detail[position() = $positions]" id="document-details-repeat">

These lines suggest that any field with search-field or summary-field set to 'true', are expected to be present in the document's details, and the necessary filtering out is done by the variable 'positions'.

Either this is wrong, or the description or the api is wrong (we have not tested how your own search implementation behaves here). What should be the correct way of fixing this? we can either adjust our persistence api to include search-fields as well, or change the view.xhtml to be correct.



Sincerely,



Koen Vanderkimpen
Research/Recherche/Onderzoek

Connect: Twitter

"there are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" (Phil Karlton et al)








Overeenkomstig de bepalingen inzake de vertegenwoordiging van de vzw in haar statuten, kan enkel de gedelegeerde bestuurder, de algemeen directeur of zijn uitdrukkelijke lasthebber verbintenissen aangaan namens Smals.
Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Conformément aux dispositions relatives à la représentation de l'asbl dans ses statuts, seul l'administrateur délégué, le directeur général ou son mandataire exprès est habilité à souscrire des engagements au nom de Smals.
Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message.

According to the provisions regarding representation of the non profit association in its bylaws, only the chief executive officer, the general manager or his explicit agent can enter into engagements on behalf of Smals.
If you are not the addressee of this message, we kindly ask you to signal this to us immediately and to delete the message.





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws