Return-Path: X-Original-To: apmail-isis-users-archive@www.apache.org Delivered-To: apmail-isis-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6947710515 for ; Sun, 15 Mar 2015 11:33:29 +0000 (UTC) Received: (qmail 98188 invoked by uid 500); 15 Mar 2015 11:33:29 -0000 Delivered-To: apmail-isis-users-archive@isis.apache.org Received: (qmail 98147 invoked by uid 500); 15 Mar 2015 11:33:29 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 98136 invoked by uid 99); 15 Mar 2015 11:33:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Mar 2015 11:33:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.213.170] (HELO mail-ig0-f170.google.com) (209.85.213.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Mar 2015 11:33:03 +0000 Received: by igbue6 with SMTP id ue6so19253860igb.1 for ; Sun, 15 Mar 2015 04:31:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=RSm/ndSIK240IZg8OMG1DSfYNHSUqXSr7utEvpm7x2I=; b=XwSr1kEOOHFHGmr60yCfFEzj34xqx0URiRzab5wAfq517KcAckBMzcSsktcR+4SRJq ZwEE2dXNDVxhIQVfi655SQQPzlVN7V5WWKDh5uqa9PdnIdQqdCZw86zQSHXuz+N9kQVX GBMyft8kNCZI0mTPj1zmBNOBtIW9SSw4qIrlJtPSl1AxGhZpcbtdVo9az+jbSVbOSqok AtV46KGXPGAovffXfFlEFb46PkdOz5AywN5DLOg5eMo7mlcpd3CYLi4zUPKhdfHo4KyV RUxDO5xoUWrpqRhvZkQw+HRfw9aaPQnoZQqWAFKKVVyfqHurcLV5uAmcHpZLeb5UmEXd Y2lA== X-Gm-Message-State: ALoCoQlhXVpZmAkYAgDxAdYjv32XVtrmjRDOgAuP8cTKZGYSO5X1iTylfUkPBSxWU+/wI1Z3jUyR MIME-Version: 1.0 X-Received: by 10.42.190.78 with SMTP id dh14mr70665973icb.78.1426419116127; Sun, 15 Mar 2015 04:31:56 -0700 (PDT) Received: by 10.107.130.8 with HTTP; Sun, 15 Mar 2015 04:31:55 -0700 (PDT) X-Originating-IP: [81.140.36.190] Received: by 10.107.130.8 with HTTP; Sun, 15 Mar 2015 04:31:55 -0700 (PDT) In-Reply-To: References: <879B46E7-A3F5-44B3-8B9A-FAA057975B2F@oomens-ict.nl> Date: Sun, 15 Mar 2015 11:31:55 +0000 Message-ID: Subject: Re: isis 1.7 and bulk download From: Dan Haywood To: users Content-Type: multipart/alternative; boundary=20cf303bf6fcb7e87205115214e7 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303bf6fcb7e87205115214e7 Content-Type: text/plain; charset=UTF-8 IIRC, all results except the last are ignored. So I think this processing should be when isLast(), not isFirst(). Cheers, Dan On 15 Mar 2015 11:24, "Jeroen van der Wal" wrote: > Hi Victor, > > You can take a look at Bulk Interaction [1]. This allows the user to invoke > an action on selected entries. > > Something like this: > > @Action(invokeOn=InvokeOn.COLLECTION_ONLY) > public Blob downloadAsZip() { > if (actionInvocationContext.isFirst()){ > for (Object party : > actionInvocationContext.getDomainObjects()){ > //put the stuff in a zip > ... > } > } > return new Blob("dowload.zip", "application/zip", ...) > } > > Cheers, > > Jeroen > > [1] https://isis.apache.org/reference/services/bulk-interaction.html > > On 14 March 2015 at 15:20, Victor Oomens wrote: > > > Hi all, > > > > Perhaps someone could give me a pointer on how to create a 'bulk > download' > > action button when listing records with attachments. I would like to > create > > a zip file of all the attachments of the listed records for the user to > > download at once. > > > > TIA. > > > > Victor > --20cf303bf6fcb7e87205115214e7--