Repository navigation
pacx webresources js resetTemplate
github-actions[bot] edited this page Jul 22, 2025
·
2 revisions
Allows to restore the default templates used for JS WebResources to the one shipped by default by PACX.
pacx wr js resetTemplate
pacx wr resetTemplate jsThis command can be used whenever you have overridden the default templates used to create JS WebResources via pacx webresources js setTemplate and you want to restore the default templates shipped by PACX. The command will restore the default templates for the specified type.
The default templates are:
class Form {
formType = {
Create: 1,
Update: 2,
ReadOnly: 3,
Disabled: 4,
BulkEdit: 6
};
onLoad(executionContext) {
const formContext = executionContext.getFormContext();
const formType = formContext.ui.getFormType();
}
}
%NAMESPACE% = window.%NAMESPACE% || {};
%NAMESPACE%.%TABLE% = %NAMESPACE%.%TABLE% || {};
%NAMESPACE%.%TABLE%.Form = new Form();class Ribbon {
}
%NAMESPACE% = window.%NAMESPACE% || {};
%NAMESPACE%.%TABLE% = %NAMESPACE%.%TABLE% || {};
%NAMESPACE%.%TABLE%.Ribbon = new Ribbon();class Ribbon {
}
%NAMESPACE% = window.%NAMESPACE% || {};
%NAMESPACE%.Global = %NAMESPACE%.Global || {};
%NAMESPACE%.Global.Ribbon = new Ribbon();class Common {
}
%NAMESPACE% = window.%NAMESPACE% || {};
%NAMESPACE%.Common = new Common();| Long Name | Short Name | Required? | Description | Default value | Valid values |
|---|---|---|---|---|---|
type |
t |
Y | The type of the template to restore. | Form |
Form, Ribbon, Other |
forTable |
ft |
N | To be used in conjunction with --type Ribbon, indicates if the template is for a table command bar. If not specified, is assumed as a global command bar. |
False |
true, false |
- pacx auth
- pacx column
- pacx completion
- pacx customapi
- pacx data
- pacx forms
- pacx history
- pacx key
- pacx optionset
- pacx org
- pacx plugin
- pacx project
- pacx publish
- pacx rel
- pacx ribbon
- pacx roles
- pacx script
- pacx security
- pacx settings
- pacx solution
- pacx table
- pacx tool
- pacx unifiedrouting
- pacx user
- pacx users
- pacx usersettings
- pacx view
- pacx webresources
- pacx workflow