4D v14.3

OBJECT SET ACTION

Home

 
4D v14.3
OBJECT SET ACTION

OBJECT SET ACTION 


 

OBJECT SET ACTION ( {* ;} object ; action ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a field or variable
object  Form object in Object name (if * is specified) or
Field or variable (if * is omitted)
action  Text in Action to associate

The OBJECT SET ACTION command modifies, for the current process, the standard action associated with the object(s) designated by the object and * parameters.

Note: Standard actions can also be set using the Property list in the Design mode.

Passing the optional * parameter indicates that the object parameter is an object name (string). If you do not pass this parameter, it indicates that the object parameter is a field or variable. In this case, you pass a field or variable reference instead of a string (field or variable object only). 

In the action parameter, pass an action code (string) indicating the standard action to associate with the object. You can pass one of the following constants, found in the "Text Values for Associated Standard Action" theme:

Constant Type Value
Object Accept action String 2
Object Add subrecord action String 14
Object Automatic splitter action String 16
Object Cancel action String 1
Object Clear action String 21
Object Copy action String 19
Object Cut action String 18
Object Database Settings action String 32
Object Delete record action String 7
Object Delete subrecord action String 13
Object Edit subrecord action String 12
Object First page action String 10
Object First record action String 5
Object Goto page action String 15
Object Last page action String 11
Object Last record action String 6
Object MSC action String 36
Object Next page action String 8
Object Next record action String 3
Object No standard action String 0
Object Open back URL action String 37
Object Open next URL action String 38
Object Paste action String 20
Object Previous page action String 9
Object Previous record action String 4
Object Quit action String 27
Object Redo action String 31
Object Refresh current URL action String 39
Object Return to Design mode action String 35
Object Select all action String 22
Object Show Clipboard action String 23
Object Stop loading URL action String 40
Object Test Application action String 26
Object Undo action String 17

Example  

You want to associate the Validate standard action with a button:

 OBJECT SET ACTION(*;"bValidate";Object Accept action)

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 1259

 
HISTORY 

New
Created: 4D v14

 
SEE ALSO 

OBJECT Get action

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)