/*
 * Author       : zchelp
 * Generated on : 22-Nov-2009 21:57:30
 * Version      : 3.0
 */
application "Create URL with field value"
{
    type = public
    allow html = true
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Home
    {
        form  Sample
        {
            
            Street
            (
                type  =  text
            )

            City
            (
                type  =  text
            )

            State
            (
                type  =  text
            )

            Formula_1
            (
                type  =  formula
                value  =  ((((((("<a href='http://" + Street + "/" + City + "/" + State + ".html' target='_blank'> ") + " http://") + Street) + "/") + City) + "/") + State) + "</a>"
            )

            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  Sample_View
        {
            displayname = "Sample View"
            show  all  rows  from  Sample 
            (
                Street
                City
                State
                Formula_1 as "Formula 1"
            )
            options
            (
                display rows = 100
            )
        }

    }

}
