/*
 * Author       : manata
 * Generated on : 22-Nov-2009 19:30:12
 * Version      : 3.0
 */
application "Games"
{
    type = public
    allow html = true
    date format = "dd-MMM-yyyy"
    time zone = "America/Indiana/Indianapolis"
    section Home
    {
        form  Games
        {
            success message  =  "Data Added Successfully!"
            
            Title
            (
                type  =  text
            )

            Console
            (
                type  =  picklist
                values  =  {"XBox",   "Wii",   "GameCube",   "PC"}
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  Games_View
        {
            displayname = "Games View"
            show  all  rows  from  Games 
            (
                Title
                Console
            )
            filters 
            (
                Console
            )
            group by
            (
                Console   ascending
            )
            sort by
            (
                Title   ascending
            )
            options
            (
                display rows = 100
            )
        }

    }

}
