Show Contents List
LANSA will automatically generate an empty IBM i source physical file for your IBM i file Web components.
Using the Web Function Editor, select the Components menu and choose the Generate Component - File.
You will need to enter the target IBM i file specification (library name/file name) in the IBM i file (out file) field. This file will be created as a source physical file and will be used to hold the “data”, i.e. the HTML for the Web component.
If the Use library in component definition option is selected, each time the component is required in your application, the library and file combination is used. Do not select the option if you want to use the user profile used by LANSA to locate the file when you run your application. In this case, the library specification of the file is not stored in the LANSA component registry. This option is very useful if your application requires you to display different data for the same field, depending on the user profile used to run the application. You can use a different IBM i file Web component for each user. In this case, a different IBM i file would be created, each containing the HTML to display the data, for each user profile. These IBM i files would be installed in the appropriate IBM i library. The library list attached to the user profile would then be used to locate the correct file.
If the Use library in component definition option is not selected, the library for this component will not be stored as part of the file definition in the Web component registry. When the application is executed, LANSA will still use the Web component, but, it will use the library list attached to the user profile in order to locate the IBM i physical file (since no library is attached to the file definition in the Web component registry).
Show Contents List