Production Variant production Product configurator Configurator Customer specific adaptions - robinfeng/beashelp GitHub Wiki
自定义适配器
Navigation: Production > Variant production > Product configurator > Configurator: Customer specific adaptions No contents entries on this page Contents There are various possibilities in the product configurator to realize customizations very simple.
Left navigation area "Results/Prices" Example: further use of data from the detail area after the configuration. Read out data at the time the configurator is running. Therefore, the windowevent "post_result" is available.
This is only possible if the detail area is processed during the configuration. Use a script file „prd_links2.src“ for the left window „prd_links2“ of the product configurator.
Example: windowevent post_result // fetch values line by line from the datawindow // for further programming see beas script manual for=loop=1=<dw_1.rowcount> … … next end event
Further information on script programming you find in the beas-script manual.
Left navigation area "Definitions" Check entries If you want to check the input before saving a configuration, use script. Run the script at the end of the configuration.
Navigation area "Groups" By default, the selected and current group is opened, and all other groups remain closed. This is just for clarity when using multiple groups that have many input or selection possibilities. If you wish to keep open constantly all groups in the navigation area, this can be adjusted by setting a system variable directly in the database. Then, with every change in the details area on the right side, all variables must be re-determined in the groups on the left . This may in lead to performance problems in case of complex configurations.
Table: beas_sys_setup
Variable: pconfig_block_close
Content: N - all groups open
Y - only current group is open (default)
If this variable was not yet set or changed, the entry is missing. It needs then to be entered initially. MS SQL: insert into beas_sys_setup(benutzer,variable_id,inhalt) values('','pconfig_block_close','N')
If the variable is already in use, you need only to change it: MS SQL: update beas_sys_setup set inhalt = 'Y' where variable_id = 'pconfig_block_close'
Details area For changes in the details area (right side of the configurator window) the tabulator can be used to jump to the next field. The cursor is placed at the beginning of the field. In an already filled box, the cursor is positioned before the entry. If you don't need this functionality, it can be changed via beas script to "Auto-Select". Then, if the cursor jumps to the next input field, and if there is already a text, it will be selected/marked.
For this purpose, a script file "prd_links2.src" is required for the product configurator with the following content:
windowevent postopen if <dw_2.dataobject> = program\prd_rechts.psr then dw_2.modify=inhalt.edit.autoselect=yes end if end event
Check for existing configurations As additional option, the short description can be checked. Thus it is possible to save two identical configurations with different short descriptions (with different variant numbers). Therefore, an entry into beas-system table is required:
Before saving a new configuration, based on a parameter string (a string that consists of all the parameters and set-objects and of their assigned content) the program checks, whether these configuration already exists. If so, the existing configuration is loaded. Otherwise, the configuration is created and saved under a new version number.
As an additional option, you can also incorporate the short name into the check. Thus it would be possible to store two configurations with equal but different short names (with different version numbers). For this purpose, an entry must be made in the beas system table:
Table: beas_sys_setup
Variable: pconfig_check_desc
Content N - normale function (Default)
Y - check for existing configuration via Parameter string and short description
If this variable was not yet set or changed, the entry is missing. It needs then to be entered initially. MS SQL: insert into beas_sys_setup(benutzer,variable_id,inhalt) values('','pconfig_check_desc','N')
If the variable is already in use, you need only to change it: MS SQL: update beas_sys_setup set inhalt = 'Y' where variable_id = 'pconfig_check_desc'