/*
 * Author       : bamfbamrs
 * Generated on : 22-Nov-2009 22:44:47
 * Version      : 3.0
 */
application "Books Belgian Aviation"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Home
    {
        list  Books_Belgian_Aviation_View
        {
            displayname = "Books Belgian Aviation View"
            show  all  rows  from  Books_Belgian_Aviation_Form 
            (
                Title
                Author
                Publisher
                ISBN_Number as "ISBN Number"
                Rating
                Description
            )
            options
            (
                display rows = 100
            )
            permission
            (
                add = true
                edit = true
            )
        }

        form  Books_Belgian_Aviation_Form
        {
            displayname  =  "Books Belgian Aviation Form"
            captcha = true
            
            column
            {
                Title
                (
                    type  =  textarea
                    width  =  5 , 25
                    tooltip  =  "Web application"
                )

                Author
                (
                    type  =  textarea
                    width  =  5 , 25
                    tooltip  =  "Web application"
                )

                Description
                (
                    type  =  textarea
                    width  =  5 , 25
                    tooltip  =  "Web application"
                )

                Publisher
                (
                    type  =  textarea
                    width  =  5 , 25
                    tooltip  =  "Web application"
                )

                Multi_Select_1
                (
                    displayname  =  "Genre"
                    type  =  list
                    values  =  {"Monography",   "General history",   "Newspaper",   "Leaflet",   "Unit History"}
                )

                Edition_Number
                (
                    displayname  =  "Edition Number"
                    type  =  number
                    width  =  20
                    maxchar  =  99
                    tooltip  =  "Web application"
                )

                Copyright_Year
                (
                    displayname  =  "Copyright Year"
                    type  =  number
                    width  =  20
                    maxchar  =  99
                    tooltip  =  "Web application"
                )

                Date_Purchased
                (
                    displayname  =  "Date Purchased"
                    type  =  date
                    tooltip  =  "Web application"
                )

                Purchased_At
                (
                    displayname  =  "Purchased At"
                    type  =  text
                    width  =  25
                    tooltip  =  "Web application"
                )

                Purchase_Price_in_Euro
                (
                    displayname  =  "Purchase Price in Euro"
                    type  =  number
                    width  =  20
                    maxchar  =  99
                    tooltip  =  "Web application"
                )

                Still_availlable
                (
                    displayname  =  "Still availlable"
                    type  =  checkbox
                    defaultvalue  =  false
                    tooltip  =  "Web application"
                )

            }
            column
            {
                Cover
                (
                    type  =  image
                )

                ISBN_Number
                (
                    displayname  =  "ISBN Number"
                    type  =  text
                    width  =  25
                    tooltip  =  "Web application"
                )

                Color_profiles
                (
                    displayname  =  "Color profiles"
                    type  =  checkboxes
                    values  =  {"Yes",   "No"}
                )

                Pictures
                (
                    type  =  checkboxes
                    values  =  {"No",   "Yes BW",   "Yes color"}
                )

                Cover_Type
                (
                    displayname  =  "Cover Type"
                    type  =  picklist
                    values  =  {"Hardback",   "Paperback",   "Hardcover",   "Soft color",   "http://www.sampublications.com/sampubs.htm",   "Softcover color",   "http://www.asa-be.com/publications_asa.htm",   "Hardcover A5 color",   "Soft cover color A4"}
                    tooltip  =  "Web application"
                )

                Size
                (
                    type  =  picklist
                    values  =  {"Paperback (110x175)",   "Paperback (130x195)",   "Paperback trade (not standard)",   "Octavo (240x160)",   "Quarto (275x210)",   "Large Quarto (A4 295x210)",   "Folio",   "Non standard",   "Option 2",   "Option 3"}
                )

                Pages
                (
                    type  =  number
                    width  =  20
                    maxchar  =  99
                    tooltip  =  "Web application"
                )

                Link
                (
                    type  =  text
                    width  =  25
                    tooltip  =  "Web application"
                )

                Reviewer
                (
                    type  =  text
                    width  =  25
                    tooltip  =  "Web application"
                )

                Date_review
                (
                    displayname  =  "Date review"
                    type  =  text
                    width  =  25
                    tooltip  =  "Web application"
                )

                Rating
                (
                    type  =  text
                    width  =  25
                    tooltip  =  "Web application"
                )

                Translator
                (
                    displayname  =  "Language/Translation"
                    type  =  text
                    width  =  25
                    tooltip  =  "Web application"
                )

            }
            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"
                    )
                }
            }
        }

        summary  Books1
        {
            displayname = "Books"
            show  all  rows  from  Books_Belgian_Aviation_Form 
            (
                Cover
                Title
                Author
                Publisher
                Description
                ISBN_Number as "ISBN Number"
                Multi_Select_1 as "Genre"
                Cover_Type as "Cover Type"
                Copyright_Year as "Copyright Year"
                Date_Purchased as "Date Purchased"
                Edition_Number as "Edition Number"
                Pages
                Purchased_At as "Purchased At"
                Purchase_Price_in_Euro as "Purchase Price in Euro"
                Rating
                Translator
                Still_availlable as "Still availlable"
                Link
                Reviewer
                Date_review as "Date review"
            )
            options
            (
                display rows = 100
                display records per row = 1
            )
            permission
            (
                add = true
                edit = true
                bulk edit = true
            )
        }

        summary  Detailed_view
        {
            displayname = "Detailed view"
            show  all  rows  from  Books_Belgian_Aviation_Form 
            (
                Cover
                Title
                Author
                ISBN_Number as "ISBN Number"
                Description
                Multi_Select_1 as "Genre"
                Size
                Publisher
                Rating
                Color_profiles as "Color profiles"
                Pictures
                Copyright_Year as "Copyright Year"
                Cover_Type as "Cover Type"
                Date_Purchased as "Date Purchased"
                Edition_Number as "Edition Number"
                Pages
                Purchased_At as "Purchased At"
                Purchase_Price_in_Euro as "Purchase Price in Euro"
                Translator as "Language/Translation"
                Still_availlable as "Still availlable"
                Link
                Reviewer
                Date_review as "Date review"
            )
            filters 
            (
                Cover_Type
                Size
            )
            options
            (
                display rows = 100
            )
        }

    }

}
