Difference between revisions of "Section"
From Lianjapedia
Barrymavin (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 223: | Line 223: | ||
|valign="top"|existing as Object | |valign="top"|existing as Object | ||
|valign="top"|Add an existing container object into the custom search panel for a section | |valign="top"|Add an existing container object into the custom search panel for a section | ||
+ | |- | ||
+ | |valign="top"|ApplyRules | ||
+ | |valign="top"|None | ||
+ | |valign="top"|Applies UI presentation rules for the section | ||
|- | |- | ||
|Cancel | |Cancel | ||
Line 237: | Line 241: | ||
|- | |- | ||
|Edit | |Edit | ||
+ | |None | ||
+ | |Toggle edit mode for the current record | ||
+ | |- | ||
+ | |Editmode | ||
|None | |None | ||
|Enter edit mode for the current record | |Enter edit mode for the current record | ||
Line 243: | Line 251: | ||
|None | |None | ||
|Expand the section | |Expand the section | ||
+ | |- | ||
+ | |First | ||
+ | |None | ||
+ | |Move to the first data record | ||
|- | |- | ||
|valign="top"|GoTo | |valign="top"|GoTo | ||
Line 251: | Line 263: | ||
|position as Numeric | |position as Numeric | ||
|Return a reference to the formitem object at the specified position | |Return a reference to the formitem object at the specified position | ||
+ | |- | ||
+ | |Last | ||
+ | |None | ||
+ | |Move to the last data record | ||
|- | |- | ||
|MoveFirst | |MoveFirst | ||
Line 265: | Line 281: | ||
|- | |- | ||
|MovePrevious | |MovePrevious | ||
+ | |None | ||
+ | |Move to the previous data record | ||
+ | |- | ||
+ | |Next | ||
+ | |None | ||
+ | |Move to the next data record | ||
+ | |- | ||
+ | |Previous | ||
|None | |None | ||
|Move to the previous data record | |Move to the previous data record | ||
Line 271: | Line 295: | ||
|None | |None | ||
|Print the section | |Print the section | ||
+ | |- | ||
+ | |Refresh | ||
+ | |None | ||
+ | |Refresh the section | ||
|- | |- | ||
|RemoveObject | |RemoveObject |
Revision as of 09:47, 13 August 2014
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Properties
This class supports the Common properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
ActiveControl | RW | Object | Currently active Control |
ActivePage | RW | Character | Currently active Page |
BackColor | RW | Character | Section's background color |
Caption | RW | Character | Text displayed in the section header |
Command | RW | Character | Custom BROWSE or EDIT command to be executed in the section |
Collapse | W | Boolean | Set to .T. to collapse section |
Count | R | Numeric | Number of formitems in the section |
Database | RW | Character | The section's associated database |
Filter | RW | Character | Filter expression to restrict the records included in the data |
FooterCaption | RW | Character | Text displayed in section footer |
FooterMenu | RW | Character | Custom footer menu |
FooterVisible | RW | Boolean | Whether section footer is displayed |
Grid | R | Object | Reference to Grid contained in section |
HideActionbar | RW | Boolean | Whether section actionbar is hidden |
HideHeader | RW | Boolean | Whether section header is hidden |
Id | R | Character | Section's id |
Menu | RW | Character | Custom menu (shown at top of section) |
Picture | RW | Character | Filename of background image |
ReportColumns | RW | Character | Comma-separated list of column positions for the selected fields (Report only) |
Readonly | RW | Boolean | Whether section is read only |
ReportColumnHeadings | RW | Character | Comma-separated list of column headings (Report only) |
ReportFields | RW | Character | Comma-separated list of fields or expressions for table select statement (Report only) |
ReportFilter | RW | Character | Filter expression (Report only) |
ReportGridLines | RW | Boolean | Whether grid lines are displayed (Report only) |
ReportGroupBy | RW | Character | Field name or expression for group by subtotalling (Report only) |
ReportHeading | RW | Character | Heading text (Report only) |
ReportHeadings | RW | Character | Comma-separated list of column headings (Report only, same as ReportColumnHeadings) |
ReportHyperlinks | RW | Character | Comma-separated list of field names to render as hyperlinks for searching (Report only) |
ReportOtherOptions | RW | Character | Ampersand-separated list of option=value pairs defining additional report options (Report only) |
ReportSubTotals | RW | Character | Comma-separated list of column positions for the selected fields to subtotal on (Report only) |
Sql | RW | Character | The SQL statement used to populate a virtual table. |
Stretch | RW | Numeric | Whether background image should be scaled to fit section: 0 = do not scale, 1 = scale |
Table | RW | Character | The section's associated table |
Tabview | R | Object | Reference to Pageframe if the section is a tabview, otherwise .F.. |
Type | R | Character | Section's type: form, grid, webview, imagestrip, tabview, attachments, canvas, report, chart, custom, timeline, notifications |
Url | RW | Character | URL rendered by section (WebView only) |
Visible | RW | Boolean | Whether section is displayed |
WebView | R | Object | Reference to Webview contained in section |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
Add | None | Add a record and enter edit mode for the new record |
AddObject | existing as Object | newobject as Character, class as Character | Add an existing object or a new object, in which case the object's class must also be specified |
AddSearchPanel | existing as Object | Add an existing container object into the custom search panel for a section |
ApplyRules | None | Applies UI presentation rules for the section |
Cancel | None | Cancel data changes |
Collapse | None | Collapse the section |
Delete | None | Delete the current record |
Edit | None | Toggle edit mode for the current record |
Editmode | None | Enter edit mode for the current record |
Expand | None | Expand the section |
First | None | Move to the first data record |
GoTo | recordnumber as Numeric | Move to the specified data record number |
Item | position as Numeric | Return a reference to the formitem object at the specified position |
Last | None | Move to the last data record |
MoveFirst | None | Move to the first data record |
MoveLast | None | Move to the last data record |
MoveNext | None | Move to the next data record |
MovePrevious | None | Move to the previous data record |
Next | None | Move to the next data record |
Previous | None | Move to the previous data record |
None | Print the section | |
Refresh | None | Refresh the section |
RemoveObject | existing as Object | Remove the specified object |
Save | None | Save data changes |
Search | searchstring as Character | Search the current index for the specified text |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|