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