Action DataWindow object property
Description
The action a user can assign to a button control.
Controls
Button controls
Syntax
PowerBuilder dot notation:
|
1 |
<span>dw_control</span>.Object.<span>buttonname</span>.Action |
Describe and Modify argument:
|
1 |
"<span>buttonname</span>.Action { = '<span> value </span>' }" |
|
Parameter |
Description |
|---|---|
|
buttonname |
The name of the button for which you |
|
value |
The action value assigned to the button. |
|
Value |
Action |
Description |
Value returned to ButtonClicked |
|---|---|---|---|
|
0 |
UserDefined |
(Default) Allows for programming of the ButtonClicked |
Return code from the user’s coded |
|
1 |
Retrieve (Yield) |
Retrieves rows from the database. Before retrieval |
Number of rows retrieved. |
|
2 |
Retrieve |
Retrieves rows from the database. The |
Number of rows retrieved. |
|
3 |
Cancel |
Cancels a retrieval that has been started |
0 |
|
4 |
PageNext |
Scrolls to the next page. |
The row displayed at the top of the DataWindow -1 if an error occurs. |
|
5 |
PagePrior |
Scrolls to the prior page. |
The row displayed at the top of the DataWindow -1 if an error occurs. |
|
6 |
PageFirst |
Scrolls to the first page. |
1 if successful. -1 if an error occurs. |
|
7 |
PageLast |
Scrolls to the last page. |
The row displayed at the top of the DataWindow -1 if an error occurs. |
|
8 |
Sort |
Displays Sort dialog box and sorts as |
1 if successful. -1 if an error occurs. |
|
9 |
Filter |
Displays Filter dialog box and filters |
Number of rows filtered. Number < 0 if an error occurs. |
|
10 |
DeleteRow |
If button is in detail band, deletes |
1 if successful. -1 if an error occurs. |
|
11 |
AppendRow |
Inserts row at the end. |
Row number of newly inserted row. |
|
12 |
InsertRow |
If button is in detail band, inserts |
Row number of newly inserted row. |
|
13 |
Update |
Saves changes to the database. If the |
1 if successful. -1 if an error occurs. |
|
14 |
SaveRowsAs |
Displays Save As dialog box and saves |
Number of rows filtered. |
|
15 |
|
Prints one copy of the DataWindow object. |
0 |
|
16 |
Preview |
Toggles between preview and print preview. |
0 |
|
17 |
PreviewWithRulers |
Toggles between rulers on and off. |
0 |
|
18 |
QueryMode |
Toggles between query mode on and off. |
0 |
|
19 |
QuerySort |
Specifies sorting criteria (forces query |
0 |
|
20 |
QueryClear |
Removes the WHERE clause |
0 |
Usage
In the painter
Select the control and set the value in the Properties view, General
tab.
Examples
|
1 |
dw1.Object.b_retrieve.Action = "2" |
|
1 |
setting = dw1.Describe("b_retrieve.Action")<br>dw1.Modify("b_retrieve.Action = '2'") |