Curl Global Community
Page 7: Summary - Printable Version

+- Curl Global Community (https://communities.curl.com)
+-- Forum: Tutorials (https://communities.curl.com/forumdisplay.php?fid=3)
+--- Forum: Public Training (https://communities.curl.com/forumdisplay.php?fid=4)
+---- Forum: Curl IDE Made Easy (https://communities.curl.com/forumdisplay.php?fid=6)
+----- Forum: Try 3: Displaying Data in a Grid (https://communities.curl.com/forumdisplay.php?fid=11)
+----- Thread: Page 7: Summary (/showthread.php?tid=61)



Page 7: Summary - ashimo - 06-16-2011

TRY 3 Summary

Create the data to be displayed with RecordSet

Data creation

Code:
{RecordSet
    {RecordFields
        {RecordField field name 1, [option 1 = value, …] } ,
        || Describe field value
        {RecordField field name x, [option x = value, …] } ,
    },
    {RecordData field name 1 = data, …},
    || Describe record value
    {RecordData field name 1 = data, …},
}

Display the data using a Grid with RecordGrid

Grid display

Code:
{RecordGrid
    record-source = RecordSet
    || ,
    || Option = value
}

Options for modifying RecordGrid Functionality



Options for modifying RecordGrid appearance



Sorting and Filtering

Data sorting

Code:
set RecordGrid-name.sort = field name

Data filtering

Code:
set RecordGrid-name.filter = {RecordData field name = value}

Note: By using RecordSort and RecordFilter, you can specify more complex sorting and filtering.