Uniface 10: Changes in ProcScript
New ProcScript instructions have been added and existing ProcScript has been enhanced.
ProcScript | Description | Release |
---|---|---|
$callup | Use the $callup function
to call the same trigger at the next level up in the call-up hierarchy , or the next available
level up, if applicable. Available only to triggers whose default behavior is to bubble up to the same trigger on a higher object in the hierarchy. |
9.7.03 G302 and 10.2.01 F102 |
$instancelayout | Every server page component has a layout property which is set declaratively using the Layout Editor, and read by webgen and weblayout when creating or refreshing a component instance. You can use the $instancelayout function to read the current layout or set a new layout dynamically at runtime. | 10.1.01 |
public and soap
|
public soap declares that the operation or trigger can be activated by a SOAP request. | 9.7.04 G402 and 10.2.02 F202 |
undeclare | Force the specified ProcScript module to be ignored during compilation. | 10.2.01 F104 |
ProcScript | Description | Release |
---|---|---|
public and web
|
public web is now supported for Service and Static Server Page components. | 9.7.04 G402 and 10.2.02 F202 |
When defining component variables, it is
possible to specify a display format. Specifying a DTD or schema for an xmlstream parameter is not supported for component variables and is deprecated for other variable declarations. |
10.2.01 | |
$procerrorcontext | The command has been enhanced to return the ProcScript instruction where the error is encountered; in the item PROCLINE=ProScriptInstruction. | 10.3.02.045 |
$ude ("export") | Definitions are now exported in order of
primary key. The command has been extended to export projects and snippet libraries. Constants and field templates can no longer be specified as separate objects for export because constants are automatically exported when the parent library is exported, and field templates are exported as part of an entity palette. |
10.2.01 |
$ude ("import") | Additional checks have been added to the import process to prevent data being imported from an incompatible database. | 10.1.01 |
$ude("import") can no longer be used to import data created by the data conversion (copy) facilities such as /cpy and $ude("copy"). | 10.2.01 | |
$widgetoperation | The Output Box now supports widget operations that enable you to add lines to the data stream, and copy the current contents of the widget to a variable. | 10.2.01 F110 |
ProcScript | Description | Release |
---|---|---|
#startdefine | The #startdefine and
#enddefine directives enable you to explicitly define the scope of constant
declarations (#define directives). By default, constants have container scope, so they are applicable for all triggers, operations, and entries in a Script container. You can use these directives to narrow the scope to a specific script module, or even to a group of modules. |
New in 10.2.01 |
<$triggerAbbr> | The <$triggerAbbr>
constant returns the abbreviation of the code container. This is of limited use for debugging, so
it is now possible to redefine the value using #define. By default, Uniface adds <$triggerAbbr> definitions when migrating ProcScript to Uniface 10. |
Changed in 10.2.01 |
Deprecated ProcScript commands will eventually not be supported and removed from the product. It is recommended that you update your code to use the commands that supersede the deprecated commands.
Deprecated Command | Superseded by |
---|---|
run | activate |
$formdb | $instancedb |
$formdbmod | $instancedbmod |
$formmod | $instancemod |
$formname |
|
The following ProcScript commands were deprecated in Uniface 9, and are not supported in Uniface 10. They result in a warning message when compiled and must be replaced by the current ProcScript command. They will no longer work in the next major release (Uniface 11).
Unsupported Command |
Superseded by |
---|---|
abs
|
$abs |
acos
|
$acos |
asin
|
$asin |
atan
|
$atan |
concat
|
$concat |
condition
|
$condition |
cos
|
$cos |
curocc_video
|
curoccvideo |
delete_instance
|
deleteinstance |
display_length
|
displaylength |
e
|
$e |
exp
|
$exp |
exp10
|
$exp10 |
fact
|
$fact |
field_syntax
|
fieldsyntax |
field_video
|
fieldvideo |
file_dump
|
filedump |
file_load
|
fileload |
frac
|
$frac |
idpart
|
$idpart |
int
|
$int |
item
|
$item |
log
|
$log |
log10
|
$log10 |
ltrim
|
$ltrim |
new_instance
|
newinstance |
$outer
|
$entinfo |
perform
|
activate |
pi
|
$pi |
power
|
$power |
pragma
|
None |
print_break
|
printbreak |
replace
|
$replace |
rtrim
|
$rtrim |
scan
|
$scan |
sendmessage
|
activate |
sin
|
$sin |
split
|
$split |
sqrt
|
$sqrt |
strip_attributes
|
stripattributes |
tan
|
$tan |
$time
|
$clock |
typed
|
$typed |
valuepart
|
$valuepart |