Extensions Wiki » Extensions » App Within Minutes Application

App Within Minutes Application

Last modified by Manuel Smeria on 2014/07/26 12:43
application_form_addCreate collaborative web applications within minutes, based on XWiki's powerful structured data management system
Developed by

XWiki Development Team

LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Enterprise


XWiki 3.3RC1+

View Source


This application aims to allow end users use XWiki's powerful structured data management system to make collaborative web applications with as little steps as possible. The focus is on solving most common use cases when creating applications. We are not trying to include all types of features (like notifications, complex fields or workflows). These can be added by programmers.

Start by going to the App Within Minutes home page. Since XWiki Enterprise 4.2 it's available from the "Applications" panel.

AppWithinMinutes-Go1.png AppWithinMinutes-Go2.png

There you can see listed the existing applications. Click on the "Create Application" button to start the wizard.


In the first step you have to provide the application name, which will determine the application home page URL and the application spaces. Each application is mapped to 2 XWiki spaces, one for code and one for data.


In the second step you define the application structure, i.e. the type of data the application will handle. At the end of this step the wizard will create for you the template and the sheet that will be used to create new application entries.


In the last step you customize the way the home page of your application will look like.
You can choose:

  • Which columns to display in the entries live table.
  • What icon your application should appear with in the Applications panel (since XE 4.2)


At the end the wizard takes you to the home page of your application, which is the place from where you can manage the application data: edit the application structure, add new entries, edit or delete existing ones.


Since XWiki Enterprise 4.2 your application will also appear in the Applications panel, with the icon you've chosen:


Field Palette


The second step of the App Within Minutes wizard helps you define the type of data your application will handle. The field palette lists the available field types. Most of these field types are mapped directly to XClass property types:

Field TypeXClass Property Type
Short TextString
Long TextTextArea
Static ListStatic List
UserList of Users
GroupList of Groups
Database ListDatabase List

See the XWiki Data Model documentation to understand what an XClass is and what are all the available property types. The consequence of this mapping is that most of your application structured data will be stored in objects (XClass instances) attached to your application entries (documents). In fact, in this step the App Within Minutes wizard creates an XClass for your application.

Some field types, such as Title and Content are not mapped to an XClass property type but to a document field instead. Visually there's no difference between a Short Text field and the Title field. The difference comes from how the value is stored. In the case of the Title field the value will be stored in the title of an application entry (document). Same with the Content field: the value will be store in the content of the application entry (what you can edit in Wiki edit mode). This has a limitation though: you can use at most one Title/Content field per application.


Before you start customizing your application you should understand:

Application Structure

Each application is split into 2 XWiki spaces. If your application is named 'Meeting Manager' then your application's data pages will be stored in the space named 'Meeting Manager' (i.e. the space with the same name as the application) and your application's code pages will be stored in the space named 'Meeting ManagerCode' (i.e. the name of the application plus the 'Code' suffix). Initially, after you create an application with the AppWithinMinutes wizard, the application spaces will contain the following wiki pages:

Data space (e.g. Meeting Manager):

  1. The home page (WebHome)
  2. The space preferences page (WebPreferences) which gives administration rights over the application's data space to the application creator (so that he can delete all the application's data)

Code space (e.g. Meeting ManagerCode):

  1. The space preferences page (WebPreferences) which gives administration rights over the application's code space to the application creator (so that he can delete the application)
  2. The class, defining the structured data managed by your application (e.g. MeetingManagerClass, notice that the white-space has been removed from the application name)
  3. The template, which keeps the default values to fill when creating new application entries (e.g. MeetingManagerTemplate)
  4. The sheet, which is used to display and edit application entries (e.g. MeetingManagerSheet)
  5. The translation bundle, which can be used to internationalize the application (e.g. MeetingManagerTranslations).
  6. The live table results page, which feeds the live table from the application home page (e.g. MeetingManagerLiveTableResults)

A new page is created in the application's data space each time you add a new application entry. This new page holds the entry data.

Before 6.2-milestone-1

Each application corresponds to an XWiki space. Both the application's code documents (class, template, sheet, translations, etc.) and the application's data documents (the entries created by the users) are stored in the same space (the space with the same name as the application).


Starting with version 4.5 the AppWithinMinutes wizard generates a document translation bundle for the application which allows you to translate class field pretty names, list values (for static list fields) and live table columns names. If you have an application that was created with an older version of AppWithinMinutes you just have to edit and save it to get the new translation bundle.

If your wiki is setup for multilingual support then on the application home page, in the application menu, you have an entry to translate the application. The link takes you to the document translation bundle which is a wiki page so it can be translated in other languages like any other wiki page.

When editing an application you have the option to update the translation bundle. Note that for the moment the translation bundle (its default language) is regenerated so you may lose translation keys you added yourself. In the future we plan to update the translation bundle preserving the custom keys you add.

See the application internationalization guide and the localization module documentation on how to use translation keys in scripts within your application.

Live Table

The live table offers many configuration options that are not available when editing your application. You have to edit the application home page in wiki edit mode to be able to use all the available configuration options.

Post Processing

You can execute code after an application entry is created/edited by using the notification system. Here's an example where the title of a page is adjusted after the page is created/edited.

Color theme

The color theme of your application can be changed from the administration section of your application's data space. Use the 'Space' > 'Administer Space' top menu, then follow 'Look & Feel' > 'Presentation' section.

Field Palette

The field palette from the class editor (second step of App Within Minutes wizard) can be customized easily. You can control both the list of field categories and the list of field types from each category. Field categories are determined by AppWithinMinutes.FormFieldCategoryClass. It's enough to add an object of this class to a wiki page to make it a field category. As you'll see this class has only one property, the priority, which specifies the position in the list of categories on the field palette. The category title is actualy the title of the wiki page.

Field types are determined by AppWithinMinutes.FormFieldClass. Before you add a new field type you need to create a new XClass property type because normally a field type is mapped to a property type as we've shown above. Supposing you have created the "External Image" property type (as explained in the linked tutorial) let's see how we can add a field type based on it.

First of all you need to create a new wiki page. The title of this wiki page will be the title of the new field type and thus will appear on the field palette. We'll use "External Image". Next you need to add an object of type AppWithinMinutes.FormFieldClass to the page we've just created to let App Within Minutes know that this page describes a field type.


You need to specify:

  • the field category
  • the icon that will appear on the field palette before the field title; you can choose an icon from the Silk icon set, as you can see in the image above, or you can attach an icon to this wiki page and put the file name in the icon input
  • the priority, which is the index inside the specified category on the field palette
  • the list of editable meta properties of the corresponding property type; these are the configuration options that you will get for this field type

Save and edit this page using the class editor. We now have to define a template for the "External Image" field type. To do so you just have to add a property of type "External Image" and set the meta properties to the default values you'd like to have when you drag an "External Image" field from the palette to the field canvas in the class editor. Basically, this property template will be copied whenever you add a new "External Image" field to your application.

Save and you're done. Now let's create a new application, or you can edit an existing one. In anycase, you should see the "External Image" field added to the field palette under the right category.


Add an "External Image" field to your application and look at the field configuration. You'll see the configuration options that you have listed previously in the AppWithinMinutes.FormFieldClass object.



On the FAQ Tutorial AWM page you can find a tutorial about how to create a simple FAQ Application using App Within Minutes

Created by Marius Dumitru Florea on 2011/12/08 11:56

Download XWiki

Get Connected