An xml formatted resources file called CEGeneratorDotNETResources.xml provides configuration options for the generate environment and you should use this file for all .NET generators. It is located in the [CERoot]\bin directory. Some of the important flags of the CEGeneratorDotNETResources.xml file are described in the following table:
Tag | Flag type | Description |
---|---|---|
<data key="ASPXFactor" value="50" /> <data key="ASPYFactor" value="48" /> | ASPGenerator flags | These flags control the factors used while converting dialog units to pixels. They control the size of the fields on the form. |
<data key="numIspecsToSplitVBSol " value="10000" /> | VBdotNETGenerator flags - NUM_ISPECS_SPLITVBSOL | This flag allows generating more than one solution file by splitting the solution file. If the Model file contains many Ispecs and generates a huge solution file, then it is difficult to open the file using Visual Studio. Using this flag, you can split the huge solution file into many small solution files.
Note: You can replace the value 10000 with the number of Ispecs required in each small solution file. |
<data key="ASPNETDefaultImageT ype" value=".jpg" /> | ASPGenerator flag | This flag represents the default image type for images in the ASP forms. The default image type is .jpg. |
<data key="CRExchangeText" value="" /> | VBGenerator flag | This flag is used to replace the carriage return in strings with an alternative string. It is used to handle multiple line tooltip because the VB environment only allows a single line tooltip and removes any carriage return or line feed combinations. By default, the carriage return is replaced with a space character. However, you can insert a specific character that can later be processed by a custom control. For example, a control that can handle multiple line tooltips. This ensures that the line breaks are preserved by delimiting them with a special purpose character. |
<data key="ispecModelJava" value="true" /> | Common to all generators | This flag controls the generation of Java version of IspecModel files in Ispec folder. By default, this flag is set to true. |
<data key="ispecModelCSharp" value="true" /> | Common to all generators | This flag controls the generation of C# version of IspecModel files in Ispec folder. By default, this flag is set to true. |
<data key="generatorCharSet" value="" /> | Common to all generators | This flag controls the generation to support some special Croatian translations. A valid entry for Croatian is, for example: generatorCharset = windows-1250. |
<data key="workingDirectory" value=".\bin" /> | Common to all generators | This flag determines the CE root directory. |
<data key="ASPNETTextTranspare nt" value="false" /> | ASP.Net Generator flag | This flag is used for forced Transparency for ASP.NET. If this flag is set to true, a child class with the same color as parent class in painter is generated as a transparent form. By default, this flag is set to false. |
<data key="ASPNETUnderbarAsBox" value="false" /> | ASP.Net Generator flag | Determines the way the input fields declared with underbars in the development environment should be displayed in the form. There is no option in html to display underbars as input field markers. If this flag is set to false, which is the default value then the underbars fields are generated as is. If this flag is set to true, then underbars are generated with 1 pixel boxes surrounding them. Note: When this flag is enabled, the generator increases the horizontal screen size of the field by three pixels to allow room for the box. So, you must ensure that fields are not painted adjoining each other else they overlap on the generated screen. |
<data key="ASPNETDisableListVie wState" value="true" /> | ASP.NET Generator flag | This flag indicates whether Viewstate for Listboxes is disabled or not. By default, this flag is set to true. |
<data key="LincDefaultFont" value="LincDefault New" /> | VB.NET Generator flag | The EAE developer has 'LincDefault' as default font in painter. But Visual Studio does not support this font. This flag allows to replace the 'LincDefault' with new font that Visual Studio supports in the generated file. |
<data key="stripImageDirectory" value="true" /> | ASP Generator flag | This flag determines the behavior of images for the ASP Generator. It strips the subdirectories image name. You can override this behavior by uncommenting the stripImageDirectory flag. Note: Stripping the subdirectory names causes problems where users have included subdirectory names as part of the image name in EAE. To overcome this problem, subdirectory names are not stripped for EAE generates, but are stripped for AB Suite generates. By default, this flag is set to false for EAE and set to true for AB Suite. |
h<data key="IspecSortedBy" value="Default" /> | WS.NET Generator flag | This flag determines the sorting type of WebMethods for WS.NET Generator. Its value is set to "Default", which maintains the current random order of webmethod. Replace the value with "name" to sort the webmethod by ispec name. Replace the value with "description" to sort the webmethod by ispec description. |
<data key="DecimalKeyCheck"value="false" /> | ASP.NET Generator flag | This flag is used to check the decimal key. It alerts the user once initially if decimal key is not entered in decimal field. By default, this flag is set to false. |
<data key="EncodeHtmlSpecialKey s" value="false" /> | JSP and ASP.Net flag | This flag allows special characters like '<' '>' '&' '"' in html to be encoded. If a label contains special characters, you might obtain the expected output during runtime because of html translation. Thus, you must encode these special characters. |
<data key="GenerateDotNetLog" value="C:\\TEMP" /> | ASP.Net Generator flag | During Bundle generation, a log is generated and stored in the given path from resources. If not specified, the default value is taken. |
<data key="BlankEntryComboBox" value="true" /> | ASP.Net Generator flag | This flag determines if a blank first entry should be included for a combo box. |
To see all tags, view the CEGeneratorDotNETResources.xml file.
To generate Big Buffer Ispecs in a .Net Generator, perform the following:
Open the CEGeneratorDotNETResources.xml file located in the NGEN_CE\bin directory.
Add <data key="genItemThreshold" value="300" /> tag to the generator resource file and change the value as required.
The default value is 300.
Restart the Developer and generate the bundle for required model.
If you are using customized Java generators, perform the following to generate Big Buffer Ispecs:
Open the GeneratorResources.template file located in com.unisys.jellygen package, and rename the template file to GeneratorResources_en_US.properties.
Uncomment the genItemThreshold tag and add the value as required value.
The default value is 300.
Restart the Developer and generate the bundle for required model.
Notes:
If there are any errors after changing the value of genItemThreshold, change the value to a lower value until you get the expected output.
The minimum genItemThreshold value is 50.
The genItemThreshold value might vary depending on the number of copy controls and copies for an ispec.