The cu_access module lets you open customizer modules
Functions
Tip:
-
All
edit_*functions also accept a list of IDs as parameter
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
edit_dataarea |
dataarea_id: DA
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_datafield_directly |
df_fieldnumber: DF
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_dataitems |
dataitems: DI
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_datatable |
table_number: DT
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_effect |
effect_id: Effekt-ID
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_exit |
exit_id: EXIT
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_format |
format_id: Format-ID
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_module |
modules: MOD
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_role |
role_id: Rolle
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_symbol |
symbol_id: Symbol-ID
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_workarea |
workarea_id: Arbeitsgebiet
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
edit_sql_statement |
sql_statement_id: Statement
|
The edit |
Open the corresponding edit module for the given ids or add them to an already open edit module and focus the newly added record |
|
is_current_user_customizer |
show_msg: If |
|
Queries the value of Customizer-Rechte for the currently logged in user |
|
is_user_customizer |
user: Benutzer |
|
Queries the value of Customizer-Rechte |
Examples
Customizing a link/button/context entry to modify customizing objects
The macro module 009C8A should be used for any functionality where you want to open a customizing edit module.
|
Supported object |
target value |
|---|---|
|
Module |
|
|
Datatable |
|
|
Dataitem |
|
|
Dataarea |
|
|
Symbol |
|
|
Format |
|
|
Effect |
|
|
Exit |
|
|
Work Area |
|
|
SQL Statement |
|
|
Datafield |
|
|
Determinant Dataitem (DDI) |
|
|
Child Dataitem (UDI) |
|
|
Traffic Light |
|
This macro implements access to the editor modules in a uniform way that is consistent with how PLANTA deals with things like clicking a link in a record while having 3 other records marked, trying to access customizing module without having customizing rights and other scenarios. Using the Datenfeld-Konfiguration you can specify what object you are dealing with, where the primary key can be read from in the record and how the module should be opened if you want to fine tune it. The minimum configuration to make 009C8A work looks like this:
{'python_id': 'di', 'target': 'dataitem'}
The python_id key refers to the DF-Python-ID of the field where the primary key is located and target refers to the object type we are dealing with. See the table above for the list of supported objects. Additionally you can specify any of the parameters you would normally specify in Module.open_module:
{'python_id': 'dt_id', 'target': 'datatable', 'dock_style': DOCK_STYLE_RIGHT}