Re: Editing multiple records in one form

Justin Carter <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <CAMLJQfuie_cfs_dFEEW62+mawvGRUKqsqKBrEg7H75VqFc1V2g@mail.gmail.com>
You would get the user objects you want to edit (using
application.fapi.getContentObjects() or another method), then on your page
add an ft:form tag and inside that loop over the user objects query and for
each record add an ft:object tag, close the loop and add an ft:button and
close the form - this will render multiple records in the one form (I'm
fairly sure this worked back in FarCry 5). Then you handle the submit at
the top of your page using ft:processform and ft:processformobjects as
normal. There should be a chapter on forms in the "Book of FarCry" on the
FarCry wiki (I think! Writing this from my phone at the moment - check the
links from www.farcrycore.org )

Cheers,
Justin
On 28/12/2012 2:51 PM, "s8loud" <[email protected]> wrote:

> For any existing (custom) content type, how does one create a form to edit
> multiple records with a subset of properties for a given content type?  For
> example, if I have a user.cfc with properties of name (string), department
> (string) and seniority (numeric) and I want to be able to edit the
> seniority of all users in one form, how would I go about creating that form?
>
> Fwiw, I'm very new to FarCry and was unable to find anything on this.  If
> this is a repeat question, please don't hesitate to point me in the right
> direction.
>
> Using FarCry 5, btw.
>
> Thanks in advance.
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: farcry-dev-/[email protected]
> To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
>
>
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.