head	1.7;
access;
symbols;
locks; strict;
comment	@# @;


1.7
date	2011.05.05.19.41.20;	author TWikiContributor;	state Exp;
branches;
next	1.6;

1.6
date	2010.06.16.04.31.09;	author TWikiContributor;	state Exp;
branches;
next	1.5;

1.5
date	2010.05.29.14.44.38;	author TWikiContributor;	state Exp;
branches;
next	1.4;

1.4
date	2007.01.16.04.12.06;	author TWikiContributor;	state Exp;
branches;
next	1.3;

1.3
date	2006.06.25.16.26.25;	author TWikiContributor;	state Exp;
branches;
next	1.2;

1.2
date	2006.04.01.05.55.04;	author TWikiContributor;	state Exp;
branches;
next	1.1;

1.1
date	2006.02.01.12.01.16;	author TWikiContributor;	state Exp;
branches;
next	;


desc
@new-topic
@


1.7
log
@buildrelease
@
text
@%META:TOPICINFO{author="TWikiContributor" date="1304624480" format="1.1" version="7"}%
%META:TOPICPARENT{name="TWikiFAQ"}%
---++ FAQ:

How can I create a simple [[TWikiForms][TWiki Forms]] based application?

---++ Answer:

TWiki applications help automate workflows you have at the workplace. TWiki has a built-in database that can be used to write custom web applications. These are wiki applications that run in TWiki.

A typical TWiki forms based application consists of the following pages:

   * Application home page, typically containing links to other application pages. It may contain also a report showing data records.
   * Form definition page, defining the fields of a record. Details in TWikiForms.
   * Template page, used as a template for new data records. It is essentially a TWiki page with a form attached to it. Details in TWikiTemplates.
   * Header page: Optional page included in each record page to summarize the record.
   * Page with an HTML form to create new records.
   * Report page(s). Details in VarSEARCH and FormattedSearch.

TWiki.org has a blog post on [[TWiki:Blog.BlogEntry201009x1][How to Create a TWiki Application]] where you can learn the details.

__Back to:__ TWikiFAQ

__Related Topics:__ UserDocumentationCategory

-- __Contributors:__ TWiki:Main.MiyokoTakushima, TWiki:Main.PeterThoeny
@


1.6
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1276662669" format="1.1" version="6"}%
d5 1
a5 1
How can I create a simple [[TWikiForms][TWiki Form]] based application?
d9 12
a20 29
   1 Create a TWiki Form and define fields (see TWikiForms for details)
   1 Add the form in the list of Web Forms. Set the WEBFORMS setting in WebPreferences
   1 Create a Template Topic
   1 In edit mode add the [[TWikiForms][TWiki Form]] you defined to the Template Topic using the "Add Form" button
   1 Create a HTML Form with necessary fields
   1 Define =SEARCH= function for listing items (see VarSEARCH and FormattedSearch for details)

For more information follow the links...

The following is the code source of TWikiFAQ:

<verbatim>
<form action="%SCRIPTURLPATH{edit}%/%WEB%/">
New FAQ topic: &nbsp; (Use a name in %SYSTEMWEB%.WikiNotation) <br />
<input type="text" name="topic" size="32" class="twikiInputField" />
<input type="submit" value="Create Topic" class="twikiSubmit" />
<input type="hidden" name="onlywikiname" value="on" />
<input type="hidden" name="templatetopic" value="TWikiFaqTemplate" />
<input type="hidden" name="topicparent" value="%TOPIC%" />
<br />
</form>
</verbatim>

----

And the =SEARCH= function:
<verbatim>
%SEARCH{ "Back to\:__ TWikiFAQ" casesensitive="on" type="regex" nosearch="on" nototal="on"}%
</verbatim>
d26 1
a26 1
-- __Contributors:__ TWiki:Main.MiyokoTakushima - 2004-10-18
@


1.5
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1267681783" format="1.1" version="5"}%
d4 1
a6 1

d10 1
a10 1
   1 Add the form in the list of Web Forms. Set the variable WEBFORMS in WebPreferences
d14 1
a14 1
   1 Define =SEARCH= function for listing items (see VarSEARCH for details)
d22 1
a22 1
New FAQ topic: &nbsp; (Use a name in TWiki.WikiNotation) <br />
@


1.4
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1163619832" format="1.0" version="4"}%
d23 2
a24 1
<input type="text" name="topic" size="32" />&nbsp;<input type="submit" class="twikiSubmit" value="Create Topic" />
a38 2


d43 1
a43 1
-- __Contributors:__ TWiki:Main.MiyokoTakushima - 18 Oct 2004
@


1.3
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1098088852" format="1.0" version="3"}%
d35 1
a35 1
%SEARCH{ "Back to\:__ TWikiFAQ" casesensitive="on" regex="on" nosearch="on" nototal="on"}%
d44 1
a44 2
-- TWiki:Main.MiyokoTakushima - 18 Oct 2004 <br />

@


1.2
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1098088852" format="1.0" version="2"}%
d9 1
a9 1
   1 Create a [[TWikiForms][TWiki Form]] and define fields (TWikiForms)
d11 2
a12 2
   1 Create a Template Topic and in Edit mode 
   1 In edit mode add the [[TWikiForms][TWiki Form]] you defined to the Template Topic
d14 1
a14 1
   1 Define =SEARCH= function for listing items.  See VarSEARCH
@


1.1
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1098088852" format="1.0" version="1"}%
d9 6
a14 6
	1 Create a [[TWikiForms][TWiki Form]] and define fields (TWikiForms)
	1 Add the form in the list of Web Forms. Set the variable WEBFORMS in WebPreferences
	1 Create a Template Topic and in Edit mode 
	1 In edit mode add the [[TWikiForms][TWiki Form]] you defined to the Template Topic
	1 Create a HTML Form with necessary fields
	1 Define =SEARCH= function for listing items.  See TWikiVariables#VarSEARCH
@
