FAQ
I think there is something I can take from each of these. 1) only
allow validating records to be allowed to be selected for inserting
into other DB. 2) Use LWP.

Thanx,
Dp.




2008/7/10 Mesdaq, Ali <amesdaq@websense.com>:
Ok so the flow would be read cvs file (lets assume its submitted by the
user) then you want all validated (whatever that may be) records to
automatically be inserted to that other db then only the records that
were not validated would be presented to the user so they could correct
it or deselect it from being inserted right?

Well I would create a validation method in your controller and not use
FormFu. Call that method for each record and if it fails just push the
record on to an array for presentation to the user. Then when they
resubmit just call that method again for each submitted record and get
rid of the non submitted records.

All validated records should be inserted into db directly if you can but
if you can't have direct access do a post of serialized json data or
name value pairs for each record.

-----Original Message-----
From: Dermot
Sent: Thursday, July 10, 2008 12:47 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] method to repeatedly submit form

2008/7/9 Mesdaq, Ali <amesdaq@websense.com>:
Just to better understand what your trying to do. Are you saying you
want to display records and only the records that are selected you want
to be passed to the other db?

Yes in part that correct. However up to that point there wouldn't have
been any validation on the records (there are imported from csv). I
had thought that I should, for each record, open it in a FormFu, do
the validation, if ok send it, if not halt and prompt the user.

Perhaps I should try a different approach, like validating the data at
the import stage. I had thought about using Chain also.
Thanx,
Dp.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 6 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJul 9, '08 at 7:03p
activeJul 11, '08 at 6:14p
posts6
users3
websitecatalystframework.org
irc#catalyst

3 users in discussion

Dermot: 3 posts Ali Mesdaq: 2 posts Wade Stuart: 1 post

People

Translate

site design / logo © 2022 Grokbase