WAML - Web Application Markup Language
Posts 1-1 of 1
-
Evgenios Skitsanos Group moderatorThe company name is only visible to registered members.wa:DataGrid
Hi guys, just added new UI object to WAML. This time i'm trying to hanlde some datasets via Adobe Spry functionality.
Minimal syntax is quite simple as you can see:
<wa:DataGrid id="myGrid" dataSource="sample.xml" dataRegion="/employees/employee">
<wa:DataColumn field="@id" header="id"/>
<wa:DataColumn field="firstname" header="First Name"/>
<wa:DataColumn field="lastname" header="Last Name"/>
</wa:DataGrid>
Where:
@dataSource - XML data source, can be RSS feed or whatever else data. A bit later on i will show you how to manage paging and etc data handling for Windows, Linux, MacOS with my by CGI framework Wdk4RB that you can use with RealBasic and few more samples for VB.NET.
@dataRegion - is actually XPath to select data from your Xml Datasource.
And inside of DataGrid all that u need is to define
@field - Xml Region data field
@header - field header (by clicking on the header whole column would be sorted)
- 09 Feb 2007, 09:13 am
