Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are many ways to do what (I think) you want to do. One idea is to create another action in the same controller as the filter action that returns the list you want. I could try to give you an example but from the code you posted it isn't clear which view you're coming from, which view should be shown after clearing the filter or where the hardcoded id (1) id coming from. Also, is it possible that the code you posted had been modified in an attempt to solve this? The getParticipants method doesn't appear to be called at all.</p> <p>If you wanted to answer some of these questions: starting view, target view (after clearing filters), controller involved and where the id is coming from, I could try to give you a better answer. </p> <p>Thanks for the extra info. Here's one possible solution. I didn't try this so the syntax may not be exact but it'll get you started:</p> <p>It looks like what you would get without the filters is all the participants for a Conference. If that's correct then you can add an action like this to ParcipantController.groovy</p> <pre><code>def clearFilter = { def conference = Conference.get(params.id) def participants = conference.participants render(view:'list', model:[participants: participants, participantsTotal: participants.size(), startDate:conference.start, endDate:conference.end, canWrite: accessRightsService.canWrite(request.beholder, conference)]) } </code></pre> <p>Then you can add a tag to your page instead of the hard-coded anchor tag like this: Clear Filter </p> <p>I hope that helps, Dave</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload