Forum OpenACS Q&A: Re: setting default values in ad_page_contract

Collapse
Posted by Dave Bauer on
Almost!

ad_page_contract {
uses bind variables in a query
@author Matthew Smith
} {
{user_id:integer "1"}
} -properties {
users:onerow
}

The list of ad_page_contract variables is one list. Each element is also a list. If its just the name:flag you can omit the { } around it but if it has a default they are required.

Collapse
Posted by Matthew Smith on
I've got it now. Thank you, Dave.