OLE Objects
General
Information
- OLE (Object Linking and Embedding) means the linking of objects from other applications to one’s own application. Here, objects are not copied but linked. The advantage of this is that an object can be linked many times while being edited in one single application.
- In PLANTA you can use OLE for embedding program objects from OLE-capable applications. Other applications cannot embed program objects using the OLE procedure.
- The OLE objects can be embedded in all data fields of the Text type or they can be incorporated in data areas as independent OLE data items.
Information
- OLE objects are saved directly in the data base and are stored locally on the server.
- When a module is opened which contains OLE objects, they are saved in a temporary directory on the client side.
Create OLE Objects
OLE objects are created in the
OLEs module.
Create OLE Data Items
Information
- Data items with Class = 13 are required if different OLE objects are to be displayed for a particular data field depending on different values or if the OLE object is to be displayed as an independent field in the module.
Procedure
- Create a virtual data item with class = 13 in the data table from which the DDI of the data area in which an OLE object is to be displayed stems.
- The OLE object, e.g., is to be displayed in the project data area.
- DDI of the project data area stems from DT461 Project.
- The OLE data item is created in DT461 with virtual = .
- In the Data Items module,
- Assign the OLE data item to the required data area.
New from S 39.5.27 and C 39.5.26
OLE Data Items with Traffic Light Values
Information
From DB 39.5.0
- For the OLE data items with traffic light values, value ranges with VR type=PY are used. In these value ranges the threshold values are calculated and the global variables which are stored in the code and in which the threshold values are saved (limiting values for traffic light colors) are read out via the
check_limit()
function. For further information, see Customizing with Threshold Values.
Up to DB 39.5.0
For the OLE data items with threshold OLE objects, value ranges with VR type=CO are used, in which the IIFS formula calculates the threshold values and reads out the global variables, in which the threshold values (limiting values for traffic light colors) are saved. The global variables are specified in the value range. For further information, see Customizing with Threshold Values.
Embed OLE Objects
Embed Constant OLE Objects
Integrate OLE in a button
- Select the requested OLE in the OLEs module and note down the ID.
- Enter the DBOLE prefix and the ID of the selected OLE object in brackets in the required data area on the DI004336 Button/IronPython in the default value parameter, e.g.: DBOLE(000685).
- Save.
Integrate OLE in a menu item
- Select the required OLE from the listbox on the OLE field in the line of the required menu item in the Menu Items module.
- Save.
Embed Variable OLE Objects
Information
- In a particular field, different OLE objects can be displayed depending on the field values.
Procedure
Integrate Product or Company Logo OLEs
Information
- The OLEs for product or company logos are stored for each module in the Product logo field in the Other Module Parameters module.
- When new modules are created, this field is filled with the 000704 Logo: Project default product logo by default.
- The default product logo can subsequently be replaced by an individual product logo.
- You have the option to use a particular product logo throughout the system.
Use a product logo system-wide
- Open the OLEs module.
- Switch to the Product Logos module variant.
- Click on the Use system-wide as logo button for the newly created OLE.
- The Do you want to embed the required graphic as a product logo system-wide? The product logo of all modules will be replaced by this logo. dialog message is displayed.
- Confirm this message with Yes.
- Restart the program.
- All existing modules of the system now have the new product logo.
- For new modules, the new product logo is automatically set as the default product logo.
Customize Visualization of OLEs on Bars
Procedure
- Enter OLE DI, e.g. Total project estimate (DI023380), in the required data area, e.g. DA041019 in the Projects module.
- Make the following settings for this DI:
- Window = 3
- DF beh. = a (baclground).
- Bar link (DF Python ID) = bar_pr_cd_by_prc (this is the Python ID of the bar on which you want to have an OLE displayed, in this case the Python ID of the bar for calculated dates)
- Dock point = 2:
- Result: In the Projects module, the thumbs of the estimates are displayed in the middle of the bars for calculated dates.