View on
MetaCPAN
Barry King > Apache-Wyrd > Apache::Wyrd::Form::Preload

Download:
Apache-Wyrd-0.98.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.98   Source  

NAME ^

Apache::Wyrd::Form::Preload - Wyrd to load a Form Wyrd with existing data

SYNOPSIS ^

    <BASENAME::SQLForm index="user_id" table="users">
      <BASENAME::Form::Template name="password">
        <BASENAME::Form::Preload>
          <BASENAME::Defaults>
            select 'root' as user_id;
          </BASENAME::Defaults>
          <BASENAME::Query>
            select user_id from users where name='Groucho'
          </BASENAME::Query>
        </BASENAME::Form::Preload>
        <b>Enter Password:</b><br>
        <BASENAME::Input name="password" type="password" />
        <BASENAME::Input name="user_id" type="hidden" />
      </BASENAME::Form::Template>
      <BASENAME::Form::Template name="result">
        <H1>Status: $:_status</H1>
        <HR>
        <P>$:_message</P>
      </BASENAME::Form::Template>
    </BASENAME::SQLForm>

DESCRIPTION ^

Provides pre-loaded values to the Form Template in which it resides. The query may return multiple values, in which case it will create an array of hashrefs data structure appropriate for an Apache::Wyrd::Input::Complex input if it is flagged to do so with a "complex" or "multiple" flag.

The preload requires an Apache::Wyrd::Query object to be embedded in it. It can also accept a Apache::Wyrd::Defaults object.

HTML ATTRIBUTES

NONE

PERL METHODS

NONE

BUGS/CAVEATS/RESERVED METHODS ^

Reserves the _setup and _generate_output methods.

AUTHOR ^

Barry King <wyrd@nospam.wyrdwright.com>

SEE ALSO ^

Apache::Wyrd

General-purpose HTML-embeddable perl object

Apache::Wyrd::Form

Build complex HTML forms from Wyrds

LICENSE ^

Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.

See LICENSE under the documentation for Apache::Wyrd.

syntax highlighting: