Matt Sergeant wrote:
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.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?
<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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
