Wednesday, 14 September 2022

Add plus Sign and inverted comma (+") in each line in variable | BIRT

 for beginning of the line, Find and Replace as below:

^p

^p+"    



 for End of the line, Find and Replace as below:

^p

    "^p

Friday, 9 September 2022

Using DBC Scripts in Maximo in Windows environment

 DBC (Database Configuration) scripts are a powerful way to customize your system, such as adding new attributes to existing objects. In this post, we’ll walk through practical examples, including creating a custom attribute in the Asset object and generating DBC scripts from an autoscript

Example 1: Adding a Custom Attribute to the Asset Object

Suppose we want to add a Maintenance Cost attribute to the ASSET object. Here’s the step-by-step process:

1. Create a DBC Folder

Create a folder to store your DBC script:

mkdir D:\IBM\SMP\maximo\tools\maximo\en\aq

2. Create the DBC File

Create a new DBC file aq_add_cost_to_asset.dbc in the folder:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE script SYSTEM "script.dtd"> <script author="aq" scriptname="aq_add_cost_to_asset"> <description>Adds Maintenance Cost to the Asset</description> <statements> <add_attributes object="ASSET"> <attrdef attribute="ZZMAINTCOST" title="Maintenance Cost" maxtype="AMOUNT" remarks="Maintenance Cost for the Asset" persistent="true" required="false"/> </add_attributes> </statements> </script>