From:
Michael A Nachbaur <mike [at] nachbaur.com>
Date:
Sat, 02 Nov 2002 01:42:35 -0800
To:
Matt Sergeant <matt [at] sergeant.org>
To:
axkit-users [at] axkit.org
Subject:
Re: A:X:PerForm single-select with <f:index/>
Matt Sergeant wrote:
> On Friday, Nov 1, 2002, at 22:33 Europe/London, Michael A Nachbaur wrote:
>
>> I simply love the <f:index/> and <f:default/> additions to PerForm;
>> this solves many of the reasons why I had been reluctant to use
>> PerForm. I simply love PerForm now, especially since I realized I can
>> use ESQL inside my PerForm callbacks to do validation and updates.
>
>
> I don't think I've seen these additions. Is there a patch floating
> around somewhere or am I suffering from goldfish-brain syndrome again?
Well, it's supported in A:X:PF 1.6, so I don't know if it's a special
patch or anything, but, here's a snippet. If you want a better example
(showing AxKit::XSP::Session, AxKit::XSP::ESQL and AxKit::XSP::PerForm
all playing nice with eachother), lemme know.
<f:form name="account">
<esql:execute-query>
<esql:query>
SELECT * FROM Account
WHERE ID=<esql:parameter><param:id/></esql:parameter>
</esql:query>
<esql:results>
<esql:row-results>
<f:textfield name="email">
<f:width>32</f:width>
<f:maxwidth>255</f:maxwidth>
<f:default>
<esql:get-string column="email"/>
</f:default>
<f:index>
<esql:get-row-position/>
</f:index>
</f:textfield>
</esql:row-results>
</esql:results>
</esql:execute-query>
</f:form>
> Some of PerForm was never finished, and never tested. You may be in
> unchartered territories. So please, patch away and send in your results!
> Thanks ;-)
:-) Patch made and sent to axkit-devel.
--
-man
Michael A Nachbaur
The best way to predict the Future is to invent it.
PGP Public Key at http://www.nachbaur.com/pgpkey.asc
PGP Key fingerprint = 83DC 7C3A 3084 6A21 9A3F 801E D974 AFB4 BFD7 2B6F
A:X:PerForm single-select with <f:index/> - Michael A Nachbaur on 1 Nov 2002 22:33:30 -0000
Re: A:X:PerForm single-select with <f:index/> - Matt Sergeant on 2 Nov 2002 09:23:08 -0000
Re: A:X:PerForm single-select with <f:index/> - Michael A Nachbaur on 2 Nov 2002 09:42:49 -0000
Back up to archives |
These pages are copyright © 2002 Apache Software Foundation


Index