10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table FieldsScroll BarThe scroll bar lets users scroll up or down in a table field display to bringundisplayed rows in the array into view. A scroll bar is present by default onevery table field when it is created.Summary of Table Field Access SyntaxTo scroll horizontally (in a vertical table field), you can put the table field into aview port. A vertical table field can also have its own horizontal scrollbar. If atable field has n columns, and you set the ColumnsDisplayed attribute to anumber less than n, only the leftmost columns are displayed. However, if youset the HasHorizontalScrollBar attribute to TRUE, a scrollbar is displayed at thebottom of the table field that lets the user scroll to see all columns.You can remove the scroll bar from the display or bring it back if it is notdisplayed. For more information, see How You Can Display and Remove theVertical Scroll Bar (see page 237).The following table provides a quick reference for the correct syntax to accesseach part of a table field:Table Field Component(Data Type)Table field (TableField)Reference Syntax and Examplefield(tablefield)Example:field(custtable)Title- Text (varchar(256))field(tablefield).titleExample:field(custtable).title = 'NewCustomers';- Visual characteristics(Free Trim)field(tablefield).TitleTrim.attributeExample:field(custtable).titletrim.bgcolor =CC_PALE_BLUE;Table header (StackField)field(tablefield).TableHeaderExample:field(custtable).tableheader.bgpattern= FP_SHADE;Column (ColumnField)field(tablefield[*].column)Working with Arrays, Table Fields, and Collections 235

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!