perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Landwehr <andre.landw...@gmx.net>
Subject Re: PrevNextForm problem
Date Tue, 01 Oct 2002 13:34:57 GMT
On Mon, Sep 30, 2002 at 07:39:38PM +0200, Andre Landwehr wrote:
> I'm currently trying out Recordset's PrevNextForm for the first time. 

ok, I recognized my error, I didn't use %fdat for the
database request. Here's my modified and working simple page,
just for documentation purposes ;-)

  [-
    $fdat {'!DataSource'}    = 'mydb';
    $fdat {'!Table'}         = 'company';
    $fdat {'!PrimKey'}       = 'id';
    $fdat {'$max'}           = 3;
    *set = DBIx::Recordset -> Search (\%fdat);
  -]
  <table>
    <tr><td>[+$set[$row]{compname}+]</td></tr>
  </table>
  [+$set->PrevNextForm ({-prev=>'<<Back', -next=>'Next>>'}, \%fdat)+]
  
Andre

--
"The inside of a computer is as dumb as hell, but it goes like mad!"
(Physicist Richard Feynman)


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message