Customization Rules for Client ConfiguratorAll of the client control tables except DATASOURCES have a column named xx_user_bmask (where xx is “ds”, “di”, “dt” or “da”, depending on the table where it resides). This column, which parallels xx_options, is used to indicate whether the bits were changed by the user script or by the Client Configurator. Additionally, some of the bits in the xx_options columns are set by the Client or are set by changing an item to a special client data type, such as a date. The redefine command, when run in Client Configurator mode (use_dbconfig = true), will restore the bits in xx_options that are referenced by xx_user_bmask, while leaving the remaining bits unchanged. Several bits in xx_options that were previously unused are now used to indicate that a specific field in the record was modified by a user script or the Client Configurator. Parameters that affect ds_optionsThe global parameters that affect ds_options settings are as follows:
Caution: Any time you explicitly change the value of a bit in ds_options, you must set the corresponding bit in ds_user_bmask. If you set a bit that had a default value of 1 to 0, you must set the corresponding bit in ds_user_bmask to 1 to indicate that the value of this bit should be preserved by the redefine command. Be aware that some bits in ds_options may already be set. For SQL Server, use the "|" operator. For Oracle, use the BITOR function with the BITAND function to perform logical OR and logical And functions. For best results, avoid directly setting ds_options or using the + operator. The following example uses the BITOR function when updating the ds_options column of DATASETS to set the bit DSOPT_Select_Only (64) while leaving the rest of the bits intact: ds_options=BITOR(ds_options,64) When using the Client Configurator, if you change the value of external_columns for a single data set, you must also set the new bit DSOPT_ExtCols_Set (0x2000 or decimal 131072 ) in both ds_options and ds_user_bmask. This ensures that the Client Configurator retains the change. Sample script for setting a ds_options bit in DATASETSThis script sets the ds_options bit DSOPT_Ignore_Dups (32) for the data set SVHIST without changing any of the other bits in the column. We provide both a SQL Server version and Oracle version of this script. Filename: script.user_layout..svhist: SQL Server version: update DATASETS set ds_options = ds_options | 32 where dataset_name = ‘SVHIST’ Oracle version: update DATASETS set ds_options = BITOR(ds_options, 32) where dataset_name = ‘SVHIST’ | ||||||||
|