Forum OpenACS Q&A: Re: XoTCL Newbie

Collapse
5: Re: XoTCL Newbie (response to 1)
Posted by Nima Mazloumi on
Alright - now that we have two groups lets use the table widget to render so html table:


TableWidget groupsTable -volatile -columns {
Field name -label "Name" -orderby name
Field start_date -label "Starting"
Field end_date -label "Ending"
}

foreach g [Group info instances] {
groupsTable add -name [$g name] -start_date [$g start_date] -end_date [$g end_date]
}

set groupsTable [groupsTable asHTML]


In the adp we simply place:

@groupsTable;noquote@